1 /* GTK - The GIMP Toolkit
2 * Copyright (C) 2010 Carlos Garnacho <carlosg@gnome.org>
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.
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.
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.
20 #if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
21 #error "Only <gtk/gtk.h> can be included directly."
24 #ifndef __GTK_STYLE_CONTEXT_H__
25 #define __GTK_STYLE_CONTEXT_H__
27 #include <glib-object.h>
28 #include <gtk/gtkstyleprovider.h>
29 #include <gtk/gtkwidgetpath.h>
30 #include <gtk/gtkborder.h>
35 #define GTK_TYPE_STYLE_CONTEXT (gtk_style_context_get_type ())
36 #define GTK_STYLE_CONTEXT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GTK_TYPE_STYLE_CONTEXT, GtkStyleContext))
37 #define GTK_STYLE_CONTEXT_CLASS(c) (G_TYPE_CHECK_CLASS_CAST ((c), GTK_TYPE_STYLE_CONTEXT, GtkStyleContextClass))
38 #define GTK_IS_STYLE_CONTEXT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GTK_TYPE_STYLE_CONTEXT))
39 #define GTK_IS_STYLE_CONTEXT_CLASS(c) (G_TYPE_CHECK_CLASS_TYPE ((c), GTK_TYPE_STYLE_CONTEXT))
40 #define GTK_STYLE_CONTEXT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GTK_TYPE_STYLE_CONTEXT, GtkStyleContextClass))
42 typedef struct _GtkStyleContext GtkStyleContext;
43 typedef struct _GtkStyleContextClass GtkStyleContextClass;
44 typedef struct _GtkStyleContextPrivate GtkStyleContextPrivate;
46 struct _GtkStyleContext
48 GObject parent_object;
49 GtkStyleContextPrivate *priv;
52 struct _GtkStyleContextClass
54 GObjectClass parent_class;
56 void (* changed) (GtkStyleContext *context);
58 /* Padding for future expansion */
59 void (*_gtk_reserved1) (void);
60 void (*_gtk_reserved2) (void);
61 void (*_gtk_reserved3) (void);
62 void (*_gtk_reserved4) (void);
65 /* Default set of properties that GtkStyleContext may contain */
68 * GTK_STYLE_PROPERTY_BACKGROUND_COLOR:
70 * A property holding the background color of rendered elements as a #GdkRGBA.
72 #define GTK_STYLE_PROPERTY_BACKGROUND_COLOR "background-color"
75 * GTK_STYLE_PROPERTY_COLOR:
77 * A property holding the foreground color of rendered elements as a #GdkRGBA.
79 #define GTK_STYLE_PROPERTY_COLOR "color"
82 * GTK_STYLE_PROPERTY_FONT:
84 * A property holding the font properties used when rendering text
85 * as a #PangoFontDescription.
87 #define GTK_STYLE_PROPERTY_FONT "font"
90 * GTK_STYLE_PROPERTY_PADDING:
92 * A property holding the rendered element's padding as a #GtkBorder. The
93 * padding is defined as the spacing between the inner part of the element border
94 * and its child. It's the innermost spacing property of the padding/border/margin
97 #define GTK_STYLE_PROPERTY_PADDING "padding"
100 * GTK_STYLE_PROPERTY_BORDER_WIDTH:
102 * A property holding the rendered element's border width in pixels as
103 * a #GtkBorder. The border is the intermediary spacing property of the
104 * padding/border/margin series.
106 * gtk_render_frame() uses this property to find out the frame line width,
107 * so #GtkWidget<!-- -->s rendering frames may need to add up this padding when
110 #define GTK_STYLE_PROPERTY_BORDER_WIDTH "border-width"
113 * GTK_STYLE_PROPERTY_MARGIN:
115 * A property holding the rendered element's margin as a #GtkBorder. The
116 * margin is defined as the spacing between the border of the element
117 * and its surrounding elements. It is external to #GtkWidget<!-- -->s's
118 * size allocations, and the most external spacing property of the
119 * padding/border/margin series.
121 #define GTK_STYLE_PROPERTY_MARGIN "margin"
124 * GTK_STYLE_PROPERTY_BORDER_RADIUS:
126 * A property holding the rendered element's border radius in pixels as a #gint.
128 #define GTK_STYLE_PROPERTY_BORDER_RADIUS "border-radius"
131 * GTK_STYLE_PROPERTY_BORDER_STYLE:
133 * A property holding the element's border style as a #GtkBorderStyle.
135 #define GTK_STYLE_PROPERTY_BORDER_STYLE "border-style"
138 * GTK_STYLE_PROPERTY_BORDER_COLOR:
140 * A property holding the element's border color as a #GdkRGBA.
142 #define GTK_STYLE_PROPERTY_BORDER_COLOR "border-color"
145 * GTK_STYLE_PROPERTY_BACKGROUND_IMAGE:
147 * A property holding the element's background as a #cairo_pattern_t.
149 #define GTK_STYLE_PROPERTY_BACKGROUND_IMAGE "background-image"
151 /* Predefined set of CSS classes */
154 * GTK_STYLE_CLASS_CELL:
156 * A CSS class to match content rendered in cell views.
158 * This is used by cell renderers, e.g. in #GtkIconView
161 #define GTK_STYLE_CLASS_CELL "cell"
164 * GTK_STYLE_CLASS_ENTRY:
166 * A CSS class to match text entries.
168 * This is used by #GtkEntry.
170 #define GTK_STYLE_CLASS_ENTRY "entry"
173 * GTK_STYLE_CLASS_COMBOBOX_ENTRY:
175 * A CSS class to match combobox entries.
177 * This is used by #GtkComboBox.
179 #define GTK_STYLE_CLASS_COMBOBOX_ENTRY "combobox-entry"
182 * GTK_STYLE_CLASS_BUTTON:
184 * A CSS class to match buttons.
186 * This is used by #GtkButton and its subclasses, as well
187 * as various other widget pieces that appear like buttons,
188 * e.g. the arrows in a #GtkCalendar.
190 #define GTK_STYLE_CLASS_BUTTON "button"
193 * GTK_STYLE_CLASS_CALENDAR:
195 * A CSS class to match calendars.
197 * This is not used by GTK+ itself, currently.
199 #define GTK_STYLE_CLASS_CALENDAR "calendar"
202 * GTK_STYLE_CLASS_SLIDER:
204 * A CSS class to match sliders.
206 * This is used by #GtkSwitch and #GtkRange and its subclasses.
208 #define GTK_STYLE_CLASS_SLIDER "slider"
211 * GTK_STYLE_CLASS_BACKGROUND:
213 * A CSS class to match the window background.
215 #define GTK_STYLE_CLASS_BACKGROUND "background"
218 * GTK_STYLE_CLASS_RUBBERBAND:
220 * A CSS class to match the rubberband selection rectangle.
222 * This is used in #GtkIconView and #GtkTreeView.
224 #define GTK_STYLE_CLASS_RUBBERBAND "rubberband"
227 * GTK_STYLE_CLASS_TOOLTIP:
229 * A CSS class to match tooltip windows.
231 #define GTK_STYLE_CLASS_TOOLTIP "tooltip"
234 * GTK_STYLE_CLASS_MENU:
236 * A CSS class to match popup menus.
238 * This is used in #GtkMenu.
240 #define GTK_STYLE_CLASS_MENU "menu"
243 * GTK_STYLE_CLASS_MENUBAR:
245 * A CSS class to menubars.
247 * This is used in #GtkMenuBar.
249 #define GTK_STYLE_CLASS_MENUBAR "menubar"
252 * GTK_STYLE_CLASS_MENUITEM:
254 * A CSS class to match menu items.
256 * This is used in #GtkMenuItem and its subclasses.
258 #define GTK_STYLE_CLASS_MENUITEM "menuitem"
261 * GTK_STYLE_CLASS_TOOLBAR:
263 * A CSS class to match toolbars.
265 * This is used in #GtkToolbar.
267 #define GTK_STYLE_CLASS_TOOLBAR "toolbar"
270 * GTK_STYLE_CLASS_PRIMARY_TOOLBAR:
272 * A CSS class to match primary toolbars.
274 * This should be used for the 'main' toolbar of an application,
275 * right below its menubar.
277 #define GTK_STYLE_CLASS_PRIMARY_TOOLBAR "primary-toolbar"
280 * GTK_STYLE_CLASS_INLINE_TOOLBAR:
282 * A CSS class to match inline toolbars.
284 * This should be used for toolbars that are used to hold
285 * actions below lists, as seen e.g. in the left pane of the
288 #define GTK_STYLE_CLASS_INLINE_TOOLBAR "inline-toolbar"
291 * GTK_STYLE_CLASS_RADIO:
293 * A CSS class to match radio buttons.
295 * This is used in #GtkRadioButton, #GtkRadioMenuItem and
296 * #GtkCellRendererToggle.
298 #define GTK_STYLE_CLASS_RADIO "radio"
301 * GTK_STYLE_CLASS_CHECK:
303 * A CSS class to match check boxes.
305 * This is used in #GtkCheckButton, #GtkCheckMenuItem and
306 * #GtkCellRendererToggle.
308 #define GTK_STYLE_CLASS_CHECK "check"
311 * GTK_STYLE_CLASS_DEFAULT:
313 * A CSS class to match the default widget.
315 * This is used by #GtkButton.
317 #define GTK_STYLE_CLASS_DEFAULT "default"
320 * GTK_STYLE_CLASS_TROUGH:
322 * A CSS class to match troughs, as in scrollbars and progressbars.
324 * This is used in #GtkRange and its subclasses, #GtkProgressBar
327 #define GTK_STYLE_CLASS_TROUGH "trough"
330 * GTK_STYLE_CLASS_SCROLLBAR:
332 * A CSS class to match scrollbars.
334 #define GTK_STYLE_CLASS_SCROLLBAR "scrollbar"
337 * GTK_STYLE_CLASS_SCALE:
339 * A CSS class to match scale widgets.
341 * This is used in #GtkScale.
343 #define GTK_STYLE_CLASS_SCALE "scale"
346 * GTK_STYLE_CLASS_SCALE_HAS_MARKS_ABOVE:
348 * A CSS class to match scale widgets with marks attached,
349 * all the marks are above for horizontal #GtkScale.
350 * left for vertical #GtkScale.
352 #define GTK_STYLE_CLASS_SCALE_HAS_MARKS_ABOVE "scale-has-marks-above"
355 * GTK_STYLE_CLASS_SCALE_HAS_MARKS_BELOW:
357 * A CSS class to match scale widgets with marks attached,
358 * all the marks are below for horizontal #GtkScale,
359 * right for vertical #GtkScale.
361 #define GTK_STYLE_CLASS_SCALE_HAS_MARKS_BELOW "scale-has-marks-below"
364 * GTK_STYLE_CLASS_HEADER:
366 * A CSS class to match a header element.
368 * This is used for the header in #GtkCalendar.
370 #define GTK_STYLE_CLASS_HEADER "header"
373 * GTK_STYLE_CLASS_ACCELERATOR:
375 * A CSS class to match an accelerator.
377 * This is used for the accelerator in #GtkAccelLabel.
379 #define GTK_STYLE_CLASS_ACCELERATOR "accelerator"
382 * GTK_STYLE_CLASS_RAISED:
384 * A CSS class to match a raised control, such as a raised
385 * button on a toolbar.
387 * This should be used in conjunction with #GTK_STYLE_CLASS_PRIMARY_TOOLBAR.
389 #define GTK_STYLE_CLASS_RAISED "raised"
392 * GTK_STYLE_CLASS_GRIP:
394 * A CSS class defining a resize grip.
396 * This is used for the resize grip in #GtkWindow.
398 #define GTK_STYLE_CLASS_GRIP "grip"
401 * GTK_STYLE_CLASS_DOCK:
403 * A CSS class defining a dock area.
405 * This is used by #GtkHandleBox.
407 #define GTK_STYLE_CLASS_DOCK "dock"
410 * GTK_STYLE_CLASS_PROGRESSBAR:
412 * A CSS class to use when rendering activity as a progressbar.
414 * This is used in #GtkProgressBar and when drawing progress
415 * inside a #GtkEntry or in #GtkCellRendererProgress.
417 #define GTK_STYLE_CLASS_PROGRESSBAR "progressbar"
420 * GTK_STYLE_CLASS_SPINNER:
422 * A CSS class to use when rendering activity as a 'spinner'.
424 * This is used by #GtkSpinner and #GtkCellRendererSpinner.
426 #define GTK_STYLE_CLASS_SPINNER "spinner"
429 * GTK_STYLE_CLASS_MARK:
431 * A CSS class defining marks in a widget, such as in scales.
435 #define GTK_STYLE_CLASS_MARK "mark"
438 * GTK_STYLE_CLASS_EXPANDER:
440 * A CSS class defining an expander, such as those in treeviews.
442 * Used for drawing expanders in #GtkTreeView, GtkExpander and
445 #define GTK_STYLE_CLASS_EXPANDER "expander"
448 * GTK_STYLE_CLASS_SPINBUTTON:
450 * A CSS class defining an spinbutton.
452 * This is used in #GtkSpinButton.
454 #define GTK_STYLE_CLASS_SPINBUTTON "spinbutton"
457 * GTK_STYLE_CLASS_NOTEBOOK:
459 * A CSS class defining a notebook.
461 * Used in #GtkNotebook.
463 #define GTK_STYLE_CLASS_NOTEBOOK "notebook"
466 * GTK_STYLE_CLASS_VIEW:
468 * A CSS class defining a view, such as iconviews or treeviews.
470 * This is used in #GtkTreeView, #GtkIconView, #GtkTextView,
471 * as well as #GtkCalendar.
473 #define GTK_STYLE_CLASS_VIEW "view"
476 * GTK_STYLE_CLASS_SIDEBAR:
478 * A CSS class defining a sidebar, such as the left side in
481 * This is used in #GtkFileChooser and in #GtkAssistant.
483 #define GTK_STYLE_CLASS_SIDEBAR "sidebar"
486 * GTK_STYLE_CLASS_IMAGE:
488 * A CSS class defining an image, such as the icon in an entry.
490 * This is used when rendering icons in #GtkEntry.
492 #define GTK_STYLE_CLASS_IMAGE "image"
495 * GTK_STYLE_CLASS_HIGHLIGHT:
497 * A CSS class defining a highlighted area, such as headings in
498 * assistants and calendars.
500 * This is used in #GtkAssistant and #GtkCalendar.
502 #define GTK_STYLE_CLASS_HIGHLIGHT "highlight"
505 * GTK_STYLE_CLASS_FRAME:
507 * A CSS class defining a frame delimiting content, such as
508 * #GtkFrame or the scrolled window frame around the
511 * This is used in #GtkFrame and #GtkScrollbar.
513 #define GTK_STYLE_CLASS_FRAME "frame"
516 * GTK_STYLE_CLASS_DND:
518 * A CSS class for a drag-and-drop indicator.
520 * This is used when drawing an outline around a potential
521 * drop target during DND.
523 #define GTK_STYLE_CLASS_DND "dnd"
526 * GTK_STYLE_CLASS_PANE_SEPARATOR:
528 * A CSS class for a pane separator, such as those in #GtkPaned.
532 #define GTK_STYLE_CLASS_PANE_SEPARATOR "pane-separator"
535 * GTK_STYLE_CLASS_SEPARATOR:
537 * A CSS class for a separator.
539 * This is used in #GtkSeparator, #GtkSeparatorMenuItem,
540 * #GtkSeparatorToolItem, and when drawing separators in #GtkTreeView.
542 #define GTK_STYLE_CLASS_SEPARATOR "separator"
545 * GTK_STYLE_CLASS_INFO:
547 * A CSS class for an area displaying an informational message,
548 * such as those in infobars.
550 * This is used by #GtkInfoBar.
552 #define GTK_STYLE_CLASS_INFO "info"
555 * GTK_STYLE_CLASS_WARNING:
557 * A CSS class for an area displaying a warning message,
558 * such as those in infobars.
560 * This is used by #GtkInfoBar.
562 #define GTK_STYLE_CLASS_WARNING "warning"
565 * GTK_STYLE_CLASS_QUESTION:
567 * A CSS class for an area displaying a question to the user,
568 * such as those in infobars.
570 * This is used by #GtkInfoBar.
572 #define GTK_STYLE_CLASS_QUESTION "question"
575 * GTK_STYLE_CLASS_ERROR:
577 * A CSS class for an area displaying an error message,
578 * such as those in infobars.
580 * This is used by #GtkInfoBar.
582 #define GTK_STYLE_CLASS_ERROR "error"
585 * GTK_STYLE_CLASS_HORIZONTAL:
587 * A CSS class for horizontally layered widgets.
589 * This is used by widgets implementing #GtkOrientable.
591 #define GTK_STYLE_CLASS_HORIZONTAL "horizontal"
594 * GTK_STYLE_CLASS_VERTICAL:
596 * A CSS class for vertically layered widgets.
598 * This is used by widgets implementing #GtkOrientable.
600 #define GTK_STYLE_CLASS_VERTICAL "vertical"
603 * GTK_STYLE_CLASS_TOP:
605 * A CSS class to indicate an area at the top of a widget.
607 * This is used by widgets that can render an area in different
608 * positions, such as tabs in a #GtkNotebook.
610 #define GTK_STYLE_CLASS_TOP "top"
613 * GTK_STYLE_CLASS_BOTTOM:
615 * A CSS class to indicate an area at the bottom of a widget.
617 * This is used by widgets that can render an area in different
618 * positions, such as tabs in a #GtkNotebook.
620 #define GTK_STYLE_CLASS_BOTTOM "bottom"
623 * GTK_STYLE_CLASS_LEFT:
625 * A CSS class to indicate an area at the left of a widget.
627 * This is used by widgets that can render an area in different
628 * positions, such as tabs in a #GtkNotebook.
630 #define GTK_STYLE_CLASS_LEFT "left"
633 * GTK_STYLE_CLASS_RIGHT:
635 * A CSS class to indicate an area at the right of a widget.
637 * This is used by widgets that can render an area in different
638 * positions, such as tabs in a #GtkNotebook.
640 #define GTK_STYLE_CLASS_RIGHT "right"
642 /* Predefined set of widget regions */
645 * GTK_STYLE_REGION_ROW:
647 * A widget region name to define a treeview row.
649 #define GTK_STYLE_REGION_ROW "row"
652 * GTK_STYLE_REGION_COLUMN:
654 * A widget region name to define a treeview column.
656 #define GTK_STYLE_REGION_COLUMN "column"
659 * GTK_STYLE_REGION_COLUMN_HEADER:
661 * A widget region name to define a treeview column header.
663 #define GTK_STYLE_REGION_COLUMN_HEADER "column-header"
666 * GTK_STYLE_REGION_TAB:
668 * A widget region name to define a notebook tab.
670 #define GTK_STYLE_REGION_TAB "tab"
673 * GTK_STYLE_CLASS_PULSE:
675 * A CSS class to use when rendering a pulse in an indeterminate progress bar.
677 * This is used by #GtkProgressBar and #GtkEntry.
679 #define GTK_STYLE_CLASS_PULSE "pulse"
682 GType gtk_style_context_get_type (void) G_GNUC_CONST;
684 GtkStyleContext * gtk_style_context_new (void);
686 void gtk_style_context_add_provider_for_screen (GdkScreen *screen,
687 GtkStyleProvider *provider,
689 void gtk_style_context_remove_provider_for_screen (GdkScreen *screen,
690 GtkStyleProvider *provider);
692 void gtk_style_context_add_provider (GtkStyleContext *context,
693 GtkStyleProvider *provider,
696 void gtk_style_context_remove_provider (GtkStyleContext *context,
697 GtkStyleProvider *provider);
699 void gtk_style_context_save (GtkStyleContext *context);
700 void gtk_style_context_restore (GtkStyleContext *context);
702 void gtk_style_context_get_property (GtkStyleContext *context,
703 const gchar *property,
706 void gtk_style_context_get_valist (GtkStyleContext *context,
709 void gtk_style_context_get (GtkStyleContext *context,
711 ...) G_GNUC_NULL_TERMINATED;
713 void gtk_style_context_set_state (GtkStyleContext *context,
714 GtkStateFlags flags);
715 GtkStateFlags gtk_style_context_get_state (GtkStyleContext *context);
717 gboolean gtk_style_context_state_is_running (GtkStyleContext *context,
721 void gtk_style_context_set_path (GtkStyleContext *context,
722 GtkWidgetPath *path);
723 const GtkWidgetPath * gtk_style_context_get_path (GtkStyleContext *context);
725 GList * gtk_style_context_list_classes (GtkStyleContext *context);
727 void gtk_style_context_add_class (GtkStyleContext *context,
728 const gchar *class_name);
729 void gtk_style_context_remove_class (GtkStyleContext *context,
730 const gchar *class_name);
731 gboolean gtk_style_context_has_class (GtkStyleContext *context,
732 const gchar *class_name);
734 GList * gtk_style_context_list_regions (GtkStyleContext *context);
736 void gtk_style_context_add_region (GtkStyleContext *context,
737 const gchar *region_name,
738 GtkRegionFlags flags);
739 void gtk_style_context_remove_region (GtkStyleContext *context,
740 const gchar *region_name);
741 gboolean gtk_style_context_has_region (GtkStyleContext *context,
742 const gchar *region_name,
743 GtkRegionFlags *flags_return);
745 void gtk_style_context_get_style_property (GtkStyleContext *context,
746 const gchar *property_name,
748 void gtk_style_context_get_style_valist (GtkStyleContext *context,
750 void gtk_style_context_get_style (GtkStyleContext *context,
753 GtkIconSet * gtk_style_context_lookup_icon_set (GtkStyleContext *context,
754 const gchar *stock_id);
755 GdkPixbuf * gtk_icon_set_render_icon_pixbuf (GtkIconSet *icon_set,
756 GtkStyleContext *context,
759 void gtk_style_context_set_screen (GtkStyleContext *context,
761 GdkScreen * gtk_style_context_get_screen (GtkStyleContext *context);
763 void gtk_style_context_set_direction (GtkStyleContext *context,
764 GtkTextDirection direction);
765 GtkTextDirection gtk_style_context_get_direction (GtkStyleContext *context);
767 void gtk_style_context_set_junction_sides (GtkStyleContext *context,
768 GtkJunctionSides sides);
769 GtkJunctionSides gtk_style_context_get_junction_sides (GtkStyleContext *context);
771 gboolean gtk_style_context_lookup_color (GtkStyleContext *context,
772 const gchar *color_name,
775 void gtk_style_context_notify_state_change (GtkStyleContext *context,
779 gboolean state_value);
780 void gtk_style_context_cancel_animations (GtkStyleContext *context,
782 void gtk_style_context_scroll_animations (GtkStyleContext *context,
787 void gtk_style_context_push_animatable_region (GtkStyleContext *context,
789 void gtk_style_context_pop_animatable_region (GtkStyleContext *context);
791 /* Some helper functions to retrieve most common properties */
792 void gtk_style_context_get_color (GtkStyleContext *context,
795 void gtk_style_context_get_background_color (GtkStyleContext *context,
798 void gtk_style_context_get_border_color (GtkStyleContext *context,
801 const PangoFontDescription *
802 gtk_style_context_get_font (GtkStyleContext *context,
803 GtkStateFlags state);
804 void gtk_style_context_get_border (GtkStyleContext *context,
807 void gtk_style_context_get_padding (GtkStyleContext *context,
810 void gtk_style_context_get_margin (GtkStyleContext *context,
814 void gtk_style_context_invalidate (GtkStyleContext *context);
815 void gtk_style_context_reset_widgets (GdkScreen *screen);
817 void gtk_style_context_set_background (GtkStyleContext *context,
821 void gtk_render_check (GtkStyleContext *context,
827 void gtk_render_option (GtkStyleContext *context,
833 void gtk_render_arrow (GtkStyleContext *context,
839 void gtk_render_background (GtkStyleContext *context,
845 void gtk_render_frame (GtkStyleContext *context,
851 void gtk_render_expander (GtkStyleContext *context,
857 void gtk_render_focus (GtkStyleContext *context,
863 void gtk_render_layout (GtkStyleContext *context,
867 PangoLayout *layout);
868 void gtk_render_line (GtkStyleContext *context,
874 void gtk_render_slider (GtkStyleContext *context,
880 GtkOrientation orientation);
881 void gtk_render_frame_gap (GtkStyleContext *context,
887 GtkPositionType gap_side,
890 void gtk_render_extension (GtkStyleContext *context,
896 GtkPositionType gap_side);
897 void gtk_render_handle (GtkStyleContext *context,
903 void gtk_render_activity (GtkStyleContext *context,
909 GdkPixbuf * gtk_render_icon_pixbuf (GtkStyleContext *context,
910 const GtkIconSource *source,
912 void gtk_render_icon (GtkStyleContext *context,
918 void gtk_draw_insertion_cursor (GtkWidget *widget,
920 const GdkRectangle *location,
922 GtkTextDirection direction,
923 gboolean draw_arrow);
925 /* Accessibility support */
926 AtkAttributeSet *_gtk_style_context_get_attributes (AtkAttributeSet *attributes,
927 GtkStyleContext *context,
928 GtkStateFlags flags);
932 #endif /* __GTK_STYLE_CONTEXT_H__ */