1 /* High Contrast - a cairo based GTK+ engine
2  * Copyright (C) 2003 Sun Microsystems Inc.
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
17  *
18  * Project contact: <gnome-themes-list@gnome.org>
19  *
20  */
21 
22 
23 GE_INTERNAL void
24 hc_draw_shadow_gap (GtkStyle * style,
25                  GdkWindow * window,
26 		 GtkStateType state_type,
27 		 GtkShadowType shadow_type,
28 		 GdkRectangle * area,
29 		 GtkWidget * widget,
30 		 const gchar * detail,
31 		 gint x,
32 		 gint y,
33 		 gint width,
34 		 gint height,
35 		 GtkPositionType gap_side,
36 		 gint gap_pos,
37 		 gint gap_size);
38 
39 GE_INTERNAL void
40 hc_draw_box_gap (GtkStyle * style,
41                  GdkWindow * window,
42 		 GtkStateType state_type,
43 		 GtkShadowType shadow_type,
44 		 GdkRectangle * area,
45 		 GtkWidget * widget,
46 		 const gchar * detail,
47 		 gint x,
48 		 gint y,
49 		 gint width,
50 		 gint height,
51 		 GtkPositionType gap_side,
52 		 gint gap_pos,
53 		 gint gap_size);
54 
55 GE_INTERNAL void
56 hc_draw_hline (GtkStyle * style,
57 	    GdkWindow * window,
58 	    GtkStateType state_type,
59 	    GdkRectangle * area,
60 	    GtkWidget * widget,
61 	    const gchar * detail,
62             gint x1,
63             gint x2,
64             gint y);
65 
66 GE_INTERNAL void
67 hc_draw_vline (GtkStyle * style,
68 	    GdkWindow * window,
69 	    GtkStateType state_type,
70 	    GdkRectangle * area,
71 	    GtkWidget * widget,
72 	    const gchar * detail,
73             gint y1,
74             gint y2,
75             gint x);
76 
77 GE_INTERNAL void
78 hc_draw_check (GtkStyle * style,
79 	    GdkWindow * window,
80 	    GtkStateType state,
81 	    GtkShadowType shadow,
82 	    GdkRectangle * area,
83 	    GtkWidget * widget,
84 	    const gchar * detail,
85             gint x,
86             gint y,
87             gint width,
88             gint height);
89 
90 GE_INTERNAL void
91 hc_draw_option (GtkStyle * style,
92 	     GdkWindow * window,
93 	     GtkStateType state,
94 	     GtkShadowType shadow,
95 	     GdkRectangle * area,
96 	     GtkWidget * widget,
97 	     const gchar * detail,
98              gint x,
99              gint y,
100              gint width,
101              gint height);
102 
103 GE_INTERNAL void
104 hc_draw_arrow (GtkStyle * style,
105 	    GdkWindow * window,
106 	    GtkStateType state,
107 	    GtkShadowType shadow,
108 	    GdkRectangle * area,
109 	    GtkWidget * widget,
110 	    const gchar * detail,
111 	    GtkArrowType arrow_type,
112 	    gboolean fill,
113             gint x,
114             gint y,
115             gint width,
116             gint height);
117 
118 GE_INTERNAL void
119 hc_draw_shadow (GtkStyle * style,
120 	     GdkWindow * window,
121 	     GtkStateType state_type,
122 	     GtkShadowType shadow_type,
123 	     GdkRectangle * area,
124 	     GtkWidget * widget,
125 	     const gchar * detail,
126              gint x,
127              gint y,
128              gint width,
129              gint height);
130 
131 GE_INTERNAL void
132 hc_draw_box (GtkStyle * style,
133 	  GdkWindow * window,
134 	  GtkStateType state_type,
135 	  GtkShadowType shadow_type,
136 	  GdkRectangle * area,
137 	  GtkWidget * widget,
138 	  const gchar * detail,
139           gint x,
140           gint y,
141           gint width,
142           gint height);
143 
144 GE_INTERNAL void
145 hc_draw_flat_box (GtkStyle	*style,
146                   GdkWindow	*window,
147                   GtkStateType	 state_type,
148                   GtkShadowType	 shadow_type,
149                   GdkRectangle	*area,
150                   GtkWidget	*widget,
151                   const gchar	*detail,
152                   gint		 x,
153                   gint		 y,
154                   gint		 width,
155                   gint		 height);
156 
157 GE_INTERNAL void
158 hc_draw_tab (GtkStyle * style,
159 	  GdkWindow * window,
160 	  GtkStateType state,
161 	  GtkShadowType shadow,
162 	  GdkRectangle * area,
163 	  GtkWidget * widget,
164 	  const gchar * detail,
165           gint x,
166           gint y,
167           gint width,
168           gint height);
169 
170 GE_INTERNAL void
171 hc_draw_slider (GtkStyle * style,
172 	     GdkWindow * window,
173 	     GtkStateType state_type,
174 	     GtkShadowType shadow_type,
175 	     GdkRectangle * area,
176 	     GtkWidget * widget,
177 	     const gchar * detail,
178 	     gint x,
179 	     gint y,
180              gint width,
181              gint height,
182              GtkOrientation orientation);
183 
184 GE_INTERNAL void
185 hc_draw_extension (GtkStyle * style,
186 		GdkWindow * window,
187 		GtkStateType state_type,
188 		GtkShadowType shadow_type,
189 		GdkRectangle * area,
190 		GtkWidget * widget,
191 		const gchar * detail,
192 		gint x,
193 		gint y,
194                 gint width,
195                 gint height,
196                 GtkPositionType gap_side);
197 
198 GE_INTERNAL void
199 hc_draw_handle (GtkStyle * style,
200 	     GdkWindow * window,
201 	     GtkStateType state_type,
202 	     GtkShadowType shadow_type,
203 	     GdkRectangle * area,
204 	     GtkWidget * widget,
205 	     const gchar * detail,
206 	     gint x,
207 	     gint y,
208              gint width,
209              gint height,
210              GtkOrientation orientation);
211 
212 
213 GE_INTERNAL void
214 hc_draw_focus(GtkStyle *style,
215            GdkWindow *window,
216            GtkStateType state_type,
217            GdkRectangle *area,
218            GtkWidget *widget,
219            const gchar *detail,
220            gint x,
221            gint y,
222            gint width,
223            gint height);
224 
225 GE_INTERNAL void
226 hc_draw_layout (GtkStyle        *style,
227 	     GdkWindow       *window,
228 	     GtkStateType     state_type,
229 	     gboolean         use_text,
230 	     GdkRectangle    *area,
231 	     GtkWidget       *widget,
232 	     const char      *detail,
233 	     int              x,
234 	     int              y,
235 	     PangoLayout      *layout);
236 
237 GE_INTERNAL void
238 hc_draw_expander (GtkStyle        *style,
239                            GdkWindow       *window,
240                            GtkStateType     state_type,
241                            GdkRectangle    *area,
242                            GtkWidget       *widget,
243                            const gchar     *detail,
244                            gint             x,
245                            gint             y,
246 			   GtkExpanderStyle expander_style);
247 
248 GE_INTERNAL void
249 hc_draw_diamond (GtkStyle      *style,
250 		 GdkWindow     *window,
251 		 GtkStateType   state_type,
252 		 GtkShadowType  shadow_type,
253 		 GdkRectangle  *area,
254 		 GtkWidget     *widget,
255 		 const gchar   *detail,
256 		 gint           x,
257 		 gint           y,
258 		 gint           width,
259 		 gint           height);
260 
261 GE_INTERNAL void
262 hc_draw_polygon (GtkStyle      *style,
263 		 GdkWindow     *window,
264 		 GtkStateType   state_type,
265 		 GtkShadowType  shadow_type,
266 		 GdkRectangle  *area,
267 		 GtkWidget     *widget,
268 		 const gchar   *detail,
269 		 GdkPoint      *points,
270 		 gint           npoints,
271 		 gboolean       fill);
272 
273