diff options
Diffstat (limited to 'generic')
-rw-r--r-- | generic/WidgetInfo.h | 19 |
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; |