WinDom: xobjc_xedit.c File Reference

- Main Page
- Modules
- Data Structures
- Files
- Related Pages

- File List
- Globals

# xobjc_xedit.c File Reference

`#include <stdio.h>`
`#include <stdlib.h>`
`#include <string.h>`
`#include <ctype.h>`
`#include <osbind.h>`
`#include "xobjc_global.h"`

## Data Structures
struct | MY_KEYTAB
## Defines
#define | XEDIT_REALLOC 128
## Functions
size_t | _xobjc_realloc_xedit (size_t old, size_t len)
| Check if the bloc size allocated for the XEDIT is big enough.
long | _xobjc_edit (OBJECT *tree, long obj, long val, short *idx, long kind, long nclip, GRECT *grect_clip, APPENV *env)
long | _xobjc_get_edpos (OBJECT *tree, long idx, long x, long y, APPENV *env)

## Define Documentation

#define XEDIT_REALLOC 128

## Function Documentation

long _xobjc_edit | ( | OBJECT * | tree,
|  | long | obj,
|  | long | val,
|  | short * | idx,
|  | long | kind,
|  | long | nclip,
|  | GRECT * | grect_clip,
|  | APPENV * | env
| ) |

long _xobjc_get_edpos | ( | OBJECT * | tree,
|  | long | idx,
|  | long | x,
|  | long | y,
|  | APPENV * | env
| ) |

size_t _xobjc_realloc_xedit | ( | size_t | old,
|  | size_t | len
| ) |

  | Check if the bloc size allocated for the XEDIT is big enough. Parameters:
  | old | size of the memory bloc
  | len | is the len of the text
Returns: 0 if the bloc size if sufficient, or the new size of the memory block to reallocate.