From 6e88adfac1e3b390b0cba62c905942a895712ea4 Mon Sep 17 00:00:00 2001 From: lecoanet Date: Thu, 23 Mar 2000 14:02:42 +0000 Subject: Remaniement des routines de gestion de la pile de transfo et de clip afin de la rendre utilisables par les items en interne. --- generic/Item.h | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'generic') diff --git a/generic/Item.h b/generic/Item.h index c4b0464..26a4db5 100644 --- a/generic/Item.h +++ b/generic/Item.h @@ -127,7 +127,7 @@ typedef struct _GroupItemStruct { */ typedef struct _FieldSetStruct { struct _WidgetInfo *wi; - LabelFormat label_format; + ZnLabelFormat label_format; unsigned int num_fields; struct _FieldStruct *fields; ZnDim label_width; /* Describe the label size. Access these */ @@ -219,9 +219,7 @@ extern struct _ITEM { void (*RotateItem)(Item item, ZnReal angle, ZnPoint *p); void (*Invalidate)(Item item, int reason); void (*InvalidateItems)(Item group, ItemClass item_class); - void (*ComposeItemTransform)(Item item, struct _ZnTransfo *current_t, - struct _ZnTransfo *new_t); - void (*GetTransform)(Item item, struct _ZnTransfo *t); + void (*GetItemTransform)(Item item, struct _ZnTransfo *t); } ITEM; @@ -254,8 +252,20 @@ extern struct _ITEM_P { void (*LeaderToLabel)(FieldSet field_set, ZnPoint *start, ZnPoint *end); void (*GetLabelBBox)(FieldSet field_set, ZnDim *w, ZnDim *h); void (*GetFieldBBox)(FieldSet field_set, unsigned int index, ZnBBox *field_bbox); + void (*InitTransformStack)(struct _WidgetInfo *wi); + void (*FreeTransformStack)(struct _WidgetInfo *wi); void (*ResetTransformStack)(struct _WidgetInfo *wi); + void (*PushTransform)(struct _WidgetInfo *wi, struct _ZnTransfo *transfo, + ZnBool compose_scale, ZnBool compose_rot); + void (*PopTransform)(struct _WidgetInfo *wi); + void (*InitClipStack)(struct _WidgetInfo *wi); + void (*FreeClipStack)(struct _WidgetInfo *wi); void (*ResetClipStack)(struct _WidgetInfo *wi); + void (*PushClip)(struct _WidgetInfo *wi, ZnPoint *pts, int num_pts, + ZnBool simple, ZnBool set_gc); + void (*PopClip)(struct _WidgetInfo *wi, ZnBool set_gc); + ZnBool (*CurrentClip)(struct _WidgetInfo *wi, Region *reg, ZnBBox **clip_box, + ZnBool *simple); } ITEM_P; -- cgit v1.1