1 #ifndef CLEARLOOKS_DRAW_H
2 #define CLEARLOOKS_DRAW_H
16 CL_GRADIENT_HORIZONTAL
,
22 CLGradient fill_gradient
;
23 CLGradient border_gradient
;
25 CLGradientType gradient_type
;
32 GdkGC
*topleft
; /* top + left shadow */
33 GdkGC
*bottomright
; /* bottom + right shadow */
35 GdkColor tmp_color
; /* used for gradient */
38 typedef enum /* DON'T CHANGE THE ORDER! */
41 CL_CORNER_BOTTOMRIGHT
,
46 typedef enum /* DON'T CHANGE THE ORDER! */
63 CLRectangle
*cl_rectangle_new(GdkGC
*fillgc
, GdkGC
*bordergc
,
64 int tl
, int tr
, int bl
, int br
);
66 void cl_draw_rectangle (GdkWindow
*window
, GtkWidget
*widget
, GtkStyle
*style
,
67 int x
, int y
, int width
, int height
, CLRectangle
*r
);
69 void cl_rectangle_set_color (CLGradient
*g
, GdkColor
*color
);
70 void cl_rectangle_set_gradient (CLGradient
*g
, GdkColor
*from
, GdkColor
*to
);
72 void cl_rectangle_set_button (CLRectangle
*r
, GtkStyle
*style
,
73 GtkStateType state_type
, gboolean hasdefault
, gboolean has_focus
,
74 CLBorderType tl
, CLBorderType tr
,
75 CLBorderType bl
, CLBorderType br
);
77 void cl_rectangle_set_entry (CLRectangle
*r
, GtkStyle
*style
,
78 GtkStateType state_type
,
79 CLBorderType tl
, CLBorderType tr
,
80 CLBorderType bl
, CLBorderType br
,
83 void cl_draw_shadow(GdkWindow
*window
, GtkWidget
*widget
, GtkStyle
*style
,
84 int x
, int y
, int width
, int height
, CLRectangle
*r
);
86 void cl_rectangle_set_clip_rectangle (CLRectangle
*r
, GdkRectangle
*area
);
87 void cl_rectangle_reset_clip_rectangle (CLRectangle
*r
);
89 void cl_set_corner_sharpness (const gchar
*detail
, GtkWidget
*widget
, CLRectangle
*r
);
92 void cl_rectangle_set_corners (CLRectangle
*r
, int tl
, int tr
, int bl
, int br
);
94 void cl_rectangle_init (CLRectangle
*r
, GdkGC
*fillgc
, GdkGC
*bordergc
,
95 int tl
, int tr
, int bl
, int br
);
97 void cl_rectangle_reset (CLRectangle
*r
, GtkStyle
*style
);
100 GdkPixmap
* cl_progressbar_tile_new (GdkDrawable
*drawable
, GtkWidget
*widget
,
101 GtkStyle
*style
, gint height
, gint offset
);
103 void cl_progressbar_fill (GdkDrawable
*drawable
, GtkWidget
*widget
,
104 GtkStyle
*style
, GdkGC
*gc
,
105 gint x
, gint y
, gint width
, gint height
,
106 guint8 offset
, GdkRectangle
*area
);
108 GdkColor
cl_gc_set_fg_color_shade (GdkGC
*gc
, GdkColormap
*colormap
,
109 GdkColor
*from
, gfloat s
);
111 void cl_draw_spinbutton(GtkStyle
*style
, GdkWindow
*window
,
112 GtkStateType state_type
, GtkShadowType shadow_type
,
114 GtkWidget
*widget
, const gchar
*detail
,
115 gint x
, gint y
, gint width
, gint height
);
117 void cl_draw_button(GtkStyle
*style
, GdkWindow
*window
,
118 GtkStateType state_type
, GtkShadowType shadow_type
,
120 GtkWidget
*widget
, const gchar
*detail
,
121 gint x
, gint y
, gint width
, gint height
);
123 void cl_draw_entry (GtkStyle
*style
, GdkWindow
*window
,
124 GtkStateType state_type
, GtkShadowType shadow_type
,
126 GtkWidget
*widget
, const gchar
*detail
,
127 gint x
, gint y
, gint width
, gint height
);
129 void cl_draw_combobox_entry (GtkStyle
*style
, GdkWindow
*window
,
130 GtkStateType state_type
, GtkShadowType shadow_type
,
132 GtkWidget
*widget
, const gchar
*detail
,
133 gint x
, gint y
, gint width
, gint height
);
135 void cl_draw_combobox_button (GtkStyle
*style
, GdkWindow
*window
,
136 GtkStateType state_type
, GtkShadowType shadow_type
,
138 GtkWidget
*widget
, const gchar
*detail
,
139 gint x
, gint y
, gint width
, gint height
);
141 void cl_draw_menuitem_button (GdkDrawable
*window
, GtkWidget
*widget
, GtkStyle
*style
,
142 GdkRectangle
*area
, GtkStateType state_type
,
143 int x
, int y
, int wiidth
, int height
, CLRectangle
*r
);
145 void cl_draw_menuitem_flat (GdkDrawable
*window
, GtkWidget
*widget
, GtkStyle
*style
,
146 GdkRectangle
*area
, GtkStateType state_type
,
147 int x
, int y
, int wiidth
, int height
, CLRectangle
*r
);
149 void cl_draw_menuitem_gradient (GdkDrawable
*window
, GtkWidget
*widget
, GtkStyle
*style
,
150 GdkRectangle
*area
, GtkStateType state_type
,
151 int x
, int y
, int wiidth
, int height
, CLRectangle
*r
);
153 void cl_draw_treeview_header (GtkStyle
*style
, GdkWindow
*window
,
154 GtkStateType state_type
, GtkShadowType shadow_type
,
156 GtkWidget
*widget
, const gchar
*detail
,
157 gint x
, gint y
, gint width
, gint height
);
159 #endif /* CLEARLOOKS_DRAW_H */