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