aboutsummaryrefslogtreecommitdiff
path: root/generic/Item.h
diff options
context:
space:
mode:
authorlecoanet2000-06-21 15:10:25 +0000
committerlecoanet2000-06-21 15:10:25 +0000
commit2cffe07e8de961a550450dfcfe0bb21abe3b93a8 (patch)
treee6893192023de4d66209a9598539dda60a85a304 /generic/Item.h
parent9855b28f1b22dd036cea863ad9d7f323e8566bc8 (diff)
downloadtkzinc-2cffe07e8de961a550450dfcfe0bb21abe3b93a8.zip
tkzinc-2cffe07e8de961a550450dfcfe0bb21abe3b93a8.tar.gz
tkzinc-2cffe07e8de961a550450dfcfe0bb21abe3b93a8.tar.bz2
tkzinc-2cffe07e8de961a550450dfcfe0bb21abe3b93a8.tar.xz
Ajout de la m�thode Part.
Modification de la signature de la m�thode PickVertex La variable de classe has_parts devient num_parts ce qui est plus utile.
Diffstat (limited to 'generic/Item.h')
-rw-r--r--generic/Item.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/generic/Item.h b/generic/Item.h
index 966e88b..d5b3eb0 100644
--- a/generic/Item.h
+++ b/generic/Item.h
@@ -158,8 +158,8 @@ typedef double (*ItemPickMethod)(Item item, ZnPoint *point,
Item *a_item, int *a_part);
typedef FieldSet (*ItemGetFieldSetMethod)(Item item);
typedef void (*ItemContourMethod)(Item item, int cmd, ZnPoly *poly);
-typedef void (*ItemPickVertexMethod)(Item item, ZnPoint *p,
- int vertex, int o_vertex);
+typedef void (*ItemPickVertexMethod)(Item item, ZnPoint *p, int *contour,
+ int *vertex, int *o_vertex);
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,
@@ -168,6 +168,7 @@ 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, Tcl_Obj *index_spec, int *index);
+typedef int (*ItemPartMethod)(Item item, Tcl_Obj **part_spec, int *part);
typedef int (*ItemSelectionMethod)(Item item, int offset, char *chars,
int max_chars);
typedef void (*ItemPostScriptMethod)(Item item, PostScriptInfo ps_info);
@@ -175,8 +176,8 @@ typedef void (*ItemPostScriptMethod)(Item item, PostScriptInfo ps_info);
typedef struct _ItemClassStruct {
int item_size;
ZnBool has_fields;
- ZnBool has_parts; /* True for items with parts
- * other than fields. */
+ int num_parts; /* 0 if no special parts, else
+ * gives how many parts exist. */
ZnBool has_anchors;
char *name;
ZnAttrConfig *attr_desc;
@@ -193,6 +194,7 @@ typedef struct _ItemClassStruct {
ItemDeleteCharsMethod DeleteChars;
ItemCursorMethod Cursor;
ItemIndexMethod Index;
+ ItemPartMethod Part;
ItemSelectionMethod Selection;
ItemContourMethod Contour;
ItemComputeCoordinatesMethod ComputeCoordinates;