Defines | |
#define | mt_edit_get_color mt_edit_get_colour |
#define | mt_edit_set_color mt_edit_set_colour |
Typedefs | |
typedef void | XEDITINFO |
Functions | |
XEDITINFO * | mt_edit_create (short *global) |
void | mt_edit_delete (XEDITINFO *xi, short *global) |
short | mt_edit_open (OBJECT *tree, short obj, short *global) |
void | mt_edit_close (OBJECT *tree, short obj, short *global) |
short | mt_edit_cursor (OBJECT *tree, short obj, short whdl, short show, short *global) |
short | mt_edit_evnt (OBJECT *tree, short obj, short whdl, EVNT *ev, long *errc, short *global) |
short | mt_edit_get_buf (OBJECT *tree, short obj, char **buf, long *buflen, long *txtlen, short *global) |
short | mt_edit_get_format (OBJECT *tree, short obj, short *tabwidth, short *autowrap, short *global) |
short | mt_edit_get_colour (OBJECT *tree, short obj, short *tcolour, short *bcolour, short *global) |
short | mt_edit_get_cursor (OBJECT *tree, short obj, char **cursorpos, short *global) |
short | mt_edit_get_font (OBJECT *tree, short obj, short *fontID, short *fontH, short *fontPix, short *mono, short *global) |
void | mt_edit_set_buf (OBJECT *tree, short obj, char *buf, long buflen, short *global) |
void | mt_edit_set_format (OBJECT *tree, short obj, short tabwidth, short autowrap, short *global) |
void | mt_edit_set_font (OBJECT *tree, short obj, short fontID, short fontH, short fontPix, short mono, short *global) |
void | mt_edit_set_colour (OBJECT *tree, short obj, short tcolour, short bcolour, short *global) |
void | mt_edit_set_cursor (OBJECT *tree, short obj, char *cursorpos, short *global) |
short | mt_edit_resized (OBJECT *tree, short obj, short *oldrh, short *newrh, short *global) |
short | mt_edit_get_dirty (OBJECT *tree, short obj, short *global) |
void | mt_edit_set_dirty (OBJECT *tree, short obj, short dirty, short *global) |
void | mt_edit_get_sel (OBJECT *tree, short obj, char **bsel, char **esel, short *global) |
void | mt_edit_get_pos (OBJECT *tree, short obj, short *xscroll, long *yscroll, char **cyscroll, char **cursorpos, short *cx, short *cy, short *global) |
void | mt_edit_set_pos (OBJECT *tree, short obj, short xscroll, long yscroll, char *cyscroll, char *cursorpos, short cx, short cy, short *global) |
short | mt_edit_scroll (OBJECT *tree, short obj, short whdl, long yscroll, short xscroll, short *global) |
void | mt_edit_get_scrollinfo (OBJECT *tree, short obj, long *nlines, long *yscroll, short *yvis, short *yval, short *ncols, short *xscroll, short *xvis, short *global) |
This Edit Library is available from MagiC 5.20 onwards. As it is implemented as part of the shared library (SLB or SharedLib), one only needs to open the library with:
Slbopen("EDITOBJC.SLB", NULL, 0L, &slb, &slbexec);The library installs a new AES object-type G_EDIT (37) as well as the AES functions mt_edit_xx().
|
another name, with "color" instead of "colour" to be consistent with AES/VDI function naming rules |
|
another name, with "color" instead of "colour" to be consistent with AES/VDI function naming rules |
|
opaque data structure use by mt_edit_create() and mt_edit_delete() |
|
|
|
Create editable object
|
|
Cursor on/off
|
|
Remove editable object
|
|
Service editable object
errc is present only from version 7 of the SLB onwards; the binding in this library ensures that old SLB versions always return Nulls.
|
|
Examine settings: Text buffer
|
|
Examine settings: Colours
|
|
Examine settings: Absolute cursor position
|
|
Examine settings: Dirty flag
|
|
Examine settings: Font
font_pix is only available from version 8 of the SLB. This library ensures that old SLB versionen always return a Null.
|
|
Examine settings: Formating
|
|
|
|
Examine settings: Scroll information
yval is always smaller or equal to yvis . If the text has fewer lines that yvis , then yval is always smaller. |
|
Examine settings: Selected region
|
|
Open editable object
|
|
Alter settings: Object size
|
|
Alter settings: Scroll positions
|
|
Allocate text buffer
|
|
Alter settings: Colours
|
|
Alter settings: Absolute positioning of cursor
|
|
Alter settings: Dirty flag
|
|
Alter settings: Font
mono == 1) appreciably faster that proportional fonts (mono == 0). font_pix is only available from version 8 of the SLB onwards. Older versions always assume font_pix=0 , i.e. exclusiely use vst_point() for setting the character height. |
|
Alter settings: Formating
autowrap setting is altered. In older versions this only happens with mt_edit_set_buf(). |
|
|