]> Pileus Git - ~andy/gtk/blob - gtk/gtkstylecontext.h
Make GtkCssProvider deal with widget types not being in plain CamelCase
[~andy/gtk] / gtk / gtkstylecontext.h
1 /* GTK - The GIMP Toolkit
2  * Copyright (C) 2010 Carlos Garnacho <carlosg@gnome.org>
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 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
16  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17  * Boston, MA 02111-1307, USA.
18  */
19
20 #if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
21 #error "Only <gtk/gtk.h> can be included directly."
22 #endif
23
24 #ifndef __GTK_STYLE_CONTEXT_H__
25 #define __GTK_STYLE_CONTEXT_H__
26
27 #include <glib-object.h>
28 #include <gtk/gtkstyleprovider.h>
29 #include <gtk/gtkwidgetpath.h>
30 #include <gtk/gtkborder.h>
31
32 G_BEGIN_DECLS
33
34 #define GTK_TYPE_STYLE_CONTEXT         (gtk_style_context_get_type ())
35 #define GTK_STYLE_CONTEXT(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), GTK_TYPE_STYLE_CONTEXT, GtkStyleContext))
36 #define GTK_STYLE_CONTEXT_CLASS(c)     (G_TYPE_CHECK_CLASS_CAST    ((c), GTK_TYPE_STYLE_CONTEXT, GtkStyleContextClass))
37 #define GTK_IS_STYLE_CONTEXT(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), GTK_TYPE_STYLE_CONTEXT))
38 #define GTK_IS_STYLE_CONTEXT_CLASS(c)  (G_TYPE_CHECK_CLASS_TYPE    ((c), GTK_TYPE_STYLE_CONTEXT))
39 #define GTK_STYLE_CONTEXT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS  ((o), GTK_TYPE_STYLE_CONTEXT, GtkStyleContextClass))
40
41 typedef struct _GtkStyleContext GtkStyleContext;
42 typedef struct _GtkStyleContextClass GtkStyleContextClass;
43
44 struct _GtkStyleContext
45 {
46   GObject parent_object;
47   gpointer priv;
48 };
49
50 struct _GtkStyleContextClass
51 {
52   GObjectClass parent_class;
53
54   void (* changed) (GtkStyleContext *context);
55 };
56
57 /* Default set of properties that GtkStyleContext may contain */
58
59 /**
60  * GTK_STYLE_PROPERTY_BACKGROUND_COLOR:
61  *
62  * A property holding the background color of rendered elements as a #GdkRGBA.
63  */
64 #define GTK_STYLE_PROPERTY_BACKGROUND_COLOR "background-color"
65
66 /**
67  * GTK_STYLE_PROPERTY_COLOR:
68  *
69  * A property holding the foreground color of rendered elements as a #GdkRGBA.
70  */
71 #define GTK_STYLE_PROPERTY_COLOR "color"
72
73 /**
74  * GTK_STYLE_PROPERTY_FONT:
75  *
76  * A property holding the font properties used when rendering text
77  * as a #PangoFontDescription.
78  */
79 #define GTK_STYLE_PROPERTY_FONT "font"
80
81 /**
82  * GTK_STYLE_PROPERTY_PADDING:
83  *
84  * A property holding the rendered element's padding as a #GtkBorder. The
85  * padding is defined as the spacing between the inner part of the element border
86  * and its child. It's the innermost spacing property of the padding/border/margin
87  * series.
88  */
89 #define GTK_STYLE_PROPERTY_PADDING "padding"
90
91 /**
92  * GTK_STYLE_PROPERTY_BORDER_WIDTH:
93  *
94  * A property holding the rendered element's border width in pixels as
95  * a #GtkBorder. The border is the intermediary spacing property of the
96  * padding/border/margin series.
97  *
98  * gtk_render_frame() uses this property to find out the frame line width,
99  * so #GtkWidget<!-- -->s rendering frames may need to add up this padding when
100  * requesting size
101  */
102 #define GTK_STYLE_PROPERTY_BORDER_WIDTH "border-width"
103
104 /**
105  * GTK_STYLE_PROPERTY_MARGIN:
106  *
107  * A property holding the rendered element's margin as a #GtkBorder. The
108  * margin is defined as the spacing between the border of the element
109  * and its surrounding elements. It is external to #GtkWidget<!-- -->s's
110  * size allocations, and the most external spacing property of the
111  * padding/border/margin series.
112  */
113 #define GTK_STYLE_PROPERTY_MARGIN "margin"
114
115 /**
116  * GTK_STYLE_PROPERTY_BORDER_RADIUS:
117  *
118  * A property holding the rendered element's border radius in pixels as a #gint.
119  */
120 #define GTK_STYLE_PROPERTY_BORDER_RADIUS "border-radius"
121
122 /**
123  * GTK_STYLE_PROPERTY_BORDER_STYLE:
124  *
125  * A property holding the element's border style as a #GtkBorderStyle.
126  */
127 #define GTK_STYLE_PROPERTY_BORDER_STYLE "border-style"
128
129 /**
130  * GTK_STYLE_PROPERTY_BORDER_COLOR:
131  *
132  * A property holding the element's border color as a #GdkRGBA.
133  */
134 #define GTK_STYLE_PROPERTY_BORDER_COLOR "border-color"
135
136 /**
137  * GTK_STYLE_PROPERTY_BACKGROUND_IMAGE:
138  *
139  * A property holding the element's background as a #cairo_pattern_t.
140  */
141 #define GTK_STYLE_PROPERTY_BACKGROUND_IMAGE "background-image"
142
143
144 /* Predefined set of CSS classes */
145
146 /**
147  * GTK_STYLE_CLASS_CELL:
148  *
149  * A CSS class to match content rendered in cell views.
150  */
151 #define GTK_STYLE_CLASS_CELL "cell"
152
153 /**
154  * GTK_STYLE_CLASS_ENTRY:
155  *
156  * A CSS class to match text entries.
157  */
158 #define GTK_STYLE_CLASS_ENTRY "entry"
159
160 /**
161  * GTK_STYLE_CLASS_BUTTON:
162  *
163  * A CSS class to match buttons.
164  */
165 #define GTK_STYLE_CLASS_BUTTON "button"
166
167 /**
168  * GTK_STYLE_CLASS_CALENDAR:
169  *
170  * A CSS class to match calendars.
171  */
172 #define GTK_STYLE_CLASS_CALENDAR "calendar"
173
174 /**
175  * GTK_STYLE_CLASS_SLIDER:
176  *
177  * A CSS class to match sliders.
178  */
179 #define GTK_STYLE_CLASS_SLIDER "slider"
180
181 /**
182  * GTK_STYLE_CLASS_BACKGROUND:
183  *
184  * A CSS class to match the window background.
185  */
186 #define GTK_STYLE_CLASS_BACKGROUND "background"
187
188 /**
189  * GTK_STYLE_CLASS_RUBBERBAND:
190  *
191  * A CSS class to match the rubberband selection rectangle.
192  */
193 #define GTK_STYLE_CLASS_RUBBERBAND "rubberband"
194
195 /**
196  * GTK_STYLE_CLASS_TOOLTIP:
197  *
198  * A CSS class to match tooltip windows.
199  */
200 #define GTK_STYLE_CLASS_TOOLTIP "tooltip"
201
202 /**
203  * GTK_STYLE_CLASS_MENU:
204  *
205  * A CSS class to match popup menus.
206  */
207 #define GTK_STYLE_CLASS_MENU "menu"
208
209 /**
210  * GTK_STYLE_CLASS_MENUBAR:
211  *
212  * A CSS class to menubars.
213  */
214 #define GTK_STYLE_CLASS_MENUBAR "menubar"
215
216 /**
217  * GTK_STYLE_CLASS_MENUITEM:
218  *
219  * A CSS class to match menu items.
220  */
221 #define GTK_STYLE_CLASS_MENUITEM "menuitem"
222
223 /**
224  * GTK_STYLE_CLASS_TOOLBAR:
225  *
226  * A CSS class to match toolbars.
227  */
228 #define GTK_STYLE_CLASS_TOOLBAR "toolbar"
229
230 /**
231  * GTK_STYLE_CLASS_RADIO:
232  *
233  * A CSS class to match radio buttons.
234  */
235 #define GTK_STYLE_CLASS_RADIO "radio"
236
237 /**
238  * GTK_STYLE_CLASS_CHECK:
239  *
240  * A CSS class to match check boxes.
241  */
242 #define GTK_STYLE_CLASS_CHECK "check"
243
244 /**
245  * GTK_STYLE_CLASS_DEFAULT:
246  *
247  * A CSS class to match the default widget.
248  */
249 #define GTK_STYLE_CLASS_DEFAULT "default"
250
251 /**
252  * GTK_STYLE_CLASS_TROUGH:
253  *
254  * A CSS class to match troughs, as in scrollbars and progressbars.
255  */
256 #define GTK_STYLE_CLASS_TROUGH "trough"
257
258 /**
259  * GTK_STYLE_CLASS_SCROLLBAR:
260  *
261  * A CSS class to match scrollbars.
262  */
263 #define GTK_STYLE_CLASS_SCROLLBAR "scrollbar"
264
265 /**
266  * GTK_STYLE_CLASS_SCALE:
267  *
268  * A CSS class to match scale widgets.
269  */
270 #define GTK_STYLE_CLASS_SCALE "scale"
271
272 /**
273  * GTK_STYLE_CLASS_HEADER:
274  *
275  * A CSS class to match a header element.
276  */
277 #define GTK_STYLE_CLASS_HEADER "header"
278
279 /**
280  * GTK_STYLE_CLASS_ACCELERATOR:
281  *
282  * A CSS class to match an accelerator.
283  */
284 #define GTK_STYLE_CLASS_ACCELERATOR "accelerator"
285
286 /**
287  * GTK_STYLE_CLASS_GRIP:
288  *
289  * A widget class defining a resize grip
290  */
291 #define GTK_STYLE_CLASS_GRIP "grip"
292
293 /**
294  * GTK_STYLE_CLASS_DOCK:
295  *
296  * A widget class defining a dock area
297  */
298 #define GTK_STYLE_CLASS_DOCK "dock"
299
300 /**
301  * GTK_STYLE_CLASS_PROGRESSBAR:
302  *
303  * A widget class defining a resize grip
304  */
305 #define GTK_STYLE_CLASS_PROGRESSBAR "progressbar"
306
307 /**
308  * GTK_STYLE_CLASS_SPINNER:
309  *
310  * A widget class defining a spinner
311  */
312 #define GTK_STYLE_CLASS_SPINNER "spinner"
313
314 /**
315  * GTK_STYLE_CLASS_MARK:
316  *
317  * A widget class defining marks in a widget, such as in scales
318  */
319 #define GTK_STYLE_CLASS_MARK "mark"
320
321 /**
322  * GTK_STYLE_CLASS_EXPANDER:
323  *
324  * A widget class defining an expander, such as those in treeviews
325  */
326 #define GTK_STYLE_CLASS_EXPANDER "expander"
327
328 /**
329  * GTK_STYLE_CLASS_SPINBUTTON:
330  *
331  * A widget class defining an spinbutton
332  */
333 #define GTK_STYLE_CLASS_SPINBUTTON "spinbutton"
334
335 /**
336  * GTK_STYLE_CLASS_NOTEBOOK:
337  *
338  * A widget class defining a notebook
339  */
340 #define GTK_STYLE_CLASS_NOTEBOOK "notebook"
341
342 /**
343  * GTK_STYLE_CLASS_VIEW:
344  *
345  * A widget class defining a view, such as iconviews or treeviews
346  */
347 #define GTK_STYLE_CLASS_VIEW "view"
348
349 /**
350  * GTK_STYLE_CLASS_HIGHLIGHT:
351  *
352  * A CSS class defining a highlighted area, such as headings in
353  * assistants.
354  */
355 #define GTK_STYLE_CLASS_HIGHLIGHT "highlight"
356
357 /**
358  * GTK_STYLE_CLASS_FRAME:
359  *
360  * A CSS class defining a frame delimiting content, such as GtkFrame
361  * or the scrolled window frame around the scrollable area.
362  */
363 #define GTK_STYLE_CLASS_FRAME "frame"
364
365 /**
366  * GTK_STYLE_CLASS_DND:
367  *
368  * A CSS class for a drag-and-drop indicator
369  */
370 #define GTK_STYLE_CLASS_DND "dnd"
371
372 /**
373  * GTK_STYLE_CLASS_PANE_SEPARATOR:
374  *
375  * A CSS class for a pane separator, such as those in #GtkPaned.
376  */
377 #define GTK_STYLE_CLASS_PANE_SEPARATOR "pane-separator"
378
379 /**
380  * GTK_STYLE_CLASS_INFO:
381  *
382  * A widget class for an area displaying an informational message,
383  * such as those in infobars
384  */
385 #define GTK_STYLE_CLASS_INFO "info"
386
387 /**
388  * GTK_STYLE_CLASS_WARNING:
389  *
390  * A widget class for an area displaying a warning message,
391  * such as those in infobars
392  */
393 #define GTK_STYLE_CLASS_WARNING "warning"
394
395 /**
396  * GTK_STYLE_CLASS_QUESTION:
397  *
398  * A widget class for an area displaying a question to the user,
399  * such as those in infobars
400  */
401 #define GTK_STYLE_CLASS_QUESTION "question"
402
403 /**
404  * GTK_STYLE_CLASS_ERROR:
405  *
406  * A widget class for an area displaying an error message,
407  * such as those in infobars
408  */
409 #define GTK_STYLE_CLASS_ERROR "error"
410
411 /**
412  * GTK_STYLE_CLASS_HORIZONTAL:
413  *
414  * A widget class for horizontally layered widgets.
415  */
416 #define GTK_STYLE_CLASS_HORIZONTAL "horizontal"
417
418 /**
419  * GTK_STYLE_CLASS_VERTICAL:
420  *
421  * A widget class for vertically layered widgets.
422  */
423 #define GTK_STYLE_CLASS_VERTICAL "vertical"
424
425
426 /* Predefined set of widget regions */
427
428 /**
429  * GTK_STYLE_REGION_ROW:
430  *
431  * A widget region name to define a treeview row.
432  */
433 #define GTK_STYLE_REGION_ROW "row"
434
435 /**
436  * GTK_STYLE_REGION_COLUMN:
437  *
438  * A widget region name to define a treeview column.
439  */
440 #define GTK_STYLE_REGION_COLUMN "column"
441
442 /**
443  * GTK_STYLE_REGION_COLUMN_HEADER:
444  *
445  * A widget region name to define a treeview column header.
446  */
447 #define GTK_STYLE_REGION_COLUMN_HEADER "column-header"
448
449 /**
450  * GTK_STYLE_REGION_TAB:
451  *
452  * A widget region name to define a notebook tab.
453  */
454 #define GTK_STYLE_REGION_TAB "tab"
455
456
457 GType gtk_style_context_get_type (void) G_GNUC_CONST;
458
459 GtkStyleContext * gtk_style_context_new (void);
460
461 void gtk_style_context_add_provider_for_screen    (GdkScreen        *screen,
462                                                    GtkStyleProvider *provider,
463                                                    guint             priority);
464 void gtk_style_context_remove_provider_for_screen (GdkScreen        *screen,
465                                                    GtkStyleProvider *provider);
466
467 void gtk_style_context_add_provider    (GtkStyleContext  *context,
468                                         GtkStyleProvider *provider,
469                                         guint             priority);
470
471 void gtk_style_context_remove_provider (GtkStyleContext  *context,
472                                         GtkStyleProvider *provider);
473
474 void gtk_style_context_save    (GtkStyleContext *context);
475 void gtk_style_context_restore (GtkStyleContext *context);
476
477 void gtk_style_context_get_property (GtkStyleContext *context,
478                                      const gchar     *property,
479                                      GtkStateFlags    state,
480                                      GValue          *value);
481 void gtk_style_context_get_valist   (GtkStyleContext *context,
482                                      GtkStateFlags    state,
483                                      va_list          args);
484 void gtk_style_context_get          (GtkStyleContext *context,
485                                      GtkStateFlags    state,
486                                      ...) G_GNUC_NULL_TERMINATED;
487
488 void          gtk_style_context_set_state    (GtkStyleContext *context,
489                                               GtkStateFlags    flags);
490 GtkStateFlags gtk_style_context_get_state    (GtkStyleContext *context);
491
492 gboolean      gtk_style_context_state_is_running (GtkStyleContext *context,
493                                                   GtkStateType     state,
494                                                   gdouble         *progress);
495
496 void          gtk_style_context_set_path     (GtkStyleContext *context,
497                                               GtkWidgetPath   *path);
498 G_CONST_RETURN GtkWidgetPath * gtk_style_context_get_path (GtkStyleContext *context);
499
500 GList *  gtk_style_context_list_classes (GtkStyleContext *context);
501
502 void     gtk_style_context_add_class    (GtkStyleContext *context,
503                                          const gchar     *class_name);
504 void     gtk_style_context_remove_class (GtkStyleContext *context,
505                                          const gchar     *class_name);
506 gboolean gtk_style_context_has_class    (GtkStyleContext *context,
507                                          const gchar     *class_name);
508
509 GList *  gtk_style_context_list_regions (GtkStyleContext *context);
510
511 void     gtk_style_context_add_region    (GtkStyleContext    *context,
512                                           const gchar        *region_name,
513                                           GtkRegionFlags      flags);
514 void     gtk_style_context_remove_region (GtkStyleContext    *context,
515                                           const gchar        *region_name);
516 gboolean gtk_style_context_has_region    (GtkStyleContext    *context,
517                                           const gchar        *region_name,
518                                           GtkRegionFlags     *flags_return);
519
520 void gtk_style_context_get_style_property (GtkStyleContext *context,
521                                            const gchar     *property_name,
522                                            GValue          *value);
523 void gtk_style_context_get_style_valist   (GtkStyleContext *context,
524                                            va_list          args);
525 void gtk_style_context_get_style          (GtkStyleContext *context,
526                                            ...);
527
528 GtkIconSet * gtk_style_context_lookup_icon_set (GtkStyleContext *context,
529                                                 const gchar     *stock_id);
530 GdkPixbuf  * gtk_icon_set_render_icon_pixbuf   (GtkIconSet      *icon_set,
531                                                 GtkStyleContext *context,
532                                                 GtkIconSize      size);
533
534 void        gtk_style_context_set_screen (GtkStyleContext *context,
535                                           GdkScreen       *screen);
536 GdkScreen * gtk_style_context_get_screen (GtkStyleContext *context);
537
538 void             gtk_style_context_set_direction (GtkStyleContext  *context,
539                                                   GtkTextDirection  direction);
540 GtkTextDirection gtk_style_context_get_direction (GtkStyleContext  *context);
541
542 void             gtk_style_context_set_junction_sides (GtkStyleContext  *context,
543                                                        GtkJunctionSides  sides);
544 GtkJunctionSides gtk_style_context_get_junction_sides (GtkStyleContext  *context);
545
546 gboolean gtk_style_context_lookup_color (GtkStyleContext *context,
547                                          const gchar     *color_name,
548                                          GdkRGBA         *color);
549
550 void  gtk_style_context_notify_state_change (GtkStyleContext *context,
551                                              GdkWindow       *window,
552                                              gpointer         region_id,
553                                              GtkStateType     state,
554                                              gboolean         state_value);
555 void  gtk_style_context_cancel_animations   (GtkStyleContext *context,
556                                              gpointer         region_id);
557 void  gtk_style_context_scroll_animations   (GtkStyleContext *context,
558                                              GdkWindow       *window,
559                                              gint             dx,
560                                              gint             dy);
561
562 void gtk_style_context_push_animatable_region (GtkStyleContext *context,
563                                                gpointer         region_id);
564 void gtk_style_context_pop_animatable_region  (GtkStyleContext *context);
565
566 /* Some helper functions to retrieve most common properties */
567 void gtk_style_context_get_color            (GtkStyleContext *context,
568                                              GtkStateFlags    state,
569                                              GdkRGBA         *color);
570 void gtk_style_context_get_background_color (GtkStyleContext *context,
571                                              GtkStateFlags    state,
572                                              GdkRGBA         *color);
573 void gtk_style_context_get_border_color     (GtkStyleContext *context,
574                                              GtkStateFlags    state,
575                                              GdkRGBA         *color);
576
577 const PangoFontDescription * gtk_style_context_get_font (GtkStyleContext *context,
578                                                     GtkStateFlags    state);
579
580 void gtk_style_context_get_border           (GtkStyleContext *context,
581                                              GtkStateFlags    state,
582                                              GtkBorder       *border);
583 void gtk_style_context_get_padding          (GtkStyleContext *context,
584                                              GtkStateFlags    state,
585                                              GtkBorder       *padding);
586 void gtk_style_context_get_margin           (GtkStyleContext *context,
587                                              GtkStateFlags    state,
588                                              GtkBorder       *margin);
589
590 /* Semi-private API */
591 const GValue * _gtk_style_context_peek_style_property (GtkStyleContext *context,
592                                                        GType            widget_type,
593                                                        GtkStateFlags    state,
594                                                        GParamSpec      *pspec);
595 void           _gtk_style_context_invalidate_animation_areas (GtkStyleContext *context);
596 void           _gtk_style_context_coalesce_animation_areas   (GtkStyleContext *context,
597                                                               GtkWidget       *widget);
598 gboolean       _gtk_style_context_check_region_name   (const gchar     *str);
599
600
601 void gtk_style_context_invalidate (GtkStyleContext *context);
602 void gtk_style_context_reset_widgets (GdkScreen *screen);
603
604 void gtk_style_context_set_background (GtkStyleContext *context,
605                                        GdkWindow       *window);
606
607 /* Paint methods */
608 void gtk_render_check (GtkStyleContext *context,
609                        cairo_t         *cr,
610                        gdouble          x,
611                        gdouble          y,
612                        gdouble          width,
613                        gdouble          height);
614 void gtk_render_option (GtkStyleContext *context,
615                         cairo_t         *cr,
616                         gdouble          x,
617                         gdouble          y,
618                         gdouble          width,
619                         gdouble          height);
620 void gtk_render_arrow  (GtkStyleContext *context,
621                         cairo_t         *cr,
622                         gdouble          angle,
623                         gdouble          x,
624                         gdouble          y,
625                         gdouble          size);
626 void gtk_render_background (GtkStyleContext *context,
627                             cairo_t         *cr,
628                             gdouble          x,
629                             gdouble          y,
630                             gdouble          width,
631                             gdouble          height);
632 void gtk_render_frame  (GtkStyleContext *context,
633                         cairo_t         *cr,
634                         gdouble          x,
635                         gdouble          y,
636                         gdouble          width,
637                         gdouble          height);
638 void gtk_render_expander (GtkStyleContext *context,
639                           cairo_t         *cr,
640                           gdouble          x,
641                           gdouble          y,
642                           gdouble          width,
643                           gdouble          height);
644 void gtk_render_focus    (GtkStyleContext *context,
645                           cairo_t         *cr,
646                           gdouble          x,
647                           gdouble          y,
648                           gdouble          width,
649                           gdouble          height);
650 void gtk_render_layout   (GtkStyleContext *context,
651                           cairo_t         *cr,
652                           gdouble          x,
653                           gdouble          y,
654                           PangoLayout     *layout);
655 void gtk_render_line     (GtkStyleContext *context,
656                           cairo_t         *cr,
657                           gdouble          x0,
658                           gdouble          y0,
659                           gdouble          x1,
660                           gdouble          y1);
661 void gtk_render_slider   (GtkStyleContext *context,
662                           cairo_t         *cr,
663                           gdouble          x,
664                           gdouble          y,
665                           gdouble          width,
666                           gdouble          height,
667                           GtkOrientation   orientation);
668 void gtk_render_frame_gap (GtkStyleContext *context,
669                            cairo_t         *cr,
670                            gdouble          x,
671                            gdouble          y,
672                            gdouble          width,
673                            gdouble          height,
674                            GtkPositionType  gap_side,
675                            gdouble          xy0_gap,
676                            gdouble          xy1_gap);
677 void gtk_render_extension (GtkStyleContext *context,
678                            cairo_t         *cr,
679                            gdouble          x,
680                            gdouble          y,
681                            gdouble          width,
682                            gdouble          height,
683                            GtkPositionType  gap_side);
684 void gtk_render_handle    (GtkStyleContext *context,
685                            cairo_t         *cr,
686                            gdouble          x,
687                            gdouble          y,
688                            gdouble          width,
689                            gdouble          height);
690 void gtk_render_activity  (GtkStyleContext *context,
691                            cairo_t         *cr,
692                            gdouble          x,
693                            gdouble          y,
694                            gdouble          width,
695                            gdouble          height);
696
697 GdkPixbuf * gtk_render_icon_pixbuf (GtkStyleContext     *context,
698                                     const GtkIconSource *source,
699                                     GtkIconSize          size);
700
701 G_END_DECLS
702
703 #endif /* __GTK_STYLE_CONTEXT_H__ */