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_DIM_LABEL:
163 * A CSS class to match dimmed labels.
165 * This should be used for toning down right aligned labels as
166 * compared to the entry value.
168 #define GTK_STYLE_CLASS_DIM_LABEL "dim-label"
171 * GTK_STYLE_CLASS_ENTRY:
173 * A CSS class to match text entries.
175 * This is used by #GtkEntry.
177 #define GTK_STYLE_CLASS_ENTRY "entry"
180 * GTK_STYLE_CLASS_COMBOBOX_ENTRY:
182 * A CSS class to match combobox entries.
184 * This is used by #GtkComboBox.
186 #define GTK_STYLE_CLASS_COMBOBOX_ENTRY "combobox-entry"
189 * GTK_STYLE_CLASS_BUTTON:
191 * A CSS class to match buttons.
193 * This is used by #GtkButton and its subclasses, as well
194 * as various other widget pieces that appear like buttons,
195 * e.g. the arrows in a #GtkCalendar.
197 #define GTK_STYLE_CLASS_BUTTON "button"
200 * GTK_STYLE_CLASS_CALENDAR:
202 * A CSS class to match calendars.
204 * This is not used by GTK+ itself, currently.
206 #define GTK_STYLE_CLASS_CALENDAR "calendar"
209 * GTK_STYLE_CLASS_SLIDER:
211 * A CSS class to match sliders.
213 * This is used by #GtkSwitch and #GtkRange and its subclasses.
215 #define GTK_STYLE_CLASS_SLIDER "slider"
218 * GTK_STYLE_CLASS_BACKGROUND:
220 * A CSS class to match the window background.
222 #define GTK_STYLE_CLASS_BACKGROUND "background"
225 * GTK_STYLE_CLASS_RUBBERBAND:
227 * A CSS class to match the rubberband selection rectangle.
229 * This is used in #GtkIconView and #GtkTreeView.
231 #define GTK_STYLE_CLASS_RUBBERBAND "rubberband"
234 * GTK_STYLE_CLASS_TOOLTIP:
236 * A CSS class to match tooltip windows.
238 #define GTK_STYLE_CLASS_TOOLTIP "tooltip"
241 * GTK_STYLE_CLASS_MENU:
243 * A CSS class to match popup menus.
245 * This is used in #GtkMenu.
247 #define GTK_STYLE_CLASS_MENU "menu"
250 * GTK_STYLE_CLASS_MENUBAR:
252 * A CSS class to menubars.
254 * This is used in #GtkMenuBar.
256 #define GTK_STYLE_CLASS_MENUBAR "menubar"
259 * GTK_STYLE_CLASS_MENUITEM:
261 * A CSS class to match menu items.
263 * This is used in #GtkMenuItem and its subclasses.
265 #define GTK_STYLE_CLASS_MENUITEM "menuitem"
268 * GTK_STYLE_CLASS_TOOLBAR:
270 * A CSS class to match toolbars.
272 * This is used in #GtkToolbar.
274 #define GTK_STYLE_CLASS_TOOLBAR "toolbar"
277 * GTK_STYLE_CLASS_PRIMARY_TOOLBAR:
279 * A CSS class to match primary toolbars.
281 * This should be used for the 'main' toolbar of an application,
282 * right below its menubar.
284 #define GTK_STYLE_CLASS_PRIMARY_TOOLBAR "primary-toolbar"
287 * GTK_STYLE_CLASS_INLINE_TOOLBAR:
289 * A CSS class to match inline toolbars.
291 * This should be used for toolbars that are used to hold
292 * actions below lists, as seen e.g. in the left pane of the
295 #define GTK_STYLE_CLASS_INLINE_TOOLBAR "inline-toolbar"
298 * GTK_STYLE_CLASS_RADIO:
300 * A CSS class to match radio buttons.
302 * This is used in #GtkRadioButton, #GtkRadioMenuItem and
303 * #GtkCellRendererToggle.
305 #define GTK_STYLE_CLASS_RADIO "radio"
308 * GTK_STYLE_CLASS_CHECK:
310 * A CSS class to match check boxes.
312 * This is used in #GtkCheckButton, #GtkCheckMenuItem and
313 * #GtkCellRendererToggle.
315 #define GTK_STYLE_CLASS_CHECK "check"
318 * GTK_STYLE_CLASS_DEFAULT:
320 * A CSS class to match the default widget.
322 * This is used by #GtkButton.
324 #define GTK_STYLE_CLASS_DEFAULT "default"
327 * GTK_STYLE_CLASS_TROUGH:
329 * A CSS class to match troughs, as in scrollbars and progressbars.
331 * This is used in #GtkRange and its subclasses, #GtkProgressBar
334 #define GTK_STYLE_CLASS_TROUGH "trough"
337 * GTK_STYLE_CLASS_SCROLLBAR:
339 * A CSS class to match scrollbars.
341 #define GTK_STYLE_CLASS_SCROLLBAR "scrollbar"
344 * GTK_STYLE_CLASS_SCROLLBARS_JUNCTION:
346 * A CSS class to match the junction area between an horizontal
347 * and vertical scrollbar, when they're both shown.
349 * This is used in #GtkScrolledWindow.
351 #define GTK_STYLE_CLASS_SCROLLBARS_JUNCTION "scrollbars-junction"
354 * GTK_STYLE_CLASS_SCALE:
356 * A CSS class to match scale widgets.
358 * This is used in #GtkScale.
360 #define GTK_STYLE_CLASS_SCALE "scale"
363 * GTK_STYLE_CLASS_SCALE_HAS_MARKS_ABOVE:
365 * A CSS class to match scale widgets with marks attached,
366 * all the marks are above for horizontal #GtkScale.
367 * left for vertical #GtkScale.
369 #define GTK_STYLE_CLASS_SCALE_HAS_MARKS_ABOVE "scale-has-marks-above"
372 * GTK_STYLE_CLASS_SCALE_HAS_MARKS_BELOW:
374 * A CSS class to match scale widgets with marks attached,
375 * all the marks are below for horizontal #GtkScale,
376 * right for vertical #GtkScale.
378 #define GTK_STYLE_CLASS_SCALE_HAS_MARKS_BELOW "scale-has-marks-below"
381 * GTK_STYLE_CLASS_HEADER:
383 * A CSS class to match a header element.
385 * This is used for the header in #GtkCalendar.
387 #define GTK_STYLE_CLASS_HEADER "header"
390 * GTK_STYLE_CLASS_ACCELERATOR:
392 * A CSS class to match an accelerator.
394 * This is used for the accelerator in #GtkAccelLabel.
396 #define GTK_STYLE_CLASS_ACCELERATOR "accelerator"
399 * GTK_STYLE_CLASS_RAISED:
401 * A CSS class to match a raised control, such as a raised
402 * button on a toolbar.
404 * This should be used in conjunction with #GTK_STYLE_CLASS_PRIMARY_TOOLBAR.
406 #define GTK_STYLE_CLASS_RAISED "raised"
409 * GTK_STYLE_CLASS_LINKED:
411 * A CSS class to match a linked area, such as a box containing buttons
412 * belonging to the same control.
414 #define GTK_STYLE_CLASS_LINKED "linked"
417 * GTK_STYLE_CLASS_GRIP:
419 * A CSS class defining a resize grip.
421 * This is used for the resize grip in #GtkWindow.
423 #define GTK_STYLE_CLASS_GRIP "grip"
426 * GTK_STYLE_CLASS_DOCK:
428 * A CSS class defining a dock area.
430 * This is used by #GtkHandleBox.
432 #define GTK_STYLE_CLASS_DOCK "dock"
435 * GTK_STYLE_CLASS_PROGRESSBAR:
437 * A CSS class to use when rendering activity as a progressbar.
439 * This is used in #GtkProgressBar and when drawing progress
440 * inside a #GtkEntry or in #GtkCellRendererProgress.
442 #define GTK_STYLE_CLASS_PROGRESSBAR "progressbar"
445 * GTK_STYLE_CLASS_SPINNER:
447 * A CSS class to use when rendering activity as a 'spinner'.
449 * This is used by #GtkSpinner and #GtkCellRendererSpinner.
451 #define GTK_STYLE_CLASS_SPINNER "spinner"
454 * GTK_STYLE_CLASS_MARK:
456 * A CSS class defining marks in a widget, such as in scales.
460 #define GTK_STYLE_CLASS_MARK "mark"
463 * GTK_STYLE_CLASS_EXPANDER:
465 * A CSS class defining an expander, such as those in treeviews.
467 * Used for drawing expanders in #GtkTreeView, GtkExpander and
470 #define GTK_STYLE_CLASS_EXPANDER "expander"
473 * GTK_STYLE_CLASS_SPINBUTTON:
475 * A CSS class defining an spinbutton.
477 * This is used in #GtkSpinButton.
479 #define GTK_STYLE_CLASS_SPINBUTTON "spinbutton"
482 * GTK_STYLE_CLASS_NOTEBOOK:
484 * A CSS class defining a notebook.
486 * Used in #GtkNotebook.
488 #define GTK_STYLE_CLASS_NOTEBOOK "notebook"
491 * GTK_STYLE_CLASS_VIEW:
493 * A CSS class defining a view, such as iconviews or treeviews.
495 * This is used in #GtkTreeView, #GtkIconView, #GtkTextView,
496 * as well as #GtkCalendar.
498 #define GTK_STYLE_CLASS_VIEW "view"
501 * GTK_STYLE_CLASS_SIDEBAR:
503 * A CSS class defining a sidebar, such as the left side in
506 * This is used in #GtkFileChooser and in #GtkAssistant.
508 #define GTK_STYLE_CLASS_SIDEBAR "sidebar"
511 * GTK_STYLE_CLASS_IMAGE:
513 * A CSS class defining an image, such as the icon in an entry.
515 * This is used when rendering icons in #GtkEntry.
517 #define GTK_STYLE_CLASS_IMAGE "image"
520 * GTK_STYLE_CLASS_HIGHLIGHT:
522 * A CSS class defining a highlighted area, such as headings in
523 * assistants and calendars.
525 * This is used in #GtkAssistant and #GtkCalendar.
527 #define GTK_STYLE_CLASS_HIGHLIGHT "highlight"
530 * GTK_STYLE_CLASS_FRAME:
532 * A CSS class defining a frame delimiting content, such as
533 * #GtkFrame or the scrolled window frame around the
536 * This is used in #GtkFrame and #GtkScrollbar.
538 #define GTK_STYLE_CLASS_FRAME "frame"
541 * GTK_STYLE_CLASS_DND:
543 * A CSS class for a drag-and-drop indicator.
545 * This is used when drawing an outline around a potential
546 * drop target during DND.
548 #define GTK_STYLE_CLASS_DND "dnd"
551 * GTK_STYLE_CLASS_PANE_SEPARATOR:
553 * A CSS class for a pane separator, such as those in #GtkPaned.
557 #define GTK_STYLE_CLASS_PANE_SEPARATOR "pane-separator"
560 * GTK_STYLE_CLASS_SEPARATOR:
562 * A CSS class for a separator.
564 * This is used in #GtkSeparator, #GtkSeparatorMenuItem,
565 * #GtkSeparatorToolItem, and when drawing separators in #GtkTreeView.
567 #define GTK_STYLE_CLASS_SEPARATOR "separator"
570 * GTK_STYLE_CLASS_INFO:
572 * A CSS class for an area displaying an informational message,
573 * such as those in infobars.
575 * This is used by #GtkInfoBar.
577 #define GTK_STYLE_CLASS_INFO "info"
580 * GTK_STYLE_CLASS_WARNING:
582 * A CSS class for an area displaying a warning message,
583 * such as those in infobars.
585 * This is used by #GtkInfoBar.
587 #define GTK_STYLE_CLASS_WARNING "warning"
590 * GTK_STYLE_CLASS_QUESTION:
592 * A CSS class for an area displaying a question to the user,
593 * such as those in infobars.
595 * This is used by #GtkInfoBar.
597 #define GTK_STYLE_CLASS_QUESTION "question"
600 * GTK_STYLE_CLASS_ERROR:
602 * A CSS class for an area displaying an error message,
603 * such as those in infobars.
605 * This is used by #GtkInfoBar.
607 #define GTK_STYLE_CLASS_ERROR "error"
610 * GTK_STYLE_CLASS_HORIZONTAL:
612 * A CSS class for horizontally layered widgets.
614 * This is used by widgets implementing #GtkOrientable.
616 #define GTK_STYLE_CLASS_HORIZONTAL "horizontal"
619 * GTK_STYLE_CLASS_VERTICAL:
621 * A CSS class for vertically layered widgets.
623 * This is used by widgets implementing #GtkOrientable.
625 #define GTK_STYLE_CLASS_VERTICAL "vertical"
628 * GTK_STYLE_CLASS_TOP:
630 * A CSS class to indicate an area at the top 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_TOP "top"
638 * GTK_STYLE_CLASS_BOTTOM:
640 * A CSS class to indicate an area at the bottom 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_BOTTOM "bottom"
648 * GTK_STYLE_CLASS_LEFT:
650 * A CSS class to indicate an area at the left 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_LEFT "left"
658 * GTK_STYLE_CLASS_RIGHT:
660 * A CSS class to indicate an area at the right of a widget.
662 * This is used by widgets that can render an area in different
663 * positions, such as tabs in a #GtkNotebook.
665 #define GTK_STYLE_CLASS_RIGHT "right"
668 * GTK_STYLE_CLASS_PULSE:
670 * A CSS class to use when rendering a pulse in an indeterminate progress bar.
672 * This is used by #GtkProgressBar and #GtkEntry.
674 #define GTK_STYLE_CLASS_PULSE "pulse"
677 * GTK_STYLE_CLASS_ARROW:
679 * A CSS class used when rendering an arrow element.
681 * Note that #gtk_render_arrow automatically adds this style class
682 * to the style context when rendering an arrow element.
684 #define GTK_STYLE_CLASS_ARROW "arrow"
687 * GTK_STYLE_CLASS_OSD:
689 * A CSS class used when rendering an OSD (On Screen Display) element,
690 * on top of another container.
692 #define GTK_STYLE_CLASS_OSD "osd"
695 * GTK_STYLE_CLASS_LEVEL_BAR:
697 * A CSS class used when rendering a level indicator, such
698 * as a battery charge level, or a password strength.
700 * This is used by #GtkLevelBar.
702 #define GTK_STYLE_CLASS_LEVEL_BAR "level-bar"
704 /* Predefined set of widget regions */
707 * GTK_STYLE_REGION_ROW:
709 * A widget region name to define a treeview row.
711 #define GTK_STYLE_REGION_ROW "row"
714 * GTK_STYLE_REGION_COLUMN:
716 * A widget region name to define a treeview column.
718 #define GTK_STYLE_REGION_COLUMN "column"
721 * GTK_STYLE_REGION_COLUMN_HEADER:
723 * A widget region name to define a treeview column header.
725 #define GTK_STYLE_REGION_COLUMN_HEADER "column-header"
728 * GTK_STYLE_REGION_TAB:
730 * A widget region name to define a notebook tab.
732 #define GTK_STYLE_REGION_TAB "tab"
734 GType gtk_style_context_get_type (void) G_GNUC_CONST;
736 GtkStyleContext * gtk_style_context_new (void);
738 void gtk_style_context_add_provider_for_screen (GdkScreen *screen,
739 GtkStyleProvider *provider,
741 void gtk_style_context_remove_provider_for_screen (GdkScreen *screen,
742 GtkStyleProvider *provider);
744 void gtk_style_context_add_provider (GtkStyleContext *context,
745 GtkStyleProvider *provider,
748 void gtk_style_context_remove_provider (GtkStyleContext *context,
749 GtkStyleProvider *provider);
751 void gtk_style_context_save (GtkStyleContext *context);
752 void gtk_style_context_restore (GtkStyleContext *context);
754 GtkCssSection * gtk_style_context_get_section (GtkStyleContext *context,
755 const gchar *property);
756 void gtk_style_context_get_property (GtkStyleContext *context,
757 const gchar *property,
760 void gtk_style_context_get_valist (GtkStyleContext *context,
763 void gtk_style_context_get (GtkStyleContext *context,
765 ...) G_GNUC_NULL_TERMINATED;
767 void gtk_style_context_set_state (GtkStyleContext *context,
768 GtkStateFlags flags);
769 GtkStateFlags gtk_style_context_get_state (GtkStyleContext *context);
771 GDK_DEPRECATED_IN_3_6
772 gboolean gtk_style_context_state_is_running (GtkStyleContext *context,
776 void gtk_style_context_set_path (GtkStyleContext *context,
777 GtkWidgetPath *path);
778 const GtkWidgetPath * gtk_style_context_get_path (GtkStyleContext *context);
780 void gtk_style_context_set_parent (GtkStyleContext *context,
781 GtkStyleContext *parent);
782 GtkStyleContext *gtk_style_context_get_parent (GtkStyleContext *context);
784 GList * gtk_style_context_list_classes (GtkStyleContext *context);
786 void gtk_style_context_add_class (GtkStyleContext *context,
787 const gchar *class_name);
788 void gtk_style_context_remove_class (GtkStyleContext *context,
789 const gchar *class_name);
790 gboolean gtk_style_context_has_class (GtkStyleContext *context,
791 const gchar *class_name);
793 GList * gtk_style_context_list_regions (GtkStyleContext *context);
795 void gtk_style_context_add_region (GtkStyleContext *context,
796 const gchar *region_name,
797 GtkRegionFlags flags);
798 void gtk_style_context_remove_region (GtkStyleContext *context,
799 const gchar *region_name);
800 gboolean gtk_style_context_has_region (GtkStyleContext *context,
801 const gchar *region_name,
802 GtkRegionFlags *flags_return);
804 void gtk_style_context_get_style_property (GtkStyleContext *context,
805 const gchar *property_name,
807 void gtk_style_context_get_style_valist (GtkStyleContext *context,
809 void gtk_style_context_get_style (GtkStyleContext *context,
812 GtkIconSet * gtk_style_context_lookup_icon_set (GtkStyleContext *context,
813 const gchar *stock_id);
814 GdkPixbuf * gtk_icon_set_render_icon_pixbuf (GtkIconSet *icon_set,
815 GtkStyleContext *context,
818 void gtk_style_context_set_screen (GtkStyleContext *context,
820 GdkScreen * gtk_style_context_get_screen (GtkStyleContext *context);
822 void gtk_style_context_set_direction (GtkStyleContext *context,
823 GtkTextDirection direction);
824 GtkTextDirection gtk_style_context_get_direction (GtkStyleContext *context);
826 void gtk_style_context_set_junction_sides (GtkStyleContext *context,
827 GtkJunctionSides sides);
828 GtkJunctionSides gtk_style_context_get_junction_sides (GtkStyleContext *context);
830 gboolean gtk_style_context_lookup_color (GtkStyleContext *context,
831 const gchar *color_name,
834 GDK_DEPRECATED_IN_3_6
835 void gtk_style_context_notify_state_change (GtkStyleContext *context,
839 gboolean state_value);
840 GDK_DEPRECATED_IN_3_6
841 void gtk_style_context_cancel_animations (GtkStyleContext *context,
843 GDK_DEPRECATED_IN_3_6
844 void gtk_style_context_scroll_animations (GtkStyleContext *context,
849 GDK_DEPRECATED_IN_3_6
850 void gtk_style_context_push_animatable_region (GtkStyleContext *context,
852 GDK_DEPRECATED_IN_3_6
853 void gtk_style_context_pop_animatable_region (GtkStyleContext *context);
855 /* Some helper functions to retrieve most common properties */
856 void gtk_style_context_get_color (GtkStyleContext *context,
859 void gtk_style_context_get_background_color (GtkStyleContext *context,
862 void gtk_style_context_get_border_color (GtkStyleContext *context,
865 const PangoFontDescription *
866 gtk_style_context_get_font (GtkStyleContext *context,
867 GtkStateFlags state);
868 void gtk_style_context_get_border (GtkStyleContext *context,
871 void gtk_style_context_get_padding (GtkStyleContext *context,
874 void gtk_style_context_get_margin (GtkStyleContext *context,
878 void gtk_style_context_invalidate (GtkStyleContext *context);
879 void gtk_style_context_reset_widgets (GdkScreen *screen);
881 void gtk_style_context_set_background (GtkStyleContext *context,
885 void gtk_render_check (GtkStyleContext *context,
891 void gtk_render_option (GtkStyleContext *context,
897 void gtk_render_arrow (GtkStyleContext *context,
903 void gtk_render_background (GtkStyleContext *context,
909 void gtk_render_frame (GtkStyleContext *context,
915 void gtk_render_expander (GtkStyleContext *context,
921 void gtk_render_focus (GtkStyleContext *context,
927 void gtk_render_layout (GtkStyleContext *context,
931 PangoLayout *layout);
932 void gtk_render_line (GtkStyleContext *context,
938 void gtk_render_slider (GtkStyleContext *context,
944 GtkOrientation orientation);
945 void gtk_render_frame_gap (GtkStyleContext *context,
951 GtkPositionType gap_side,
954 void gtk_render_extension (GtkStyleContext *context,
960 GtkPositionType gap_side);
961 void gtk_render_handle (GtkStyleContext *context,
967 void gtk_render_activity (GtkStyleContext *context,
973 GdkPixbuf * gtk_render_icon_pixbuf (GtkStyleContext *context,
974 const GtkIconSource *source,
977 void gtk_render_icon (GtkStyleContext *context,
983 void gtk_render_insertion_cursor
984 (GtkStyleContext *context,
990 PangoDirection direction);
991 GDK_DEPRECATED_IN_3_4
992 void gtk_draw_insertion_cursor (GtkWidget *widget,
994 const GdkRectangle *location,
996 GtkTextDirection direction,
997 gboolean draw_arrow);
999 /* Accessibility support */
1000 AtkAttributeSet *_gtk_style_context_get_attributes (AtkAttributeSet *attributes,
1001 GtkStyleContext *context,
1002 GtkStateFlags flags);
1006 #endif /* __GTK_STYLE_CONTEXT_H__ */