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/gtkcsssection.h>
29 #include <gtk/gtkstyleprovider.h>
30 #include <gtk/gtkwidgetpath.h>
31 #include <gtk/gtkborder.h>
36 #define GTK_TYPE_STYLE_CONTEXT (gtk_style_context_get_type ())
37 #define GTK_STYLE_CONTEXT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GTK_TYPE_STYLE_CONTEXT, GtkStyleContext))
38 #define GTK_STYLE_CONTEXT_CLASS(c) (G_TYPE_CHECK_CLASS_CAST ((c), GTK_TYPE_STYLE_CONTEXT, GtkStyleContextClass))
39 #define GTK_IS_STYLE_CONTEXT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GTK_TYPE_STYLE_CONTEXT))
40 #define GTK_IS_STYLE_CONTEXT_CLASS(c) (G_TYPE_CHECK_CLASS_TYPE ((c), GTK_TYPE_STYLE_CONTEXT))
41 #define GTK_STYLE_CONTEXT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GTK_TYPE_STYLE_CONTEXT, GtkStyleContextClass))
43 typedef struct _GtkStyleContext GtkStyleContext;
44 typedef struct _GtkStyleContextClass GtkStyleContextClass;
45 typedef struct _GtkStyleContextPrivate GtkStyleContextPrivate;
47 struct _GtkStyleContext
49 GObject parent_object;
50 GtkStyleContextPrivate *priv;
53 struct _GtkStyleContextClass
55 GObjectClass parent_class;
57 void (* changed) (GtkStyleContext *context);
59 /* Padding for future expansion */
60 void (*_gtk_reserved1) (void);
61 void (*_gtk_reserved2) (void);
62 void (*_gtk_reserved3) (void);
63 void (*_gtk_reserved4) (void);
66 /* Default set of properties that GtkStyleContext may contain */
69 * GTK_STYLE_PROPERTY_BACKGROUND_COLOR:
71 * A property holding the background color of rendered elements as a #GdkRGBA.
73 #define GTK_STYLE_PROPERTY_BACKGROUND_COLOR "background-color"
76 * GTK_STYLE_PROPERTY_COLOR:
78 * A property holding the foreground color of rendered elements as a #GdkRGBA.
80 #define GTK_STYLE_PROPERTY_COLOR "color"
83 * GTK_STYLE_PROPERTY_FONT:
85 * A property holding the font properties used when rendering text
86 * as a #PangoFontDescription.
88 #define GTK_STYLE_PROPERTY_FONT "font"
91 * GTK_STYLE_PROPERTY_PADDING:
93 * A property holding the rendered element's padding as a #GtkBorder. The
94 * padding is defined as the spacing between the inner part of the element border
95 * and its child. It's the innermost spacing property of the padding/border/margin
98 #define GTK_STYLE_PROPERTY_PADDING "padding"
101 * GTK_STYLE_PROPERTY_BORDER_WIDTH:
103 * A property holding the rendered element's border width in pixels as
104 * a #GtkBorder. The border is the intermediary spacing property of the
105 * padding/border/margin series.
107 * gtk_render_frame() uses this property to find out the frame line width,
108 * so #GtkWidget<!-- -->s rendering frames may need to add up this padding when
111 #define GTK_STYLE_PROPERTY_BORDER_WIDTH "border-width"
114 * GTK_STYLE_PROPERTY_MARGIN:
116 * A property holding the rendered element's margin as a #GtkBorder. The
117 * margin is defined as the spacing between the border of the element
118 * and its surrounding elements. It is external to #GtkWidget<!-- -->s's
119 * size allocations, and the most external spacing property of the
120 * padding/border/margin series.
122 #define GTK_STYLE_PROPERTY_MARGIN "margin"
125 * GTK_STYLE_PROPERTY_BORDER_RADIUS:
127 * A property holding the rendered element's border radius in pixels as a #gint.
129 #define GTK_STYLE_PROPERTY_BORDER_RADIUS "border-radius"
132 * GTK_STYLE_PROPERTY_BORDER_STYLE:
134 * A property holding the element's border style as a #GtkBorderStyle.
136 #define GTK_STYLE_PROPERTY_BORDER_STYLE "border-style"
139 * GTK_STYLE_PROPERTY_BORDER_COLOR:
141 * A property holding the element's border color as a #GdkRGBA.
143 #define GTK_STYLE_PROPERTY_BORDER_COLOR "border-color"
146 * GTK_STYLE_PROPERTY_BACKGROUND_IMAGE:
148 * A property holding the element's background as a #cairo_pattern_t.
150 #define GTK_STYLE_PROPERTY_BACKGROUND_IMAGE "background-image"
152 /* Predefined set of CSS classes */
155 * GTK_STYLE_CLASS_CELL:
157 * A CSS class to match content rendered in cell views.
159 * This is used by cell renderers, e.g. in #GtkIconView
162 #define GTK_STYLE_CLASS_CELL "cell"
165 * GTK_STYLE_CLASS_ENTRY:
167 * A CSS class to match text entries.
169 * This is used by #GtkEntry.
171 #define GTK_STYLE_CLASS_ENTRY "entry"
174 * GTK_STYLE_CLASS_COMBOBOX_ENTRY:
176 * A CSS class to match combobox entries.
178 * This is used by #GtkComboBox.
180 #define GTK_STYLE_CLASS_COMBOBOX_ENTRY "combobox-entry"
183 * GTK_STYLE_CLASS_BUTTON:
185 * A CSS class to match buttons.
187 * This is used by #GtkButton and its subclasses, as well
188 * as various other widget pieces that appear like buttons,
189 * e.g. the arrows in a #GtkCalendar.
191 #define GTK_STYLE_CLASS_BUTTON "button"
194 * GTK_STYLE_CLASS_CALENDAR:
196 * A CSS class to match calendars.
198 * This is not used by GTK+ itself, currently.
200 #define GTK_STYLE_CLASS_CALENDAR "calendar"
203 * GTK_STYLE_CLASS_SLIDER:
205 * A CSS class to match sliders.
207 * This is used by #GtkSwitch and #GtkRange and its subclasses.
209 #define GTK_STYLE_CLASS_SLIDER "slider"
212 * GTK_STYLE_CLASS_BACKGROUND:
214 * A CSS class to match the window background.
216 #define GTK_STYLE_CLASS_BACKGROUND "background"
219 * GTK_STYLE_CLASS_RUBBERBAND:
221 * A CSS class to match the rubberband selection rectangle.
223 * This is used in #GtkIconView and #GtkTreeView.
225 #define GTK_STYLE_CLASS_RUBBERBAND "rubberband"
228 * GTK_STYLE_CLASS_TOOLTIP:
230 * A CSS class to match tooltip windows.
232 #define GTK_STYLE_CLASS_TOOLTIP "tooltip"
235 * GTK_STYLE_CLASS_MENU:
237 * A CSS class to match popup menus.
239 * This is used in #GtkMenu.
241 #define GTK_STYLE_CLASS_MENU "menu"
244 * GTK_STYLE_CLASS_MENUBAR:
246 * A CSS class to menubars.
248 * This is used in #GtkMenuBar.
250 #define GTK_STYLE_CLASS_MENUBAR "menubar"
253 * GTK_STYLE_CLASS_MENUITEM:
255 * A CSS class to match menu items.
257 * This is used in #GtkMenuItem and its subclasses.
259 #define GTK_STYLE_CLASS_MENUITEM "menuitem"
262 * GTK_STYLE_CLASS_TOOLBAR:
264 * A CSS class to match toolbars.
266 * This is used in #GtkToolbar.
268 #define GTK_STYLE_CLASS_TOOLBAR "toolbar"
271 * GTK_STYLE_CLASS_PRIMARY_TOOLBAR:
273 * A CSS class to match primary toolbars.
275 * This should be used for the 'main' toolbar of an application,
276 * right below its menubar.
278 #define GTK_STYLE_CLASS_PRIMARY_TOOLBAR "primary-toolbar"
281 * GTK_STYLE_CLASS_INLINE_TOOLBAR:
283 * A CSS class to match inline toolbars.
285 * This should be used for toolbars that are used to hold
286 * actions below lists, as seen e.g. in the left pane of the
289 #define GTK_STYLE_CLASS_INLINE_TOOLBAR "inline-toolbar"
292 * GTK_STYLE_CLASS_RADIO:
294 * A CSS class to match radio buttons.
296 * This is used in #GtkRadioButton, #GtkRadioMenuItem and
297 * #GtkCellRendererToggle.
299 #define GTK_STYLE_CLASS_RADIO "radio"
302 * GTK_STYLE_CLASS_CHECK:
304 * A CSS class to match check boxes.
306 * This is used in #GtkCheckButton, #GtkCheckMenuItem and
307 * #GtkCellRendererToggle.
309 #define GTK_STYLE_CLASS_CHECK "check"
312 * GTK_STYLE_CLASS_DEFAULT:
314 * A CSS class to match the default widget.
316 * This is used by #GtkButton.
318 #define GTK_STYLE_CLASS_DEFAULT "default"
321 * GTK_STYLE_CLASS_TROUGH:
323 * A CSS class to match troughs, as in scrollbars and progressbars.
325 * This is used in #GtkRange and its subclasses, #GtkProgressBar
328 #define GTK_STYLE_CLASS_TROUGH "trough"
331 * GTK_STYLE_CLASS_SCROLLBAR:
333 * A CSS class to match scrollbars.
335 #define GTK_STYLE_CLASS_SCROLLBAR "scrollbar"
338 * GTK_STYLE_CLASS_SCALE:
340 * A CSS class to match scale widgets.
342 * This is used in #GtkScale.
344 #define GTK_STYLE_CLASS_SCALE "scale"
347 * GTK_STYLE_CLASS_SCALE_HAS_MARKS_ABOVE:
349 * A CSS class to match scale widgets with marks attached,
350 * all the marks are above for horizontal #GtkScale.
351 * left for vertical #GtkScale.
353 #define GTK_STYLE_CLASS_SCALE_HAS_MARKS_ABOVE "scale-has-marks-above"
356 * GTK_STYLE_CLASS_SCALE_HAS_MARKS_BELOW:
358 * A CSS class to match scale widgets with marks attached,
359 * all the marks are below for horizontal #GtkScale,
360 * right for vertical #GtkScale.
362 #define GTK_STYLE_CLASS_SCALE_HAS_MARKS_BELOW "scale-has-marks-below"
365 * GTK_STYLE_CLASS_HEADER:
367 * A CSS class to match a header element.
369 * This is used for the header in #GtkCalendar.
371 #define GTK_STYLE_CLASS_HEADER "header"
374 * GTK_STYLE_CLASS_ACCELERATOR:
376 * A CSS class to match an accelerator.
378 * This is used for the accelerator in #GtkAccelLabel.
380 #define GTK_STYLE_CLASS_ACCELERATOR "accelerator"
383 * GTK_STYLE_CLASS_RAISED:
385 * A CSS class to match a raised control, such as a raised
386 * button on a toolbar.
388 * This should be used in conjunction with #GTK_STYLE_CLASS_PRIMARY_TOOLBAR.
390 #define GTK_STYLE_CLASS_RAISED "raised"
393 * GTK_STYLE_CLASS_LINKED:
395 * A CSS class to match a linked area, such as a box containing buttons
396 * belonging to the same control.
398 #define GTK_STYLE_CLASS_LINKED "linked"
401 * GTK_STYLE_CLASS_GRIP:
403 * A CSS class defining a resize grip.
405 * This is used for the resize grip in #GtkWindow.
407 #define GTK_STYLE_CLASS_GRIP "grip"
410 * GTK_STYLE_CLASS_DOCK:
412 * A CSS class defining a dock area.
414 * This is used by #GtkHandleBox.
416 #define GTK_STYLE_CLASS_DOCK "dock"
419 * GTK_STYLE_CLASS_PROGRESSBAR:
421 * A CSS class to use when rendering activity as a progressbar.
423 * This is used in #GtkProgressBar and when drawing progress
424 * inside a #GtkEntry or in #GtkCellRendererProgress.
426 #define GTK_STYLE_CLASS_PROGRESSBAR "progressbar"
429 * GTK_STYLE_CLASS_SPINNER:
431 * A CSS class to use when rendering activity as a 'spinner'.
433 * This is used by #GtkSpinner and #GtkCellRendererSpinner.
435 #define GTK_STYLE_CLASS_SPINNER "spinner"
438 * GTK_STYLE_CLASS_MARK:
440 * A CSS class defining marks in a widget, such as in scales.
444 #define GTK_STYLE_CLASS_MARK "mark"
447 * GTK_STYLE_CLASS_EXPANDER:
449 * A CSS class defining an expander, such as those in treeviews.
451 * Used for drawing expanders in #GtkTreeView, GtkExpander and
454 #define GTK_STYLE_CLASS_EXPANDER "expander"
457 * GTK_STYLE_CLASS_SPINBUTTON:
459 * A CSS class defining an spinbutton.
461 * This is used in #GtkSpinButton.
463 #define GTK_STYLE_CLASS_SPINBUTTON "spinbutton"
466 * GTK_STYLE_CLASS_NOTEBOOK:
468 * A CSS class defining a notebook.
470 * Used in #GtkNotebook.
472 #define GTK_STYLE_CLASS_NOTEBOOK "notebook"
475 * GTK_STYLE_CLASS_VIEW:
477 * A CSS class defining a view, such as iconviews or treeviews.
479 * This is used in #GtkTreeView, #GtkIconView, #GtkTextView,
480 * as well as #GtkCalendar.
482 #define GTK_STYLE_CLASS_VIEW "view"
485 * GTK_STYLE_CLASS_SIDEBAR:
487 * A CSS class defining a sidebar, such as the left side in
490 * This is used in #GtkFileChooser and in #GtkAssistant.
492 #define GTK_STYLE_CLASS_SIDEBAR "sidebar"
495 * GTK_STYLE_CLASS_IMAGE:
497 * A CSS class defining an image, such as the icon in an entry.
499 * This is used when rendering icons in #GtkEntry.
501 #define GTK_STYLE_CLASS_IMAGE "image"
504 * GTK_STYLE_CLASS_HIGHLIGHT:
506 * A CSS class defining a highlighted area, such as headings in
507 * assistants and calendars.
509 * This is used in #GtkAssistant and #GtkCalendar.
511 #define GTK_STYLE_CLASS_HIGHLIGHT "highlight"
514 * GTK_STYLE_CLASS_FRAME:
516 * A CSS class defining a frame delimiting content, such as
517 * #GtkFrame or the scrolled window frame around the
520 * This is used in #GtkFrame and #GtkScrollbar.
522 #define GTK_STYLE_CLASS_FRAME "frame"
525 * GTK_STYLE_CLASS_DND:
527 * A CSS class for a drag-and-drop indicator.
529 * This is used when drawing an outline around a potential
530 * drop target during DND.
532 #define GTK_STYLE_CLASS_DND "dnd"
535 * GTK_STYLE_CLASS_PANE_SEPARATOR:
537 * A CSS class for a pane separator, such as those in #GtkPaned.
541 #define GTK_STYLE_CLASS_PANE_SEPARATOR "pane-separator"
544 * GTK_STYLE_CLASS_SEPARATOR:
546 * A CSS class for a separator.
548 * This is used in #GtkSeparator, #GtkSeparatorMenuItem,
549 * #GtkSeparatorToolItem, and when drawing separators in #GtkTreeView.
551 #define GTK_STYLE_CLASS_SEPARATOR "separator"
554 * GTK_STYLE_CLASS_INFO:
556 * A CSS class for an area displaying an informational message,
557 * such as those in infobars.
559 * This is used by #GtkInfoBar.
561 #define GTK_STYLE_CLASS_INFO "info"
564 * GTK_STYLE_CLASS_WARNING:
566 * A CSS class for an area displaying a warning message,
567 * such as those in infobars.
569 * This is used by #GtkInfoBar.
571 #define GTK_STYLE_CLASS_WARNING "warning"
574 * GTK_STYLE_CLASS_QUESTION:
576 * A CSS class for an area displaying a question to the user,
577 * such as those in infobars.
579 * This is used by #GtkInfoBar.
581 #define GTK_STYLE_CLASS_QUESTION "question"
584 * GTK_STYLE_CLASS_ERROR:
586 * A CSS class for an area displaying an error message,
587 * such as those in infobars.
589 * This is used by #GtkInfoBar.
591 #define GTK_STYLE_CLASS_ERROR "error"
594 * GTK_STYLE_CLASS_HORIZONTAL:
596 * A CSS class for horizontally layered widgets.
598 * This is used by widgets implementing #GtkOrientable.
600 #define GTK_STYLE_CLASS_HORIZONTAL "horizontal"
603 * GTK_STYLE_CLASS_VERTICAL:
605 * A CSS class for vertically layered widgets.
607 * This is used by widgets implementing #GtkOrientable.
609 #define GTK_STYLE_CLASS_VERTICAL "vertical"
612 * GTK_STYLE_CLASS_TOP:
614 * A CSS class to indicate an area at the top of a widget.
616 * This is used by widgets that can render an area in different
617 * positions, such as tabs in a #GtkNotebook.
619 #define GTK_STYLE_CLASS_TOP "top"
622 * GTK_STYLE_CLASS_BOTTOM:
624 * A CSS class to indicate an area at the bottom of a widget.
626 * This is used by widgets that can render an area in different
627 * positions, such as tabs in a #GtkNotebook.
629 #define GTK_STYLE_CLASS_BOTTOM "bottom"
632 * GTK_STYLE_CLASS_LEFT:
634 * A CSS class to indicate an area at the left of a widget.
636 * This is used by widgets that can render an area in different
637 * positions, such as tabs in a #GtkNotebook.
639 #define GTK_STYLE_CLASS_LEFT "left"
642 * GTK_STYLE_CLASS_RIGHT:
644 * A CSS class to indicate an area at the right of a widget.
646 * This is used by widgets that can render an area in different
647 * positions, such as tabs in a #GtkNotebook.
649 #define GTK_STYLE_CLASS_RIGHT "right"
651 /* Predefined set of widget regions */
654 * GTK_STYLE_REGION_ROW:
656 * A widget region name to define a treeview row.
658 #define GTK_STYLE_REGION_ROW "row"
661 * GTK_STYLE_REGION_COLUMN:
663 * A widget region name to define a treeview column.
665 #define GTK_STYLE_REGION_COLUMN "column"
668 * GTK_STYLE_REGION_COLUMN_HEADER:
670 * A widget region name to define a treeview column header.
672 #define GTK_STYLE_REGION_COLUMN_HEADER "column-header"
675 * GTK_STYLE_REGION_TAB:
677 * A widget region name to define a notebook tab.
679 #define GTK_STYLE_REGION_TAB "tab"
682 * GTK_STYLE_CLASS_PULSE:
684 * A CSS class to use when rendering a pulse in an indeterminate progress bar.
686 * This is used by #GtkProgressBar and #GtkEntry.
688 #define GTK_STYLE_CLASS_PULSE "pulse"
691 * GTK_STYLE_CLASS_ARROW:
693 * A CSS class used when rendering an arrow element.
695 * Note that #gtk_render_arrow automatically adds this style class
696 * to the style context when rendering an arrow element.
698 #define GTK_STYLE_CLASS_ARROW "arrow"
701 GType gtk_style_context_get_type (void) G_GNUC_CONST;
703 GtkStyleContext * gtk_style_context_new (void);
705 void gtk_style_context_add_provider_for_screen (GdkScreen *screen,
706 GtkStyleProvider *provider,
708 void gtk_style_context_remove_provider_for_screen (GdkScreen *screen,
709 GtkStyleProvider *provider);
711 void gtk_style_context_add_provider (GtkStyleContext *context,
712 GtkStyleProvider *provider,
715 void gtk_style_context_remove_provider (GtkStyleContext *context,
716 GtkStyleProvider *provider);
718 void gtk_style_context_save (GtkStyleContext *context);
719 void gtk_style_context_restore (GtkStyleContext *context);
721 GtkCssSection * gtk_style_context_get_section (GtkStyleContext *context,
722 const gchar *property);
723 void gtk_style_context_get_property (GtkStyleContext *context,
724 const gchar *property,
727 void gtk_style_context_get_valist (GtkStyleContext *context,
730 void gtk_style_context_get (GtkStyleContext *context,
732 ...) G_GNUC_NULL_TERMINATED;
734 void gtk_style_context_set_state (GtkStyleContext *context,
735 GtkStateFlags flags);
736 GtkStateFlags gtk_style_context_get_state (GtkStyleContext *context);
738 gboolean gtk_style_context_state_is_running (GtkStyleContext *context,
742 void gtk_style_context_set_path (GtkStyleContext *context,
743 GtkWidgetPath *path);
744 const GtkWidgetPath * gtk_style_context_get_path (GtkStyleContext *context);
746 void gtk_style_context_set_parent (GtkStyleContext *context,
747 GtkStyleContext *parent);
748 GtkStyleContext *gtk_style_context_get_parent (GtkStyleContext *context);
750 GList * gtk_style_context_list_classes (GtkStyleContext *context);
752 void gtk_style_context_add_class (GtkStyleContext *context,
753 const gchar *class_name);
754 void gtk_style_context_remove_class (GtkStyleContext *context,
755 const gchar *class_name);
756 gboolean gtk_style_context_has_class (GtkStyleContext *context,
757 const gchar *class_name);
759 GList * gtk_style_context_list_regions (GtkStyleContext *context);
761 void gtk_style_context_add_region (GtkStyleContext *context,
762 const gchar *region_name,
763 GtkRegionFlags flags);
764 void gtk_style_context_remove_region (GtkStyleContext *context,
765 const gchar *region_name);
766 gboolean gtk_style_context_has_region (GtkStyleContext *context,
767 const gchar *region_name,
768 GtkRegionFlags *flags_return);
770 void gtk_style_context_get_style_property (GtkStyleContext *context,
771 const gchar *property_name,
773 void gtk_style_context_get_style_valist (GtkStyleContext *context,
775 void gtk_style_context_get_style (GtkStyleContext *context,
778 GtkIconSet * gtk_style_context_lookup_icon_set (GtkStyleContext *context,
779 const gchar *stock_id);
780 GdkPixbuf * gtk_icon_set_render_icon_pixbuf (GtkIconSet *icon_set,
781 GtkStyleContext *context,
784 void gtk_style_context_set_screen (GtkStyleContext *context,
786 GdkScreen * gtk_style_context_get_screen (GtkStyleContext *context);
788 void gtk_style_context_set_direction (GtkStyleContext *context,
789 GtkTextDirection direction);
790 GtkTextDirection gtk_style_context_get_direction (GtkStyleContext *context);
792 void gtk_style_context_set_junction_sides (GtkStyleContext *context,
793 GtkJunctionSides sides);
794 GtkJunctionSides gtk_style_context_get_junction_sides (GtkStyleContext *context);
796 gboolean gtk_style_context_lookup_color (GtkStyleContext *context,
797 const gchar *color_name,
800 void gtk_style_context_notify_state_change (GtkStyleContext *context,
804 gboolean state_value);
805 void gtk_style_context_cancel_animations (GtkStyleContext *context,
807 void gtk_style_context_scroll_animations (GtkStyleContext *context,
812 void gtk_style_context_push_animatable_region (GtkStyleContext *context,
814 void gtk_style_context_pop_animatable_region (GtkStyleContext *context);
816 /* Some helper functions to retrieve most common properties */
817 void gtk_style_context_get_color (GtkStyleContext *context,
820 void gtk_style_context_get_background_color (GtkStyleContext *context,
823 void gtk_style_context_get_border_color (GtkStyleContext *context,
826 const PangoFontDescription *
827 gtk_style_context_get_font (GtkStyleContext *context,
828 GtkStateFlags state);
829 void gtk_style_context_get_border (GtkStyleContext *context,
832 void gtk_style_context_get_padding (GtkStyleContext *context,
835 void gtk_style_context_get_margin (GtkStyleContext *context,
839 void gtk_style_context_invalidate (GtkStyleContext *context);
840 void gtk_style_context_reset_widgets (GdkScreen *screen);
842 void gtk_style_context_set_background (GtkStyleContext *context,
846 void gtk_render_check (GtkStyleContext *context,
852 void gtk_render_option (GtkStyleContext *context,
858 void gtk_render_arrow (GtkStyleContext *context,
864 void gtk_render_background (GtkStyleContext *context,
870 void gtk_render_frame (GtkStyleContext *context,
876 void gtk_render_expander (GtkStyleContext *context,
882 void gtk_render_focus (GtkStyleContext *context,
888 void gtk_render_layout (GtkStyleContext *context,
892 PangoLayout *layout);
893 void gtk_render_line (GtkStyleContext *context,
899 void gtk_render_slider (GtkStyleContext *context,
905 GtkOrientation orientation);
906 void gtk_render_frame_gap (GtkStyleContext *context,
912 GtkPositionType gap_side,
915 void gtk_render_extension (GtkStyleContext *context,
921 GtkPositionType gap_side);
922 void gtk_render_handle (GtkStyleContext *context,
928 void gtk_render_activity (GtkStyleContext *context,
934 GdkPixbuf * gtk_render_icon_pixbuf (GtkStyleContext *context,
935 const GtkIconSource *source,
937 void gtk_render_icon (GtkStyleContext *context,
942 void gtk_render_insertion_cursor
943 (GtkStyleContext *context,
949 PangoDirection direction);
951 void gtk_draw_insertion_cursor (GtkWidget *widget,
953 const GdkRectangle *location,
955 GtkTextDirection direction,
956 gboolean draw_arrow);
958 /* Accessibility support */
959 AtkAttributeSet *_gtk_style_context_get_attributes (AtkAttributeSet *attributes,
960 GtkStyleContext *context,
961 GtkStateFlags flags);
965 #endif /* __GTK_STYLE_CONTEXT_H__ */