From 37a4efb9f4d519cae159343e6de42ac7ceaccaee Mon Sep 17 00:00:00 2001 From: lecoanet Date: Fri, 26 May 2000 08:35:21 +0000 Subject: Ajout de nouvelles m�thodes d'item. --- generic/Item.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/generic/Item.h b/generic/Item.h index 9a73670..0db8b35 100644 --- a/generic/Item.h +++ b/generic/Item.h @@ -50,6 +50,7 @@ #define DEFAULT_GROUP_PRIORITY 0 #define DEFAULT_ICON_PRIORITY 2 #define DEFAULT_TEXT_PRIORITY 2 +#define DEFAULT_WINDOW_PRIORITY 0 /* N/A */ #define DEFAULT_MOSAIC_PRIORITY 0 #define DEFAULT_MARKER_SIZE 0 @@ -163,6 +164,11 @@ typedef void (*ItemGetAnchorMethod)(Item item, ZnAnchor anchor, ZnPoint *p); typedef ZnBool (*ItemGetClipVerticesMethod)(Item item, ZnPoly *points); typedef int (*ItemCoordsMethod)(Item item, int contour, int index, int cmd, ZnPoint **points, int *num_points); +typedef void (*ItemInsertCharsMethod)(Item item, int index, char *chars); +typedef void (*ItemDeleteCharsMethod)(Item item, int first, int last); +typedef void (*ItemCursorMethod)(Item item, int index); +typedef int (*ItemIndexMethod)(Item item, char *index_str, int *index); +typedef int (*ItemSelectionMethod)(Item item, int offset, char *chars, int max_chars); typedef void (*ItemPostScriptMethod)(Item item, PostScriptInfo ps_info); typedef struct _ItemClassStruct { @@ -182,6 +188,11 @@ typedef struct _ItemClassStruct { ItemGetAnchorMethod GetAnchor; ItemGetClipVerticesMethod GetClipVertices; ItemCoordsMethod Coords; + ItemInsertCharsMethod InsertChars; + ItemDeleteCharsMethod DeleteChars; + ItemCursorMethod Cursor; + ItemIndexMethod Index; + ItemSelectionMethod Selection; ItemContourMethod Contour; ItemComputeCoordinatesMethod ComputeCoordinates; ItemToAreaMethod ToArea; @@ -287,6 +298,7 @@ extern ZnItemClassId ZnWayPoint; extern ZnItemClassId ZnGroup; extern ZnItemClassId ZnIcon; extern ZnItemClassId ZnText; +extern ZnItemClassId ZnWind; #endif /* _Item_h */ -- cgit v1.1