From 2cffe07e8de961a550450dfcfe0bb21abe3b93a8 Mon Sep 17 00:00:00 2001 From: lecoanet Date: Wed, 21 Jun 2000 15:10:25 +0000 Subject: 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. --- generic/Item.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'generic/Item.h') 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; -- cgit v1.1