aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlecoanet2004-04-30 14:22:03 +0000
committerlecoanet2004-04-30 14:22:03 +0000
commit0e70615d89b60b99025e6ce65660456a09030b0a (patch)
tree7476cb20e06613c3b0a70579d867e22299589388
parent5f749ad978fbfeb5d39e4f15d8cddbc06fd0b9cb (diff)
downloadtkzinc-0e70615d89b60b99025e6ce65660456a09030b0a.zip
tkzinc-0e70615d89b60b99025e6ce65660456a09030b0a.tar.gz
tkzinc-0e70615d89b60b99025e6ce65660456a09030b0a.tar.bz2
tkzinc-0e70615d89b60b99025e6ce65660456a09030b0a.tar.xz
Modification of the ZnAttributesInfo and ZnQueryAttribute signatures.
Reworking of the class structure.
-rw-r--r--generic/Item.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/generic/Item.h b/generic/Item.h
index f67e833..c3e381e 100644
--- a/generic/Item.h
+++ b/generic/Item.h
@@ -257,13 +257,16 @@ typedef void (*ZnItemPostScriptMethod)(ZnItem item, ZnBool prepass);
typedef void *ZnItemClassId;
+#define ZN_CLASS_HAS_ANCHORS (1<<0)
+#define ZN_CLASS_ONE_COORD (1<<1)
+
typedef struct _ZnItemClassStruct {
+ char *name;
unsigned int size;
+ ZnAttrConfig *attr_desc;
unsigned int num_parts; /* 0 if no special parts, else
* gives how many parts exist. */
- ZnBool has_anchors; /* 1 if anchors are supported */
- char *name;
- ZnAttrConfig *attr_desc;
+ int flags; /* HAS_ANCHORS, ONE_COORD */
int pos_offset; /* Offset of -position attrib, */
/* if any, -1 otherwise. */
ZnItemInitMethod Init;
@@ -345,9 +348,9 @@ ZnList ZnItemClassList();
int ZnConfigureAttributes(struct _ZnWInfo *wi, ZnItem item, void *record,
ZnAttrConfig *attr_desc, int argc, Tcl_Obj *CONST args[],
int *flags);
-int ZnAttributesInfo(struct _ZnWInfo *wi, void *record,
+int ZnAttributesInfo(Tcl_Interp *interp, void *record,
ZnAttrConfig *attr_desc, int argc, Tcl_Obj *CONST args[]);
-int ZnQueryAttribute(struct _ZnWInfo *wi, void *record, ZnAttrConfig *attr_desc,
+int ZnQueryAttribute(Tcl_Interp *interp, void *record, ZnAttrConfig *attr_desc,
Tcl_Obj *attr_name);
void ZnInitTransformStack(struct _ZnWInfo *wi);
void ZnFreeTransformStack(struct _ZnWInfo *wi);