aboutsummaryrefslogtreecommitdiff
path: root/generic/Attrs.h
diff options
context:
space:
mode:
Diffstat (limited to 'generic/Attrs.h')
-rw-r--r--generic/Attrs.h54
1 files changed, 38 insertions, 16 deletions
diff --git a/generic/Attrs.h b/generic/Attrs.h
index 2cdb7ec..582db9d 100644
--- a/generic/Attrs.h
+++ b/generic/Attrs.h
@@ -65,7 +65,7 @@ typedef struct {
char y_attach;
char x_dim;
char y_dim;
-} FieldFormatStruct, *FieldFormat;
+} ZnFieldFormatStruct, *ZnFieldFormat;
typedef struct {
short clip_width;
@@ -73,27 +73,27 @@ typedef struct {
int num_fields;
Tcl_HashEntry *entry;
int ref_count;
- FieldFormatStruct fields[1];
-} LabelFormatStruct, *LabelFormat;
+ ZnFieldFormatStruct fields[1];
+} ZnLabelFormatStruct, *ZnLabelFormat;
-LabelFormat
+ZnLabelFormat
LabelFormatCreate(Tcl_Interp * /* interp */,
char * /* format_str */,
int /* num_fields */);
-LabelFormat
-LabelFormatDuplicate(LabelFormat /* label_format */);
+ZnLabelFormat
+LabelFormatDuplicate(ZnLabelFormat /* label_format */);
void
-LabelFormatDelete(LabelFormat /* label_format */);
+LabelFormatDelete(ZnLabelFormat /* label_format */);
char *
-LabelFormatGetString(LabelFormat /* label_format */);
+LabelFormatGetString(ZnLabelFormat /* label_format */);
ZnBool
-LabelFormatGetClipBox(LabelFormat /* label_format */,
+LabelFormatGetClipBox(ZnLabelFormat /* label_format */,
ZnDim */* width */,
ZnDim */* height */);
#define LabelFormatNumFields(lf) ((lf)->num_fields)
void
-LabelFormatGetField(LabelFormat /* label_format */,
+LabelFormatGetField(ZnLabelFormat /* label_format */,
int /* field */,
char */* x_attach */,
char */* y_attach */,
@@ -113,18 +113,40 @@ typedef struct {
ZnReal shape_c;
Tcl_HashEntry *entry;
int ref_count;
-} LineEndStruct, *LineEnd;
+} ZnLineEndStruct, *ZnLineEnd;
-LineEnd
+ZnLineEnd
LineEndCreate(Tcl_Interp *interp,
char *line_end_str);
-LineEnd
-LineEndDuplicate(LineEnd le);
+ZnLineEnd
+LineEndDuplicate(ZnLineEnd le);
void
-LineEndDelete(LineEnd le);
+LineEndDelete(ZnLineEnd le);
char *
-LineEndGetString(LineEnd le);
+LineEndGetString(ZnLineEnd le);
+/*
+ * Gradient Geometry.
+ */
+typedef struct {
+ int d1;
+ int d2;
+ int angle;
+ Tcl_HashEntry *entry;
+ int ref_count;
+} ZnGradientGeomStruct, *ZnGradientGeom;
+
+ZnGradientGeom
+GradientGeomCreate(Tcl_Interp *interp,
+ char *grad_geom_str);
+ZnGradientGeom
+GradientGeomDuplicate(ZnGradientGeom gg);
+void
+GradientGeomDelete(ZnGradientGeom gg);
+char *
+GradientGeomGetString(ZnGradientGeom gg);
+
+
#ifdef __CPLUSPLUS__
}
#endif