aboutsummaryrefslogtreecommitdiff
path: root/generic/WidgetInfo.h
diff options
context:
space:
mode:
authorlecoanet2002-03-15 13:37:43 +0000
committerlecoanet2002-03-15 13:37:43 +0000
commitf2b7fda1ebc589b7dabd5e343868b5180e954310 (patch)
treede118a5fbfeabd3637b6db94336ef759f6791709 /generic/WidgetInfo.h
parent83f666c9b7230fb9212e738dd195de10997a3007 (diff)
downloadtkzinc-f2b7fda1ebc589b7dabd5e343868b5180e954310.zip
tkzinc-f2b7fda1ebc589b7dabd5e343868b5180e954310.tar.gz
tkzinc-f2b7fda1ebc589b7dabd5e343868b5180e954310.tar.bz2
tkzinc-f2b7fda1ebc589b7dabd5e343868b5180e954310.tar.xz
Toutes les couleurs , surtout celles utilis�es dans les
options du widget, sont pass�es en gradient ce qui permet d'avoir l'alpha partout.
Diffstat (limited to 'generic/WidgetInfo.h')
-rw-r--r--generic/WidgetInfo.h19
1 files changed, 8 insertions, 11 deletions
diff --git a/generic/WidgetInfo.h b/generic/WidgetInfo.h
index 3d4517a..403942e 100644
--- a/generic/WidgetInfo.h
+++ b/generic/WidgetInfo.h
@@ -62,7 +62,7 @@
* only by the canvas generic code.
*/
typedef struct _TextInfo {
- ZnColor sel_color; /* Background color for selected text.
+ ZnGradient *sel_color; /* Background color for selected text.
* Read-only to items.*/
Item sel_item; /* Pointer to selected item. ZN_NO_ITEM
* means that the widget doesn't own the
@@ -76,7 +76,7 @@ typedef struct _TextInfo {
int sel_anchor; /* Fixed end of selection (i.e. "select to"
* operation will use this as one end of the
* selection). Writable by items. */
- ZnColor insert_color; /* Used to draw vertical bar for insertion
+ ZnGradient *insert_color; /* Used to draw vertical bar for insertion
* cursor. Read-only to items. */
int insert_width; /* Total width of insertion cursor. Read-only
* to items. */
@@ -88,8 +88,6 @@ typedef struct _TextInfo {
ZnBool cursor_on; /* True means that an insertion cursor should
* be displayed in focus_item. Read-only to
* items.*/
- struct _Gradient *sel_relief;
- struct _Gradient *insert_relief;
} TextInfo;
typedef struct _WidgetInfo {
@@ -127,7 +125,7 @@ typedef struct _WidgetInfo {
* the actual resize. They may to be equal if
* the resize is not acknowledged by the geo
* manager. */
- struct _Gradient *relief_grad; /* The gradient describing the border relief
+ ZnGradient *relief_grad; /* The gradient describing the border relief
* colors. */
ReliefStyle relief; /* The border relief. */
@@ -153,10 +151,9 @@ typedef struct _WidgetInfo {
ZnList clip_stack;
/* Others */
- ZnColor fore_color; /* Default foreground used in new items */
- ZnGradient *fore_gradient; /* Default gradient used in new items */
- ZnColor back_color; /* Color of the widget background. */
- ZnColor bbox_color; /* Color used to draw bboxes (debug). */
+ ZnGradient *fore_color; /* Default gradient used in new items */
+ ZnGradient *back_color; /* Color of the widget background. */
+ ZnGradient *bbox_color; /* Color used to draw bboxes (debug). */
Cursor cursor; /* Cursor displayed in zinc window. */
ZnBool draw_bboxes; /* Draw item's bboxes (debug). */
int light_angle;
@@ -210,9 +207,9 @@ typedef struct _WidgetInfo {
int highlight_width; /* Width in pixels of highlight to draw
* around widget when it has the focus.
* = 0 means don't draw a highlight. */
- ZnColor highlight_bg_color; /* Color for drawing traversal highlight
+ ZnGradient *highlight_bg_color; /* Color for drawing traversal highlight
* area when highlight is off. */
- ZnColor highlight_color; /* Color for drawing traversal highlight.*/
+ ZnGradient *highlight_color; /* Color for drawing traversal highlight.*/
/* Perf measurement variables. */
ZnBool monitoring;