aboutsummaryrefslogtreecommitdiff
path: root/generic/Item.h
diff options
context:
space:
mode:
Diffstat (limited to 'generic/Item.h')
-rw-r--r--generic/Item.h111
1 files changed, 55 insertions, 56 deletions
diff --git a/generic/Item.h b/generic/Item.h
index 40fbbbb..c4b0464 100644
--- a/generic/Item.h
+++ b/generic/Item.h
@@ -81,12 +81,12 @@
typedef struct _ItemStruct {
/* Private data */
int id;
- RadarList tags;
- struct _WidgetInfo *wi; /* The radar this item is on */
+ ZnList tags;
+ struct _WidgetInfo *wi; /* The widget this item is on */
struct _ItemClassStruct *class; /* item class */
struct _ItemStruct *previous; /* previous item in group list */
struct _ItemStruct *next; /* next item in group list */
- RadarBBox item_bounding_box; /* device item bounding box */
+ ZnBBox item_bounding_box; /* device item bounding box */
/* Common attributes */
unsigned char flags;
@@ -94,7 +94,7 @@ typedef struct _ItemStruct {
short inv_flags;
struct _ItemStruct *parent;
int priority;
- struct _RadarTransfo *transfo;
+ struct _ZnTransfo *transfo;
struct _ItemStruct *connected_item; /* Item this item is connected to */
} ItemStruct, *Item;
@@ -111,12 +111,12 @@ typedef struct _GroupItemStruct {
/* Private data */
Item head; /* Doubly linked list of all items. */
Item tail;
- RadarList dependents; /* List of dependent items. */
+ ZnList dependents; /* List of dependent items. */
#ifdef OM
/* Overlap manager variables.
* These variables are valid *only* if the overlap
* manager is active. */
- RadarBool call_om; /* Tell if there is a need to call the */
+ ZnBool call_om; /* Tell if there is a need to call the */
/* overlap manager. */
#endif
} GroupItemStruct, *GroupItem;
@@ -130,10 +130,10 @@ typedef struct _FieldSetStruct {
LabelFormat label_format;
unsigned int num_fields;
struct _FieldStruct *fields;
- RadarDim label_width; /* Describe the label size. Access these */
- RadarDim label_height; /* 2 only with GetLabelBBox. -1 means
+ ZnDim label_width; /* Describe the label size. Access these */
+ ZnDim label_height; /* 2 only with GetLabelBBox. -1 means
* not up to date. */
- RadarPoint label_pos; /* Describe the label origin. */
+ ZnPoint label_pos; /* Describe the label origin. */
} FieldSetStruct, *FieldSet;
@@ -141,36 +141,35 @@ typedef struct _FieldSetStruct {
* Item class record --
*/
typedef int (*ItemInitMethod)(Item item, int *argc, Arg **args);
-typedef int (*ItemConfigureMethod)(Item item, int argc, RadarAttrList args,
+typedef int (*ItemConfigureMethod)(Item item, int argc, ZnAttrList args,
int *flags);
-typedef int (*ItemQueryMethod)(Item item, int argc, RadarAttrList args);
+typedef int (*ItemQueryMethod)(Item item, int argc, ZnAttrList args);
typedef void (*ItemCloneMethod)(Item item);
typedef void (*ItemDestroyMethod)(Item item);
typedef void (*ItemDrawMethod)(Item item);
-typedef void (*ItemComputeCoordinatesMethod)(Item item, RadarBool force);
-typedef int (*ItemToAreaMethod)(Item item, RadarBBox *area,
- Tk_Uid tag_uid, int enclosed, RadarBool report);
-typedef RadarBool (*ItemIsSensitiveMethod)(Item item, int part);
-typedef double (*ItemPickMethod)(Item item, RadarPoint *point,
+typedef void (*ItemComputeCoordinatesMethod)(Item item, ZnBool force);
+typedef int (*ItemToAreaMethod)(Item item, ZnBBox *area,
+ Tk_Uid tag_uid, int enclosed, ZnBool report);
+typedef ZnBool (*ItemIsSensitiveMethod)(Item item, int part);
+typedef double (*ItemPickMethod)(Item item, ZnPoint *point,
Item start_item, int aperture,
Item *a_item, int *a_part);
typedef FieldSet (*ItemGetFieldSetMethod)(Item item);
-typedef void (*ItemGetAnchorMethod)(Item item, RadarAnchor anchor,
- RadarPoint *p);
-typedef RadarBool (*ItemGetClipVerticesMethod)(Item item, RadarPoint **points,
- int *num_points);
+typedef void (*ItemGetAnchorMethod)(Item item, ZnAnchor anchor, ZnPoint *p);
+typedef ZnBool (*ItemGetClipVerticesMethod)(Item item, ZnPoint **points,
+ int *num_points);
typedef int (*ItemCoordsMethod)(Item item, int index, int cmd,
- RadarPoint **points, int *num_points);
+ ZnPoint **points, int *num_points);
typedef void (*ItemPostScriptMethod)(Item item, PostScriptInfo ps_info);
typedef struct _ItemClassStruct {
int item_size;
- RadarBool has_fields;
- RadarBool has_parts; /* True for items with parts
+ ZnBool has_fields;
+ ZnBool has_parts; /* True for items with parts
* other than fields. */
- RadarBool has_anchors;
+ ZnBool has_anchors;
char *name;
- RadarAttrConfig *attr_desc;
+ ZnAttrConfig *attr_desc;
ItemInitMethod Init;
ItemCloneMethod Clone;
ItemDestroyMethod Destroy;
@@ -199,12 +198,12 @@ typedef struct _ItemClassStruct {
extern struct _ITEM {
Item (*CloneItem)(Item model);
void (*DestroyItem)(Item item);
- int (*ConfigureItem)(Item item, int field, int argc, RadarAttrList args, RadarBool init);
- int (*QueryItem)(Item item, int field, int argc, RadarAttrList args);
+ int (*ConfigureItem)(Item item, int field, int argc, ZnAttrList args, ZnBool init);
+ int (*QueryItem)(Item item, int field, int argc, ZnAttrList args);
int (*AttributesInfo)(Item item, int field, int argc, Arg *args);
void (*SetFieldsAutoAlign)(Item item, int alignment);
- void (*InsertItem)(Item item, Item group, Item mark_item, RadarBool before);
- void (*UpdateItemPriority)(Item item, Item mark_item, RadarBool before);
+ void (*InsertItem)(Item item, Item group, Item mark_item, ZnBool before);
+ void (*UpdateItemPriority)(Item item, Item mark_item, ZnBool before);
void (*InsertDependentItem)(Item item);
void (*UpdateItemDependency)(Item item, Item old_connection);
void (*RemoveItem)(Item item);
@@ -214,15 +213,15 @@ extern struct _ITEM {
void (*RemoveTag)(Item item, Tk_Uid tag);
void (*FreeTags)(Item item);
void (*ResetTransfo)(Item item);
- void (*SetTransfo)(Item item, struct _RadarTransfo *t);
- void (*TranslateItem)(Item item, RadarReal tx, RadarReal ty);
- void (*ScaleItem)(Item item, RadarReal sx, RadarReal sy);
- void (*RotateItem)(Item item, RadarReal angle, RadarPoint *p);
+ void (*SetTransfo)(Item item, struct _ZnTransfo *t);
+ void (*TranslateItem)(Item item, ZnReal tx, ZnReal ty);
+ void (*ScaleItem)(Item item, ZnReal sx, ZnReal sy);
+ 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 _RadarTransfo *current_t,
- struct _RadarTransfo *new_t);
- void (*GetTransform)(Item item, struct _RadarTransfo *t);
+ void (*ComposeItemTransform)(Item item, struct _ZnTransfo *current_t,
+ struct _ZnTransfo *new_t);
+ void (*GetTransform)(Item item, struct _ZnTransfo *t);
} ITEM;
@@ -239,8 +238,8 @@ extern struct _ITEM_P {
int *argc, Arg **args);
void (*AddItemClass)(ItemClass class);
ItemClass (*LookupItemClass)(char *class_name);
- RadarList (*ItemClassList)();
- void (*Damage)(struct _WidgetInfo *wi, RadarBBox *damage);
+ ZnList (*ItemClassList)();
+ void (*Damage)(struct _WidgetInfo *wi, ZnBBox *damage);
void (*Repair)(struct _WidgetInfo *wi);
void (*Update)(struct _WidgetInfo *wi);
int (*ConfigureAttributes)(char *record, int field, int argc, Arg *args, int *flags);
@@ -249,29 +248,29 @@ extern struct _ITEM_P {
void (*CloneFields)(FieldSet field_set);
void (*FreeFields)(FieldSet field_set);
void (*DrawFields)(FieldSet field_set);
- int (*FieldsToArea)(FieldSet field_set, RadarBBox *area);
- RadarBool (*IsFieldSensitive)(FieldSet field_set, int part);
- double (*FieldsPick)(FieldSet field_set, RadarPoint *p, int *part);
- void (*LeaderToLabel)(FieldSet field_set, RadarPoint *start, RadarPoint *end);
- void (*GetLabelBBox)(FieldSet field_set, RadarDim *w, RadarDim *h);
- void (*GetFieldBBox)(FieldSet field_set, unsigned int index, RadarBBox *field_bbox);
+ int (*FieldsToArea)(FieldSet field_set, ZnBBox *area);
+ ZnBool (*IsFieldSensitive)(FieldSet field_set, int part);
+ double (*FieldsPick)(FieldSet field_set, ZnPoint *p, int *part);
+ 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 (*ResetTransformStack)(struct _WidgetInfo *wi);
void (*ResetClipStack)(struct _WidgetInfo *wi);
} ITEM_P;
-extern RadarItemClassId RadarArc;
-extern RadarItemClassId RadarMap;
-extern RadarItemClassId RadarTabular;
-extern RadarItemClassId RadarMosaic;
-extern RadarItemClassId RadarCurve;
-extern RadarItemClassId RadarRectangle;
-extern RadarItemClassId RadarReticle;
-extern RadarItemClassId RadarTrack;
-extern RadarItemClassId RadarWayPoint;
-extern RadarItemClassId RadarGroup;
-extern RadarItemClassId RadarIcon;
-extern RadarItemClassId RadarText;
+extern ZnItemClassId ZnArc;
+extern ZnItemClassId ZnMap;
+extern ZnItemClassId ZnTabular;
+extern ZnItemClassId ZnMosaic;
+extern ZnItemClassId ZnCurve;
+extern ZnItemClassId ZnRectangle;
+extern ZnItemClassId ZnReticle;
+extern ZnItemClassId ZnTrack;
+extern ZnItemClassId ZnWayPoint;
+extern ZnItemClassId ZnGroup;
+extern ZnItemClassId ZnIcon;
+extern ZnItemClassId ZnText;
#endif /* _Item_h */