diff options
-rw-r--r-- | generic/Types.h | 12 |
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. */ |