aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlecoanet2001-10-12 07:42:21 +0000
committerlecoanet2001-10-12 07:42:21 +0000
commit7291fbef4efff7323d083614038a32d5d1c2d9f1 (patch)
tree62314331594fd0e3bbe7283204a9097bf31cd0a4
parent977eeca3c157b6eec4d29f6369483138bad6ce97 (diff)
downloadtkzinc-7291fbef4efff7323d083614038a32d5d1c2d9f1.zip
tkzinc-7291fbef4efff7323d083614038a32d5d1c2d9f1.tar.gz
tkzinc-7291fbef4efff7323d083614038a32d5d1c2d9f1.tar.bz2
tkzinc-7291fbef4efff7323d083614038a32d5d1c2d9f1.tar.xz
Ajout d'un type d'attribut ALPHA.
Ajout des constantes de qualit� de cercles.
-rw-r--r--generic/Types.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/generic/Types.h b/generic/Types.h
index 73bfd4a..fa6ca0f 100644
--- a/generic/Types.h
+++ b/generic/Types.h
@@ -160,6 +160,7 @@ typedef struct {
#define ZN_CONFIG_CAP_STYLE 30
#define ZN_CONFIG_GRADIENT 31
#define ZN_CONFIG_WINDOW 32
+#define ZN_CONFIG_ALPHA 33
#define ZN_DRAW_FLAG 1 << 0
#define ZN_COORDS_FLAG 1 << 1
@@ -270,7 +271,6 @@ typedef int ReliefStyle; /* Keep it an int to keep Tk happy */
* RELIEF_STEPS*2+1 color shades in the color gradient.
*/
#define RELIEF_STEPS 6
-#define DEFAULT_NUM_SHADES 6
/*
* Types of gradients.
@@ -308,7 +308,7 @@ typedef struct {
#define ZnFontId(font) (Tk_FontId(font))
#define ZnWindowId(win) (Tk_WindowId(win))
#define ZnTextWidth(font, text, len) (Tk_TextWidth(font, text, len))
-#define ZnMalloc(size) (ckalloc(size))
+#define ZnMalloc(size) ((void *)ckalloc(size))
#define ZnFree(ptr) (ckfree((char *)(ptr)))
#define ZnRealloc(ptr, size) (ckrealloc((void *)(ptr), size))
#define ZnWarning(msg) (fprintf(stderr, "%s\n", (msg)))
@@ -335,7 +335,13 @@ typedef struct {
#define PART_NUMBER_TO_BIT(part) (1 << (ABS(part)-2))
#define ZN_NO_PART -1
-
+/*
+ * Constants used to specify circle approximation quality.
+ */
+#define ZN_CIRCLE_COARSE 0
+#define ZN_CIRCLE_MEDIUM ZN_CIRCLE_COARSE+1
+#define ZN_CIRCLE_FINEST ZN_CIRCLE_MEDIUM+1
+
/*
* Some flags macros.
*/