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, see <http://www.gnu.org/licenses/>.
18 #if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
19 #error "Only <gtk/gtk.h> can be included directly."
22 #ifndef __GTK_STYLE_CONTEXT_H__
23 #define __GTK_STYLE_CONTEXT_H__
25 #include <gtk/gtkborder.h>
26 #include <gtk/gtkcsssection.h>
27 #include <gtk/gtkstyleprovider.h>
28 #include <gtk/gtktypes.h>
33 #define GTK_TYPE_STYLE_CONTEXT (gtk_style_context_get_type ())
34 #define GTK_STYLE_CONTEXT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GTK_TYPE_STYLE_CONTEXT, GtkStyleContext))
35 #define GTK_STYLE_CONTEXT_CLASS(c) (G_TYPE_CHECK_CLASS_CAST ((c), GTK_TYPE_STYLE_CONTEXT, GtkStyleContextClass))
36 #define GTK_IS_STYLE_CONTEXT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GTK_TYPE_STYLE_CONTEXT))
37 #define GTK_IS_STYLE_CONTEXT_CLASS(c) (G_TYPE_CHECK_CLASS_TYPE ((c), GTK_TYPE_STYLE_CONTEXT))
38 #define GTK_STYLE_CONTEXT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GTK_TYPE_STYLE_CONTEXT, GtkStyleContextClass))
40 typedef struct _GtkStyleContextClass GtkStyleContextClass;
41 typedef struct _GtkStyleContextPrivate GtkStyleContextPrivate;
43 struct _GtkStyleContext
45 GObject parent_object;
46 GtkStyleContextPrivate *priv;
49 struct _GtkStyleContextClass
51 GObjectClass parent_class;
53 void (* changed) (GtkStyleContext *context);
55 /* Padding for future expansion */
56 void (*_gtk_reserved1) (void);
57 void (*_gtk_reserved2) (void);
58 void (*_gtk_reserved3) (void);
59 void (*_gtk_reserved4) (void);
62 /* Default set of properties that GtkStyleContext may contain */
65 * GTK_STYLE_PROPERTY_BACKGROUND_COLOR:
67 * A property holding the background color of rendered elements as a #GdkRGBA.
69 #define GTK_STYLE_PROPERTY_BACKGROUND_COLOR "background-color"
72 * GTK_STYLE_PROPERTY_COLOR:
74 * A property holding the foreground color of rendered elements as a #GdkRGBA.
76 #define GTK_STYLE_PROPERTY_COLOR "color"
79 * GTK_STYLE_PROPERTY_FONT:
81 * A property holding the font properties used when rendering text
82 * as a #PangoFontDescription.
84 #define GTK_STYLE_PROPERTY_FONT "font"
87 * GTK_STYLE_PROPERTY_PADDING:
89 * A property holding the rendered element's padding as a #GtkBorder. The
90 * padding is defined as the spacing between the inner part of the element border
91 * and its child. It's the innermost spacing property of the padding/border/margin
94 #define GTK_STYLE_PROPERTY_PADDING "padding"
97 * GTK_STYLE_PROPERTY_BORDER_WIDTH:
99 * A property holding the rendered element's border width in pixels as
100 * a #GtkBorder. The border is the intermediary spacing property of the
101 * padding/border/margin series.
103 * gtk_render_frame() uses this property to find out the frame line width,
104 * so #GtkWidget<!-- -->s rendering frames may need to add up this padding when
107 #define GTK_STYLE_PROPERTY_BORDER_WIDTH "border-width"
110 * GTK_STYLE_PROPERTY_MARGIN:
112 * A property holding the rendered element's margin as a #GtkBorder. The
113 * margin is defined as the spacing between the border of the element
114 * and its surrounding elements. It is external to #GtkWidget<!-- -->s's
115 * size allocations, and the most external spacing property of the
116 * padding/border/margin series.
118 #define GTK_STYLE_PROPERTY_MARGIN "margin"
121 * GTK_STYLE_PROPERTY_BORDER_RADIUS:
123 * A property holding the rendered element's border radius in pixels as a #gint.
125 #define GTK_STYLE_PROPERTY_BORDER_RADIUS "border-radius"
128 * GTK_STYLE_PROPERTY_BORDER_STYLE:
130 * A property holding the element's border style as a #GtkBorderStyle.
132 #define GTK_STYLE_PROPERTY_BORDER_STYLE "border-style"
135 * GTK_STYLE_PROPERTY_BORDER_COLOR:
137 * A property holding the element's border color as a #GdkRGBA.
139 #define GTK_STYLE_PROPERTY_BORDER_COLOR "border-color"
142 * GTK_STYLE_PROPERTY_BACKGROUND_IMAGE:
144 * A property holding the element's background as a #cairo_pattern_t.
146 #define GTK_STYLE_PROPERTY_BACKGROUND_IMAGE "background-image"
148 /* Predefined set of CSS classes */
151 * GTK_STYLE_CLASS_CELL:
153 * A CSS class to match content rendered in cell views.
155 * This is used by cell renderers, e.g. in #GtkIconView
158 #define GTK_STYLE_CLASS_CELL "cell"
161 * GTK_STYLE_CLASS_ENTRY:
163 * A CSS class to match text entries.
165 * This is used by #GtkEntry.
167 #define GTK_STYLE_CLASS_ENTRY "entry"
170 * GTK_STYLE_CLASS_COMBOBOX_ENTRY:
172 * A CSS class to match combobox entries.
174 * This is used by #GtkComboBox.
176 #define GTK_STYLE_CLASS_COMBOBOX_ENTRY "combobox-entry"
179 * GTK_STYLE_CLASS_BUTTON:
181 * A CSS class to match buttons.
183 * This is used by #GtkButton and its subclasses, as well
184 * as various other widget pieces that appear like buttons,
185 * e.g. the arrows in a #GtkCalendar.
187 #define GTK_STYLE_CLASS_BUTTON "button"
190 * GTK_STYLE_CLASS_CALENDAR:
192 * A CSS class to match calendars.
194 * This is not used by GTK+ itself, currently.
196 #define GTK_STYLE_CLASS_CALENDAR "calendar"
199 * GTK_STYLE_CLASS_SLIDER:
201 * A CSS class to match sliders.
203 * This is used by #GtkSwitch and #GtkRange and its subclasses.
205 #define GTK_STYLE_CLASS_SLIDER "slider"
208 * GTK_STYLE_CLASS_BACKGROUND:
210 * A CSS class to match the window background.
212 #define GTK_STYLE_CLASS_BACKGROUND "background"
215 * GTK_STYLE_CLASS_RUBBERBAND:
217 * A CSS class to match the rubberband selection rectangle.
219 * This is used in #GtkIconView and #GtkTreeView.
221 #define GTK_STYLE_CLASS_RUBBERBAND "rubberband"
224 * GTK_STYLE_CLASS_TOOLTIP:
226 * A CSS class to match tooltip windows.
228 #define GTK_STYLE_CLASS_TOOLTIP "tooltip"
231 * GTK_STYLE_CLASS_MENU:
233 * A CSS class to match popup menus.
235 * This is used in #GtkMenu.
237 #define GTK_STYLE_CLASS_MENU "menu"
240 * GTK_STYLE_CLASS_MENUBAR:
242 * A CSS class to menubars.
244 * This is used in #GtkMenuBar.
246 #define GTK_STYLE_CLASS_MENUBAR "menubar"
249 * GTK_STYLE_CLASS_MENUITEM:
251 * A CSS class to match menu items.
253 * This is used in #GtkMenuItem and its subclasses.
255 #define GTK_STYLE_CLASS_MENUITEM "menuitem"
258 * GTK_STYLE_CLASS_TOOLBAR:
260 * A CSS class to match toolbars.
262 * This is used in #GtkToolbar.
264 #define GTK_STYLE_CLASS_TOOLBAR "toolbar"
267 * GTK_STYLE_CLASS_PRIMARY_TOOLBAR:
269 * A CSS class to match primary toolbars.
271 * This should be used for the 'main' toolbar of an application,
272 * right below its menubar.
274 #define GTK_STYLE_CLASS_PRIMARY_TOOLBAR "primary-toolbar"
277 * GTK_STYLE_CLASS_INLINE_TOOLBAR:
279 * A CSS class to match inline toolbars.
281 * This should be used for toolbars that are used to hold
282 * actions below lists, as seen e.g. in the left pane of the
285 #define GTK_STYLE_CLASS_INLINE_TOOLBAR "inline-toolbar"
288 * GTK_STYLE_CLASS_RADIO:
290 * A CSS class to match radio buttons.
292 * This is used in #GtkRadioButton, #GtkRadioMenuItem and
293 * #GtkCellRendererToggle.
295 #define GTK_STYLE_CLASS_RADIO "radio"
298 * GTK_STYLE_CLASS_CHECK:
300 * A CSS class to match check boxes.
302 * This is used in #GtkCheckButton, #GtkCheckMenuItem and
303 * #GtkCellRendererToggle.
305 #define GTK_STYLE_CLASS_CHECK "check"
308 * GTK_STYLE_CLASS_DEFAULT:
310 * A CSS class to match the default widget.
312 * This is used by #GtkButton.
314 #define GTK_STYLE_CLASS_DEFAULT "default"
317 * GTK_STYLE_CLASS_TROUGH:
319 * A CSS class to match troughs, as in scrollbars and progressbars.
321 * This is used in #GtkRange and its subclasses, #GtkProgressBar
324 #define GTK_STYLE_CLASS_TROUGH "trough"
327 * GTK_STYLE_CLASS_SCROLLBAR:
329 * A CSS class to match scrollbars.
331 #define GTK_STYLE_CLASS_SCROLLBAR "scrollbar"
334 * GTK_STYLE_CLASS_SCROLLBARS_JUNCTION:
336 * A CSS class to match the junction area between an horizontal
337 * and vertical scrollbar, when they're both shown.
339 * This is used in #GtkScrolledWindow.
341 #define GTK_STYLE_CLASS_SCROLLBARS_JUNCTION "scrollbars-junction"
344 * GTK_STYLE_CLASS_SCALE:
346 * A CSS class to match scale widgets.
348 * This is used in #GtkScale.
350 #define GTK_STYLE_CLASS_SCALE "scale"
353 * GTK_STYLE_CLASS_SCALE_HAS_MARKS_ABOVE:
355 * A CSS class to match scale widgets with marks attached,
356 * all the marks are above for horizontal #GtkScale.
357 * left for vertical #GtkScale.
359 #define GTK_STYLE_CLASS_SCALE_HAS_MARKS_ABOVE "scale-has-marks-above"
362 * GTK_STYLE_CLASS_SCALE_HAS_MARKS_BELOW:
364 * A CSS class to match scale widgets with marks attached,
365 * all the marks are below for horizontal #GtkScale,
366 * right for vertical #GtkScale.
368 #define GTK_STYLE_CLASS_SCALE_HAS_MARKS_BELOW "scale-has-marks-below"
371 * GTK_STYLE_CLASS_HEADER:
373 * A CSS class to match a header element.
375 * This is used for the header in #GtkCalendar.
377 #define GTK_STYLE_CLASS_HEADER "header"
380 * GTK_STYLE_CLASS_ACCELERATOR:
382 * A CSS class to match an accelerator.
384 * This is used for the accelerator in #GtkAccelLabel.
386 #define GTK_STYLE_CLASS_ACCELERATOR "accelerator"
389 * GTK_STYLE_CLASS_RAISED:
391 * A CSS class to match a raised control, such as a raised
392 * button on a toolbar.
394 * This should be used in conjunction with #GTK_STYLE_CLASS_PRIMARY_TOOLBAR.
396 #define GTK_STYLE_CLASS_RAISED "raised"
399 * GTK_STYLE_CLASS_LINKED:
401 * A CSS class to match a linked area, such as a box containing buttons
402 * belonging to the same control.
404 #define GTK_STYLE_CLASS_LINKED "linked"
407 * GTK_STYLE_CLASS_GRIP:
409 * A CSS class defining a resize grip.
411 * This is used for the resize grip in #GtkWindow.
413 #define GTK_STYLE_CLASS_GRIP "grip"
416 * GTK_STYLE_CLASS_DOCK:
418 * A CSS class defining a dock area.
420 * This is used by #GtkHandleBox.
422 #define GTK_STYLE_CLASS_DOCK "dock"
425 * GTK_STYLE_CLASS_PROGRESSBAR:
427 * A CSS class to use when rendering activity as a progressbar.
429 * This is used in #GtkProgressBar and when drawing progress
430 * inside a #GtkEntry or in #GtkCellRendererProgress.
432 #define GTK_STYLE_CLASS_PROGRESSBAR "progressbar"
435 * GTK_STYLE_CLASS_SPINNER:
437 * A CSS class to use when rendering activity as a 'spinner'.
439 * This is used by #GtkSpinner and #GtkCellRendererSpinner.
441 #define GTK_STYLE_CLASS_SPINNER "spinner"
444 * GTK_STYLE_CLASS_MARK:
446 * A CSS class defining marks in a widget, such as in scales.
450 #define GTK_STYLE_CLASS_MARK "mark"
453 * GTK_STYLE_CLASS_EXPANDER:
455 * A CSS class defining an expander, such as those in treeviews.
457 * Used for drawing expanders in #GtkTreeView, GtkExpander and
460 #define GTK_STYLE_CLASS_EXPANDER "expander"
463 * GTK_STYLE_CLASS_SPINBUTTON:
465 * A CSS class defining an spinbutton.
467 * This is used in #GtkSpinButton.
469 #define GTK_STYLE_CLASS_SPINBUTTON "spinbutton"
472 * GTK_STYLE_CLASS_NOTEBOOK:
474 * A CSS class defining a notebook.
476 * Used in #GtkNotebook.
478 #define GTK_STYLE_CLASS_NOTEBOOK "notebook"
481 * GTK_STYLE_CLASS_VIEW:
483 * A CSS class defining a view, such as iconviews or treeviews.
485 * This is used in #GtkTreeView, #GtkIconView, #GtkTextView,
486 * as well as #GtkCalendar.
488 #define GTK_STYLE_CLASS_VIEW "view"
491 * GTK_STYLE_CLASS_SIDEBAR:
493 * A CSS class defining a sidebar, such as the left side in
496 * This is used in #GtkFileChooser and in #GtkAssistant.
498 #define GTK_STYLE_CLASS_SIDEBAR "sidebar"
501 * GTK_STYLE_CLASS_IMAGE:
503 * A CSS class defining an image, such as the icon in an entry.
505 * This is used when rendering icons in #GtkEntry.
507 #define GTK_STYLE_CLASS_IMAGE "image"
510 * GTK_STYLE_CLASS_HIGHLIGHT:
512 * A CSS class defining a highlighted area, such as headings in
513 * assistants and calendars.
515 * This is used in #GtkAssistant and #GtkCalendar.
517 #define GTK_STYLE_CLASS_HIGHLIGHT "highlight"
520 * GTK_STYLE_CLASS_FRAME:
522 * A CSS class defining a frame delimiting content, such as
523 * #GtkFrame or the scrolled window frame around the
526 * This is used in #GtkFrame and #GtkScrollbar.
528 #define GTK_STYLE_CLASS_FRAME "frame"
531 * GTK_STYLE_CLASS_DND:
533 * A CSS class for a drag-and-drop indicator.
535 * This is used when drawing an outline around a potential
536 * drop target during DND.
538 #define GTK_STYLE_CLASS_DND "dnd"
541 * GTK_STYLE_CLASS_PANE_SEPARATOR:
543 * A CSS class for a pane separator, such as those in #GtkPaned.
547 #define GTK_STYLE_CLASS_PANE_SEPARATOR "pane-separator"
550 * GTK_STYLE_CLASS_SEPARATOR:
552 * A CSS class for a separator.
554 * This is used in #GtkSeparator, #GtkSeparatorMenuItem,
555 * #GtkSeparatorToolItem, and when drawing separators in #GtkTreeView.
557 #define GTK_STYLE_CLASS_SEPARATOR "separator"
560 * GTK_STYLE_CLASS_INFO:
562 * A CSS class for an area displaying an informational message,
563 * such as those in infobars.
565 * This is used by #GtkInfoBar.
567 #define GTK_STYLE_CLASS_INFO "info"
570 * GTK_STYLE_CLASS_WARNING:
572 * A CSS class for an area displaying a warning message,
573 * such as those in infobars.
575 * This is used by #GtkInfoBar.
577 #define GTK_STYLE_CLASS_WARNING "warning"
580 * GTK_STYLE_CLASS_QUESTION:
582 * A CSS class for an area displaying a question to the user,
583 * such as those in infobars.
585 * This is used by #GtkInfoBar.
587 #define GTK_STYLE_CLASS_QUESTION "question"
590 * GTK_STYLE_CLASS_ERROR:
592 * A CSS class for an area displaying an error message,
593 * such as those in infobars.
595 * This is used by #GtkInfoBar.
597 #define GTK_STYLE_CLASS_ERROR "error"
600 * GTK_STYLE_CLASS_HORIZONTAL:
602 * A CSS class for horizontally layered widgets.
604 * This is used by widgets implementing #GtkOrientable.
606 #define GTK_STYLE_CLASS_HORIZONTAL "horizontal"
609 * GTK_STYLE_CLASS_VERTICAL:
611 * A CSS class for vertically layered widgets.
613 * This is used by widgets implementing #GtkOrientable.
615 #define GTK_STYLE_CLASS_VERTICAL "vertical"
618 * GTK_STYLE_CLASS_TOP:
620 * A CSS class to indicate an area at the top of a widget.
622 * This is used by widgets that can render an area in different
623 * positions, such as tabs in a #GtkNotebook.
625 #define GTK_STYLE_CLASS_TOP "top"
628 * GTK_STYLE_CLASS_BOTTOM:
630 * A CSS class to indicate an area at the bottom of a widget.
632 * This is used by widgets that can render an area in different
633 * positions, such as tabs in a #GtkNotebook.
635 #define GTK_STYLE_CLASS_BOTTOM "bottom"
638 * GTK_STYLE_CLASS_LEFT:
640 * A CSS class to indicate an area at the left of a widget.
642 * This is used by widgets that can render an area in different
643 * positions, such as tabs in a #GtkNotebook.
645 #define GTK_STYLE_CLASS_LEFT "left"
648 * GTK_STYLE_CLASS_RIGHT:
650 * A CSS class to indicate an area at the right of a widget.
652 * This is used by widgets that can render an area in different
653 * positions, such as tabs in a #GtkNotebook.
655 #define GTK_STYLE_CLASS_RIGHT "right"
657 /* Predefined set of widget regions */
660 * GTK_STYLE_REGION_ROW:
662 * A widget region name to define a treeview row.
664 #define GTK_STYLE_REGION_ROW "row"
667 * GTK_STYLE_REGION_COLUMN:
669 * A widget region name to define a treeview column.
671 #define GTK_STYLE_REGION_COLUMN "column"
674 * GTK_STYLE_REGION_COLUMN_HEADER:
676 * A widget region name to define a treeview column header.
678 #define GTK_STYLE_REGION_COLUMN_HEADER "column-header"
681 * GTK_STYLE_REGION_TAB:
683 * A widget region name to define a notebook tab.
685 #define GTK_STYLE_REGION_TAB "tab"
688 * GTK_STYLE_CLASS_PULSE:
690 * A CSS class to use when rendering a pulse in an indeterminate progress bar.
692 * This is used by #GtkProgressBar and #GtkEntry.
694 #define GTK_STYLE_CLASS_PULSE "pulse"
697 * GTK_STYLE_CLASS_ARROW:
699 * A CSS class used when rendering an arrow element.
701 * Note that #gtk_render_arrow automatically adds this style class
702 * to the style context when rendering an arrow element.
704 #define GTK_STYLE_CLASS_ARROW "arrow"
707 GType gtk_style_context_get_type (void) G_GNUC_CONST;
709 GtkStyleContext * gtk_style_context_new (void);
711 void gtk_style_context_add_provider_for_screen (GdkScreen *screen,
712 GtkStyleProvider *provider,
714 void gtk_style_context_remove_provider_for_screen (GdkScreen *screen,
715 GtkStyleProvider *provider);
717 void gtk_style_context_add_provider (GtkStyleContext *context,
718 GtkStyleProvider *provider,
721 void gtk_style_context_remove_provider (GtkStyleContext *context,
722 GtkStyleProvider *provider);
724 void gtk_style_context_save (GtkStyleContext *context);
725 void gtk_style_context_restore (GtkStyleContext *context);
727 GtkCssSection * gtk_style_context_get_section (GtkStyleContext *context,
728 const gchar *property);
729 void gtk_style_context_get_property (GtkStyleContext *context,
730 const gchar *property,
733 void gtk_style_context_get_valist (GtkStyleContext *context,
736 void gtk_style_context_get (GtkStyleContext *context,
738 ...) G_GNUC_NULL_TERMINATED;
740 void gtk_style_context_set_state (GtkStyleContext *context,
741 GtkStateFlags flags);
742 GtkStateFlags gtk_style_context_get_state (GtkStyleContext *context);
744 gboolean gtk_style_context_state_is_running (GtkStyleContext *context,
748 void gtk_style_context_set_path (GtkStyleContext *context,
749 GtkWidgetPath *path);
750 const GtkWidgetPath * gtk_style_context_get_path (GtkStyleContext *context);
752 void gtk_style_context_set_parent (GtkStyleContext *context,
753 GtkStyleContext *parent);
754 GtkStyleContext *gtk_style_context_get_parent (GtkStyleContext *context);
756 GList * gtk_style_context_list_classes (GtkStyleContext *context);
758 void gtk_style_context_add_class (GtkStyleContext *context,
759 const gchar *class_name);
760 void gtk_style_context_remove_class (GtkStyleContext *context,
761 const gchar *class_name);
762 gboolean gtk_style_context_has_class (GtkStyleContext *context,
763 const gchar *class_name);
765 GList * gtk_style_context_list_regions (GtkStyleContext *context);
767 void gtk_style_context_add_region (GtkStyleContext *context,
768 const gchar *region_name,
769 GtkRegionFlags flags);
770 void gtk_style_context_remove_region (GtkStyleContext *context,
771 const gchar *region_name);
772 gboolean gtk_style_context_has_region (GtkStyleContext *context,
773 const gchar *region_name,
774 GtkRegionFlags *flags_return);
776 void gtk_style_context_get_style_property (GtkStyleContext *context,
777 const gchar *property_name,
779 void gtk_style_context_get_style_valist (GtkStyleContext *context,
781 void gtk_style_context_get_style (GtkStyleContext *context,
784 GtkIconSet * gtk_style_context_lookup_icon_set (GtkStyleContext *context,
785 const gchar *stock_id);
786 GdkPixbuf * gtk_icon_set_render_icon_pixbuf (GtkIconSet *icon_set,
787 GtkStyleContext *context,
790 void gtk_style_context_set_screen (GtkStyleContext *context,
792 GdkScreen * gtk_style_context_get_screen (GtkStyleContext *context);
794 void gtk_style_context_set_direction (GtkStyleContext *context,
795 GtkTextDirection direction);
796 GtkTextDirection gtk_style_context_get_direction (GtkStyleContext *context);
798 void gtk_style_context_set_junction_sides (GtkStyleContext *context,
799 GtkJunctionSides sides);
800 GtkJunctionSides gtk_style_context_get_junction_sides (GtkStyleContext *context);
802 gboolean gtk_style_context_lookup_color (GtkStyleContext *context,
803 const gchar *color_name,
806 void gtk_style_context_notify_state_change (GtkStyleContext *context,
810 gboolean state_value);
811 void gtk_style_context_cancel_animations (GtkStyleContext *context,
813 void gtk_style_context_scroll_animations (GtkStyleContext *context,
818 void gtk_style_context_push_animatable_region (GtkStyleContext *context,
820 void gtk_style_context_pop_animatable_region (GtkStyleContext *context);
822 /* Some helper functions to retrieve most common properties */
823 void gtk_style_context_get_color (GtkStyleContext *context,
826 void gtk_style_context_get_background_color (GtkStyleContext *context,
829 void gtk_style_context_get_border_color (GtkStyleContext *context,
832 const PangoFontDescription *
833 gtk_style_context_get_font (GtkStyleContext *context,
834 GtkStateFlags state);
835 void gtk_style_context_get_border (GtkStyleContext *context,
838 void gtk_style_context_get_padding (GtkStyleContext *context,
841 void gtk_style_context_get_margin (GtkStyleContext *context,
845 void gtk_style_context_invalidate (GtkStyleContext *context);
846 void gtk_style_context_reset_widgets (GdkScreen *screen);
848 void gtk_style_context_set_background (GtkStyleContext *context,
852 void gtk_render_check (GtkStyleContext *context,
858 void gtk_render_option (GtkStyleContext *context,
864 void gtk_render_arrow (GtkStyleContext *context,
870 void gtk_render_background (GtkStyleContext *context,
876 void gtk_render_frame (GtkStyleContext *context,
882 void gtk_render_expander (GtkStyleContext *context,
888 void gtk_render_focus (GtkStyleContext *context,
894 void gtk_render_layout (GtkStyleContext *context,
898 PangoLayout *layout);
899 void gtk_render_line (GtkStyleContext *context,
905 void gtk_render_slider (GtkStyleContext *context,
911 GtkOrientation orientation);
912 void gtk_render_frame_gap (GtkStyleContext *context,
918 GtkPositionType gap_side,
921 void gtk_render_extension (GtkStyleContext *context,
927 GtkPositionType gap_side);
928 void gtk_render_handle (GtkStyleContext *context,
934 void gtk_render_activity (GtkStyleContext *context,
940 GdkPixbuf * gtk_render_icon_pixbuf (GtkStyleContext *context,
941 const GtkIconSource *source,
944 void gtk_render_icon (GtkStyleContext *context,
950 void gtk_render_insertion_cursor
951 (GtkStyleContext *context,
957 PangoDirection direction);
958 GDK_DEPRECATED_IN_3_4
959 void gtk_draw_insertion_cursor (GtkWidget *widget,
961 const GdkRectangle *location,
963 GtkTextDirection direction,
964 gboolean draw_arrow);
966 /* Accessibility support */
967 AtkAttributeSet *_gtk_style_context_get_attributes (AtkAttributeSet *attributes,
968 GtkStyleContext *context,
969 GtkStateFlags flags);
973 #endif /* __GTK_STYLE_CONTEXT_H__ */