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 <glib-object.h>
26 #include <gtk/gtkcsssection.h>
27 #include <gtk/gtkstyleprovider.h>
28 #include <gtk/gtkwidgetpath.h>
29 #include <gtk/gtkborder.h>
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))
41 typedef struct _GtkStyleContext GtkStyleContext;
42 typedef struct _GtkStyleContextClass GtkStyleContextClass;
43 typedef struct _GtkStyleContextPrivate GtkStyleContextPrivate;
45 struct _GtkStyleContext
47 GObject parent_object;
48 GtkStyleContextPrivate *priv;
51 struct _GtkStyleContextClass
53 GObjectClass parent_class;
55 void (* changed) (GtkStyleContext *context);
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);
64 /* Default set of properties that GtkStyleContext may contain */
67 * GTK_STYLE_PROPERTY_BACKGROUND_COLOR:
69 * A property holding the background color of rendered elements as a #GdkRGBA.
71 #define GTK_STYLE_PROPERTY_BACKGROUND_COLOR "background-color"
74 * GTK_STYLE_PROPERTY_COLOR:
76 * A property holding the foreground color of rendered elements as a #GdkRGBA.
78 #define GTK_STYLE_PROPERTY_COLOR "color"
81 * GTK_STYLE_PROPERTY_FONT:
83 * A property holding the font properties used when rendering text
84 * as a #PangoFontDescription.
86 #define GTK_STYLE_PROPERTY_FONT "font"
89 * GTK_STYLE_PROPERTY_PADDING:
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
96 #define GTK_STYLE_PROPERTY_PADDING "padding"
99 * GTK_STYLE_PROPERTY_BORDER_WIDTH:
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.
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
109 #define GTK_STYLE_PROPERTY_BORDER_WIDTH "border-width"
112 * GTK_STYLE_PROPERTY_MARGIN:
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.
120 #define GTK_STYLE_PROPERTY_MARGIN "margin"
123 * GTK_STYLE_PROPERTY_BORDER_RADIUS:
125 * A property holding the rendered element's border radius in pixels as a #gint.
127 #define GTK_STYLE_PROPERTY_BORDER_RADIUS "border-radius"
130 * GTK_STYLE_PROPERTY_BORDER_STYLE:
132 * A property holding the element's border style as a #GtkBorderStyle.
134 #define GTK_STYLE_PROPERTY_BORDER_STYLE "border-style"
137 * GTK_STYLE_PROPERTY_BORDER_COLOR:
139 * A property holding the element's border color as a #GdkRGBA.
141 #define GTK_STYLE_PROPERTY_BORDER_COLOR "border-color"
144 * GTK_STYLE_PROPERTY_BACKGROUND_IMAGE:
146 * A property holding the element's background as a #cairo_pattern_t.
148 #define GTK_STYLE_PROPERTY_BACKGROUND_IMAGE "background-image"
150 /* Predefined set of CSS classes */
153 * GTK_STYLE_CLASS_CELL:
155 * A CSS class to match content rendered in cell views.
157 * This is used by cell renderers, e.g. in #GtkIconView
160 #define GTK_STYLE_CLASS_CELL "cell"
163 * GTK_STYLE_CLASS_ENTRY:
165 * A CSS class to match text entries.
167 * This is used by #GtkEntry.
169 #define GTK_STYLE_CLASS_ENTRY "entry"
172 * GTK_STYLE_CLASS_COMBOBOX_ENTRY:
174 * A CSS class to match combobox entries.
176 * This is used by #GtkComboBox.
178 #define GTK_STYLE_CLASS_COMBOBOX_ENTRY "combobox-entry"
181 * GTK_STYLE_CLASS_BUTTON:
183 * A CSS class to match buttons.
185 * This is used by #GtkButton and its subclasses, as well
186 * as various other widget pieces that appear like buttons,
187 * e.g. the arrows in a #GtkCalendar.
189 #define GTK_STYLE_CLASS_BUTTON "button"
192 * GTK_STYLE_CLASS_CALENDAR:
194 * A CSS class to match calendars.
196 * This is not used by GTK+ itself, currently.
198 #define GTK_STYLE_CLASS_CALENDAR "calendar"
201 * GTK_STYLE_CLASS_SLIDER:
203 * A CSS class to match sliders.
205 * This is used by #GtkSwitch and #GtkRange and its subclasses.
207 #define GTK_STYLE_CLASS_SLIDER "slider"
210 * GTK_STYLE_CLASS_BACKGROUND:
212 * A CSS class to match the window background.
214 #define GTK_STYLE_CLASS_BACKGROUND "background"
217 * GTK_STYLE_CLASS_RUBBERBAND:
219 * A CSS class to match the rubberband selection rectangle.
221 * This is used in #GtkIconView and #GtkTreeView.
223 #define GTK_STYLE_CLASS_RUBBERBAND "rubberband"
226 * GTK_STYLE_CLASS_TOOLTIP:
228 * A CSS class to match tooltip windows.
230 #define GTK_STYLE_CLASS_TOOLTIP "tooltip"
233 * GTK_STYLE_CLASS_MENU:
235 * A CSS class to match popup menus.
237 * This is used in #GtkMenu.
239 #define GTK_STYLE_CLASS_MENU "menu"
242 * GTK_STYLE_CLASS_MENUBAR:
244 * A CSS class to menubars.
246 * This is used in #GtkMenuBar.
248 #define GTK_STYLE_CLASS_MENUBAR "menubar"
251 * GTK_STYLE_CLASS_MENUITEM:
253 * A CSS class to match menu items.
255 * This is used in #GtkMenuItem and its subclasses.
257 #define GTK_STYLE_CLASS_MENUITEM "menuitem"
260 * GTK_STYLE_CLASS_TOOLBAR:
262 * A CSS class to match toolbars.
264 * This is used in #GtkToolbar.
266 #define GTK_STYLE_CLASS_TOOLBAR "toolbar"
269 * GTK_STYLE_CLASS_PRIMARY_TOOLBAR:
271 * A CSS class to match primary toolbars.
273 * This should be used for the 'main' toolbar of an application,
274 * right below its menubar.
276 #define GTK_STYLE_CLASS_PRIMARY_TOOLBAR "primary-toolbar"
279 * GTK_STYLE_CLASS_INLINE_TOOLBAR:
281 * A CSS class to match inline toolbars.
283 * This should be used for toolbars that are used to hold
284 * actions below lists, as seen e.g. in the left pane of the
287 #define GTK_STYLE_CLASS_INLINE_TOOLBAR "inline-toolbar"
290 * GTK_STYLE_CLASS_RADIO:
292 * A CSS class to match radio buttons.
294 * This is used in #GtkRadioButton, #GtkRadioMenuItem and
295 * #GtkCellRendererToggle.
297 #define GTK_STYLE_CLASS_RADIO "radio"
300 * GTK_STYLE_CLASS_CHECK:
302 * A CSS class to match check boxes.
304 * This is used in #GtkCheckButton, #GtkCheckMenuItem and
305 * #GtkCellRendererToggle.
307 #define GTK_STYLE_CLASS_CHECK "check"
310 * GTK_STYLE_CLASS_DEFAULT:
312 * A CSS class to match the default widget.
314 * This is used by #GtkButton.
316 #define GTK_STYLE_CLASS_DEFAULT "default"
319 * GTK_STYLE_CLASS_TROUGH:
321 * A CSS class to match troughs, as in scrollbars and progressbars.
323 * This is used in #GtkRange and its subclasses, #GtkProgressBar
326 #define GTK_STYLE_CLASS_TROUGH "trough"
329 * GTK_STYLE_CLASS_SCROLLBAR:
331 * A CSS class to match scrollbars.
333 #define GTK_STYLE_CLASS_SCROLLBAR "scrollbar"
336 * GTK_STYLE_CLASS_SCROLLBARS_JUNCTION:
338 * A CSS class to match the junction area between an horizontal
339 * and vertical scrollbar, when they're both shown.
341 * This is used in #GtkScrolledWindow.
343 #define GTK_STYLE_CLASS_SCROLLBARS_JUNCTION "scrollbars-junction"
346 * GTK_STYLE_CLASS_SCALE:
348 * A CSS class to match scale widgets.
350 * This is used in #GtkScale.
352 #define GTK_STYLE_CLASS_SCALE "scale"
355 * GTK_STYLE_CLASS_SCALE_HAS_MARKS_ABOVE:
357 * A CSS class to match scale widgets with marks attached,
358 * all the marks are above for horizontal #GtkScale.
359 * left for vertical #GtkScale.
361 #define GTK_STYLE_CLASS_SCALE_HAS_MARKS_ABOVE "scale-has-marks-above"
364 * GTK_STYLE_CLASS_SCALE_HAS_MARKS_BELOW:
366 * A CSS class to match scale widgets with marks attached,
367 * all the marks are below for horizontal #GtkScale,
368 * right for vertical #GtkScale.
370 #define GTK_STYLE_CLASS_SCALE_HAS_MARKS_BELOW "scale-has-marks-below"
373 * GTK_STYLE_CLASS_HEADER:
375 * A CSS class to match a header element.
377 * This is used for the header in #GtkCalendar.
379 #define GTK_STYLE_CLASS_HEADER "header"
382 * GTK_STYLE_CLASS_ACCELERATOR:
384 * A CSS class to match an accelerator.
386 * This is used for the accelerator in #GtkAccelLabel.
388 #define GTK_STYLE_CLASS_ACCELERATOR "accelerator"
391 * GTK_STYLE_CLASS_RAISED:
393 * A CSS class to match a raised control, such as a raised
394 * button on a toolbar.
396 * This should be used in conjunction with #GTK_STYLE_CLASS_PRIMARY_TOOLBAR.
398 #define GTK_STYLE_CLASS_RAISED "raised"
401 * GTK_STYLE_CLASS_LINKED:
403 * A CSS class to match a linked area, such as a box containing buttons
404 * belonging to the same control.
406 #define GTK_STYLE_CLASS_LINKED "linked"
409 * GTK_STYLE_CLASS_GRIP:
411 * A CSS class defining a resize grip.
413 * This is used for the resize grip in #GtkWindow.
415 #define GTK_STYLE_CLASS_GRIP "grip"
418 * GTK_STYLE_CLASS_DOCK:
420 * A CSS class defining a dock area.
422 * This is used by #GtkHandleBox.
424 #define GTK_STYLE_CLASS_DOCK "dock"
427 * GTK_STYLE_CLASS_PROGRESSBAR:
429 * A CSS class to use when rendering activity as a progressbar.
431 * This is used in #GtkProgressBar and when drawing progress
432 * inside a #GtkEntry or in #GtkCellRendererProgress.
434 #define GTK_STYLE_CLASS_PROGRESSBAR "progressbar"
437 * GTK_STYLE_CLASS_SPINNER:
439 * A CSS class to use when rendering activity as a 'spinner'.
441 * This is used by #GtkSpinner and #GtkCellRendererSpinner.
443 #define GTK_STYLE_CLASS_SPINNER "spinner"
446 * GTK_STYLE_CLASS_MARK:
448 * A CSS class defining marks in a widget, such as in scales.
452 #define GTK_STYLE_CLASS_MARK "mark"
455 * GTK_STYLE_CLASS_EXPANDER:
457 * A CSS class defining an expander, such as those in treeviews.
459 * Used for drawing expanders in #GtkTreeView, GtkExpander and
462 #define GTK_STYLE_CLASS_EXPANDER "expander"
465 * GTK_STYLE_CLASS_SPINBUTTON:
467 * A CSS class defining an spinbutton.
469 * This is used in #GtkSpinButton.
471 #define GTK_STYLE_CLASS_SPINBUTTON "spinbutton"
474 * GTK_STYLE_CLASS_NOTEBOOK:
476 * A CSS class defining a notebook.
478 * Used in #GtkNotebook.
480 #define GTK_STYLE_CLASS_NOTEBOOK "notebook"
483 * GTK_STYLE_CLASS_VIEW:
485 * A CSS class defining a view, such as iconviews or treeviews.
487 * This is used in #GtkTreeView, #GtkIconView, #GtkTextView,
488 * as well as #GtkCalendar.
490 #define GTK_STYLE_CLASS_VIEW "view"
493 * GTK_STYLE_CLASS_SIDEBAR:
495 * A CSS class defining a sidebar, such as the left side in
498 * This is used in #GtkFileChooser and in #GtkAssistant.
500 #define GTK_STYLE_CLASS_SIDEBAR "sidebar"
503 * GTK_STYLE_CLASS_IMAGE:
505 * A CSS class defining an image, such as the icon in an entry.
507 * This is used when rendering icons in #GtkEntry.
509 #define GTK_STYLE_CLASS_IMAGE "image"
512 * GTK_STYLE_CLASS_HIGHLIGHT:
514 * A CSS class defining a highlighted area, such as headings in
515 * assistants and calendars.
517 * This is used in #GtkAssistant and #GtkCalendar.
519 #define GTK_STYLE_CLASS_HIGHLIGHT "highlight"
522 * GTK_STYLE_CLASS_FRAME:
524 * A CSS class defining a frame delimiting content, such as
525 * #GtkFrame or the scrolled window frame around the
528 * This is used in #GtkFrame and #GtkScrollbar.
530 #define GTK_STYLE_CLASS_FRAME "frame"
533 * GTK_STYLE_CLASS_DND:
535 * A CSS class for a drag-and-drop indicator.
537 * This is used when drawing an outline around a potential
538 * drop target during DND.
540 #define GTK_STYLE_CLASS_DND "dnd"
543 * GTK_STYLE_CLASS_PANE_SEPARATOR:
545 * A CSS class for a pane separator, such as those in #GtkPaned.
549 #define GTK_STYLE_CLASS_PANE_SEPARATOR "pane-separator"
552 * GTK_STYLE_CLASS_SEPARATOR:
554 * A CSS class for a separator.
556 * This is used in #GtkSeparator, #GtkSeparatorMenuItem,
557 * #GtkSeparatorToolItem, and when drawing separators in #GtkTreeView.
559 #define GTK_STYLE_CLASS_SEPARATOR "separator"
562 * GTK_STYLE_CLASS_INFO:
564 * A CSS class for an area displaying an informational message,
565 * such as those in infobars.
567 * This is used by #GtkInfoBar.
569 #define GTK_STYLE_CLASS_INFO "info"
572 * GTK_STYLE_CLASS_WARNING:
574 * A CSS class for an area displaying a warning message,
575 * such as those in infobars.
577 * This is used by #GtkInfoBar.
579 #define GTK_STYLE_CLASS_WARNING "warning"
582 * GTK_STYLE_CLASS_QUESTION:
584 * A CSS class for an area displaying a question to the user,
585 * such as those in infobars.
587 * This is used by #GtkInfoBar.
589 #define GTK_STYLE_CLASS_QUESTION "question"
592 * GTK_STYLE_CLASS_ERROR:
594 * A CSS class for an area displaying an error message,
595 * such as those in infobars.
597 * This is used by #GtkInfoBar.
599 #define GTK_STYLE_CLASS_ERROR "error"
602 * GTK_STYLE_CLASS_HORIZONTAL:
604 * A CSS class for horizontally layered widgets.
606 * This is used by widgets implementing #GtkOrientable.
608 #define GTK_STYLE_CLASS_HORIZONTAL "horizontal"
611 * GTK_STYLE_CLASS_VERTICAL:
613 * A CSS class for vertically layered widgets.
615 * This is used by widgets implementing #GtkOrientable.
617 #define GTK_STYLE_CLASS_VERTICAL "vertical"
620 * GTK_STYLE_CLASS_TOP:
622 * A CSS class to indicate an area at the top of a widget.
624 * This is used by widgets that can render an area in different
625 * positions, such as tabs in a #GtkNotebook.
627 #define GTK_STYLE_CLASS_TOP "top"
630 * GTK_STYLE_CLASS_BOTTOM:
632 * A CSS class to indicate an area at the bottom of a widget.
634 * This is used by widgets that can render an area in different
635 * positions, such as tabs in a #GtkNotebook.
637 #define GTK_STYLE_CLASS_BOTTOM "bottom"
640 * GTK_STYLE_CLASS_LEFT:
642 * A CSS class to indicate an area at the left of a widget.
644 * This is used by widgets that can render an area in different
645 * positions, such as tabs in a #GtkNotebook.
647 #define GTK_STYLE_CLASS_LEFT "left"
650 * GTK_STYLE_CLASS_RIGHT:
652 * A CSS class to indicate an area at the right of a widget.
654 * This is used by widgets that can render an area in different
655 * positions, such as tabs in a #GtkNotebook.
657 #define GTK_STYLE_CLASS_RIGHT "right"
659 /* Predefined set of widget regions */
662 * GTK_STYLE_REGION_ROW:
664 * A widget region name to define a treeview row.
666 #define GTK_STYLE_REGION_ROW "row"
669 * GTK_STYLE_REGION_COLUMN:
671 * A widget region name to define a treeview column.
673 #define GTK_STYLE_REGION_COLUMN "column"
676 * GTK_STYLE_REGION_COLUMN_HEADER:
678 * A widget region name to define a treeview column header.
680 #define GTK_STYLE_REGION_COLUMN_HEADER "column-header"
683 * GTK_STYLE_REGION_TAB:
685 * A widget region name to define a notebook tab.
687 #define GTK_STYLE_REGION_TAB "tab"
690 * GTK_STYLE_CLASS_PULSE:
692 * A CSS class to use when rendering a pulse in an indeterminate progress bar.
694 * This is used by #GtkProgressBar and #GtkEntry.
696 #define GTK_STYLE_CLASS_PULSE "pulse"
699 * GTK_STYLE_CLASS_ARROW:
701 * A CSS class used when rendering an arrow element.
703 * Note that #gtk_render_arrow automatically adds this style class
704 * to the style context when rendering an arrow element.
706 #define GTK_STYLE_CLASS_ARROW "arrow"
709 GType gtk_style_context_get_type (void) G_GNUC_CONST;
711 GtkStyleContext * gtk_style_context_new (void);
713 void gtk_style_context_add_provider_for_screen (GdkScreen *screen,
714 GtkStyleProvider *provider,
716 void gtk_style_context_remove_provider_for_screen (GdkScreen *screen,
717 GtkStyleProvider *provider);
719 void gtk_style_context_add_provider (GtkStyleContext *context,
720 GtkStyleProvider *provider,
723 void gtk_style_context_remove_provider (GtkStyleContext *context,
724 GtkStyleProvider *provider);
726 void gtk_style_context_save (GtkStyleContext *context);
727 void gtk_style_context_restore (GtkStyleContext *context);
729 GtkCssSection * gtk_style_context_get_section (GtkStyleContext *context,
730 const gchar *property);
731 void gtk_style_context_get_property (GtkStyleContext *context,
732 const gchar *property,
735 void gtk_style_context_get_valist (GtkStyleContext *context,
738 void gtk_style_context_get (GtkStyleContext *context,
740 ...) G_GNUC_NULL_TERMINATED;
742 void gtk_style_context_set_state (GtkStyleContext *context,
743 GtkStateFlags flags);
744 GtkStateFlags gtk_style_context_get_state (GtkStyleContext *context);
746 gboolean gtk_style_context_state_is_running (GtkStyleContext *context,
750 void gtk_style_context_set_path (GtkStyleContext *context,
751 GtkWidgetPath *path);
752 const GtkWidgetPath * gtk_style_context_get_path (GtkStyleContext *context);
754 void gtk_style_context_set_parent (GtkStyleContext *context,
755 GtkStyleContext *parent);
756 GtkStyleContext *gtk_style_context_get_parent (GtkStyleContext *context);
758 GList * gtk_style_context_list_classes (GtkStyleContext *context);
760 void gtk_style_context_add_class (GtkStyleContext *context,
761 const gchar *class_name);
762 void gtk_style_context_remove_class (GtkStyleContext *context,
763 const gchar *class_name);
764 gboolean gtk_style_context_has_class (GtkStyleContext *context,
765 const gchar *class_name);
767 GList * gtk_style_context_list_regions (GtkStyleContext *context);
769 void gtk_style_context_add_region (GtkStyleContext *context,
770 const gchar *region_name,
771 GtkRegionFlags flags);
772 void gtk_style_context_remove_region (GtkStyleContext *context,
773 const gchar *region_name);
774 gboolean gtk_style_context_has_region (GtkStyleContext *context,
775 const gchar *region_name,
776 GtkRegionFlags *flags_return);
778 void gtk_style_context_get_style_property (GtkStyleContext *context,
779 const gchar *property_name,
781 void gtk_style_context_get_style_valist (GtkStyleContext *context,
783 void gtk_style_context_get_style (GtkStyleContext *context,
786 GtkIconSet * gtk_style_context_lookup_icon_set (GtkStyleContext *context,
787 const gchar *stock_id);
788 GdkPixbuf * gtk_icon_set_render_icon_pixbuf (GtkIconSet *icon_set,
789 GtkStyleContext *context,
792 void gtk_style_context_set_screen (GtkStyleContext *context,
794 GdkScreen * gtk_style_context_get_screen (GtkStyleContext *context);
796 void gtk_style_context_set_direction (GtkStyleContext *context,
797 GtkTextDirection direction);
798 GtkTextDirection gtk_style_context_get_direction (GtkStyleContext *context);
800 void gtk_style_context_set_junction_sides (GtkStyleContext *context,
801 GtkJunctionSides sides);
802 GtkJunctionSides gtk_style_context_get_junction_sides (GtkStyleContext *context);
804 gboolean gtk_style_context_lookup_color (GtkStyleContext *context,
805 const gchar *color_name,
808 void gtk_style_context_notify_state_change (GtkStyleContext *context,
812 gboolean state_value);
813 void gtk_style_context_cancel_animations (GtkStyleContext *context,
815 void gtk_style_context_scroll_animations (GtkStyleContext *context,
820 void gtk_style_context_push_animatable_region (GtkStyleContext *context,
822 void gtk_style_context_pop_animatable_region (GtkStyleContext *context);
824 /* Some helper functions to retrieve most common properties */
825 void gtk_style_context_get_color (GtkStyleContext *context,
828 void gtk_style_context_get_background_color (GtkStyleContext *context,
831 void gtk_style_context_get_border_color (GtkStyleContext *context,
834 const PangoFontDescription *
835 gtk_style_context_get_font (GtkStyleContext *context,
836 GtkStateFlags state);
837 void gtk_style_context_get_border (GtkStyleContext *context,
840 void gtk_style_context_get_padding (GtkStyleContext *context,
843 void gtk_style_context_get_margin (GtkStyleContext *context,
847 void gtk_style_context_invalidate (GtkStyleContext *context);
848 void gtk_style_context_reset_widgets (GdkScreen *screen);
850 void gtk_style_context_set_background (GtkStyleContext *context,
854 void gtk_render_check (GtkStyleContext *context,
860 void gtk_render_option (GtkStyleContext *context,
866 void gtk_render_arrow (GtkStyleContext *context,
872 void gtk_render_background (GtkStyleContext *context,
878 void gtk_render_frame (GtkStyleContext *context,
884 void gtk_render_expander (GtkStyleContext *context,
890 void gtk_render_focus (GtkStyleContext *context,
896 void gtk_render_layout (GtkStyleContext *context,
900 PangoLayout *layout);
901 void gtk_render_line (GtkStyleContext *context,
907 void gtk_render_slider (GtkStyleContext *context,
913 GtkOrientation orientation);
914 void gtk_render_frame_gap (GtkStyleContext *context,
920 GtkPositionType gap_side,
923 void gtk_render_extension (GtkStyleContext *context,
929 GtkPositionType gap_side);
930 void gtk_render_handle (GtkStyleContext *context,
936 void gtk_render_activity (GtkStyleContext *context,
942 GdkPixbuf * gtk_render_icon_pixbuf (GtkStyleContext *context,
943 const GtkIconSource *source,
946 void gtk_render_icon (GtkStyleContext *context,
952 void gtk_render_insertion_cursor
953 (GtkStyleContext *context,
959 PangoDirection direction);
960 GDK_DEPRECATED_IN_3_4
961 void gtk_draw_insertion_cursor (GtkWidget *widget,
963 const GdkRectangle *location,
965 GtkTextDirection direction,
966 gboolean draw_arrow);
968 /* Accessibility support */
969 AtkAttributeSet *_gtk_style_context_get_attributes (AtkAttributeSet *attributes,
970 GtkStyleContext *context,
971 GtkStateFlags flags);
975 #endif /* __GTK_STYLE_CONTEXT_H__ */