diff options
Diffstat (limited to 'generic')
-rw-r--r-- | generic/Item.h | 10 |
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; |