aboutsummaryrefslogtreecommitdiff
path: root/generic
diff options
context:
space:
mode:
authorlecoanet2000-05-26 08:35:21 +0000
committerlecoanet2000-05-26 08:35:21 +0000
commit37a4efb9f4d519cae159343e6de42ac7ceaccaee (patch)
tree2c6618fceb68a64656991d7a0baa2f3807784bb1 /generic
parent4c8cdf9198b34aaddb1e660d0e8adedaff950750 (diff)
downloadtkzinc-37a4efb9f4d519cae159343e6de42ac7ceaccaee.zip
tkzinc-37a4efb9f4d519cae159343e6de42ac7ceaccaee.tar.gz
tkzinc-37a4efb9f4d519cae159343e6de42ac7ceaccaee.tar.bz2
tkzinc-37a4efb9f4d519cae159343e6de42ac7ceaccaee.tar.xz
Ajout de nouvelles m�thodes d'item.
Diffstat (limited to 'generic')
-rw-r--r--generic/Item.h12
1 files changed, 12 insertions, 0 deletions
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 */