Update style class docs

Instead of pointing to (outdated) widgets here, just refer to
widget docs in general.
This commit is contained in:
Matthias Clasen 2016-01-10 17:08:56 -05:00
parent cffe2e2c93
commit b035cc2cb6

View File

@ -152,8 +152,7 @@ struct _GtkStyleContextClass
* *
* A CSS class to match content rendered in cell views. * A CSS class to match content rendered in cell views.
* *
* This is used by cell renderers, e.g. in #GtkIconView * Refer to individual widget documentation for used style classes.
* and #GtkTreeView.
*/ */
#define GTK_STYLE_CLASS_CELL "cell" #define GTK_STYLE_CLASS_CELL "cell"
@ -162,8 +161,7 @@ struct _GtkStyleContextClass
* *
* A CSS class to match dimmed labels. * A CSS class to match dimmed labels.
* *
* This should be used for toning down right aligned labels as * Refer to individual widget documentation for used style classes.
* compared to the entry value.
*/ */
#define GTK_STYLE_CLASS_DIM_LABEL "dim-label" #define GTK_STYLE_CLASS_DIM_LABEL "dim-label"
@ -172,7 +170,7 @@ struct _GtkStyleContextClass
* *
* A CSS class to match text entries. * A CSS class to match text entries.
* *
* This is used by #GtkEntry. * Refer to individual widget documentation for used style classes.
*/ */
#define GTK_STYLE_CLASS_ENTRY "entry" #define GTK_STYLE_CLASS_ENTRY "entry"
@ -181,7 +179,7 @@ struct _GtkStyleContextClass
* *
* A CSS class to match labels. * A CSS class to match labels.
* *
* This is used by #GtkLabel. * Refer to individual widget documentation for used style classes.
* *
* Since: 3.16 * Since: 3.16
*/ */
@ -192,7 +190,7 @@ struct _GtkStyleContextClass
* *
* A CSS class to match combobox entries. * A CSS class to match combobox entries.
* *
* This is used by #GtkComboBox. * Refer to individual widget documentation for used style classes.
*/ */
#define GTK_STYLE_CLASS_COMBOBOX_ENTRY "combobox-entry" #define GTK_STYLE_CLASS_COMBOBOX_ENTRY "combobox-entry"
@ -201,9 +199,7 @@ struct _GtkStyleContextClass
* *
* A CSS class to match buttons. * A CSS class to match buttons.
* *
* This is used by #GtkButton and its subclasses, as well * Refer to individual widget documentation for used style classes.
* as various other widget pieces that appear like buttons,
* e.g. the arrows in a #GtkCalendar.
*/ */
#define GTK_STYLE_CLASS_BUTTON "button" #define GTK_STYLE_CLASS_BUTTON "button"
@ -212,7 +208,7 @@ struct _GtkStyleContextClass
* *
* A CSS class to match lists. * A CSS class to match lists.
* *
* This is used by #GtkListBox. * Refer to individual widget documentation for used style classes.
*/ */
#define GTK_STYLE_CLASS_LIST "list" #define GTK_STYLE_CLASS_LIST "list"
@ -221,7 +217,7 @@ struct _GtkStyleContextClass
* *
* A CSS class to match list rowss. * A CSS class to match list rowss.
* *
* This is used by #GtkListBoxRow. * Refer to individual widget documentation for used style classes.
*/ */
#define GTK_STYLE_CLASS_LIST_ROW "list-row" #define GTK_STYLE_CLASS_LIST_ROW "list-row"
@ -230,7 +226,7 @@ struct _GtkStyleContextClass
* *
* A CSS class to match calendars. * A CSS class to match calendars.
* *
* This is not used by GTK+ itself, currently. * Refer to individual widget documentation for used style classes.
*/ */
#define GTK_STYLE_CLASS_CALENDAR "calendar" #define GTK_STYLE_CLASS_CALENDAR "calendar"
@ -239,7 +235,7 @@ struct _GtkStyleContextClass
* *
* A CSS class to match sliders. * A CSS class to match sliders.
* *
* This is used by #GtkSwitch and #GtkRange and its subclasses. * Refer to individual widget documentation for used style classes.
*/ */
#define GTK_STYLE_CLASS_SLIDER "slider" #define GTK_STYLE_CLASS_SLIDER "slider"
@ -247,6 +243,8 @@ struct _GtkStyleContextClass
* GTK_STYLE_CLASS_BACKGROUND: * GTK_STYLE_CLASS_BACKGROUND:
* *
* A CSS class to match the window background. * A CSS class to match the window background.
*
* Refer to individual widget documentation for used style classes.
*/ */
#define GTK_STYLE_CLASS_BACKGROUND "background" #define GTK_STYLE_CLASS_BACKGROUND "background"
@ -255,15 +253,16 @@ struct _GtkStyleContextClass
* *
* A CSS class to match the rubberband selection rectangle. * A CSS class to match the rubberband selection rectangle.
* *
* This is used in #GtkIconView and #GtkTreeView. * Refer to individual widget documentation for used style classes.
*/ */
#define GTK_STYLE_CLASS_RUBBERBAND "rubberband" #define GTK_STYLE_CLASS_RUBBERBAND "rubberband"
/** /**
* GTK_STYLE_CLASS_CSD: * GTK_STYLE_CLASS_CSD:
* *
* A CSS class that gets added to windows which have * A CSS class that gets added to windows which have client-side decorations.
* client-side decorations. *
* Refer to individual widget documentation for used style classes.
* *
* Since: 3.14 * Since: 3.14
*/ */
@ -273,6 +272,8 @@ struct _GtkStyleContextClass
* GTK_STYLE_CLASS_TOOLTIP: * GTK_STYLE_CLASS_TOOLTIP:
* *
* A CSS class to match tooltip windows. * A CSS class to match tooltip windows.
*
* Refer to individual widget documentation for used style classes.
*/ */
#define GTK_STYLE_CLASS_TOOLTIP "tooltip" #define GTK_STYLE_CLASS_TOOLTIP "tooltip"
@ -281,7 +282,7 @@ struct _GtkStyleContextClass
* *
* A CSS class to match menus. * A CSS class to match menus.
* *
* This is used in #GtkMenu. * Refer to individual widget documentation for used style classes.
*/ */
#define GTK_STYLE_CLASS_MENU "menu" #define GTK_STYLE_CLASS_MENU "menu"
@ -290,9 +291,7 @@ struct _GtkStyleContextClass
* *
* A CSS class to match context menus. * A CSS class to match context menus.
* *
* This style class is useful when you want to prevent * Refer to individual widget documentation for used style classes.
* a context menu from inheriting e.g. font changes from
* the widget it is attached to.
*/ */
#define GTK_STYLE_CLASS_CONTEXT_MENU "context-menu" #define GTK_STYLE_CLASS_CONTEXT_MENU "context-menu"
@ -302,6 +301,8 @@ struct _GtkStyleContextClass
* A CSS class for touch selection popups on entries * A CSS class for touch selection popups on entries
* and text views. * and text views.
* *
* Refer to individual widget documentation for used style classes.
*
* Since: 3.16 * Since: 3.16
*/ */
#define GTK_STYLE_CLASS_TOUCH_SELECTION "touch-selection" #define GTK_STYLE_CLASS_TOUCH_SELECTION "touch-selection"
@ -311,7 +312,7 @@ struct _GtkStyleContextClass
* *
* A CSS class to menubars. * A CSS class to menubars.
* *
* This is used in #GtkMenuBar. * Refer to individual widget documentation for used style classes.
*/ */
#define GTK_STYLE_CLASS_MENUBAR "menubar" #define GTK_STYLE_CLASS_MENUBAR "menubar"
@ -320,7 +321,7 @@ struct _GtkStyleContextClass
* *
* A CSS class to match menu items. * A CSS class to match menu items.
* *
* This is used in #GtkMenuItem and its subclasses. * Refer to individual widget documentation for used style classes.
*/ */
#define GTK_STYLE_CLASS_MENUITEM "menuitem" #define GTK_STYLE_CLASS_MENUITEM "menuitem"
@ -329,7 +330,7 @@ struct _GtkStyleContextClass
* *
* A CSS class to match toolbars. * A CSS class to match toolbars.
* *
* This is used in #GtkToolbar. * Refer to individual widget documentation for used style classes.
*/ */
#define GTK_STYLE_CLASS_TOOLBAR "toolbar" #define GTK_STYLE_CLASS_TOOLBAR "toolbar"
@ -338,8 +339,7 @@ struct _GtkStyleContextClass
* *
* A CSS class to match primary toolbars. * A CSS class to match primary toolbars.
* *
* This should be used for the main toolbar of an application, * Refer to individual widget documentation for used style classes.
* right below its menubar.
*/ */
#define GTK_STYLE_CLASS_PRIMARY_TOOLBAR "primary-toolbar" #define GTK_STYLE_CLASS_PRIMARY_TOOLBAR "primary-toolbar"
@ -348,9 +348,7 @@ struct _GtkStyleContextClass
* *
* A CSS class to match inline toolbars. * A CSS class to match inline toolbars.
* *
* This should be used for toolbars that are used to hold * Refer to individual widget documentation for used style classes.
* actions below lists, as seen e.g. in the left pane of the
* file chooser.
*/ */
#define GTK_STYLE_CLASS_INLINE_TOOLBAR "inline-toolbar" #define GTK_STYLE_CLASS_INLINE_TOOLBAR "inline-toolbar"
@ -359,7 +357,7 @@ struct _GtkStyleContextClass
* *
* A CSS class to match statusbars. * A CSS class to match statusbars.
* *
* This is used in #GtkStatusbar. * Refer to individual widget documentation for used style classes.
* *
* Since: 3.16 * Since: 3.16
*/ */
@ -370,8 +368,7 @@ struct _GtkStyleContextClass
* *
* A CSS class to match radio buttons. * A CSS class to match radio buttons.
* *
* This is used in #GtkRadioButton, #GtkRadioMenuItem and * Refer to individual widget documentation for used style classes.
* #GtkCellRendererToggle.
*/ */
#define GTK_STYLE_CLASS_RADIO "radio" #define GTK_STYLE_CLASS_RADIO "radio"
@ -380,8 +377,7 @@ struct _GtkStyleContextClass
* *
* A CSS class to match check boxes. * A CSS class to match check boxes.
* *
* This is used in #GtkCheckButton, #GtkCheckMenuItem and * Refer to individual widget documentation for used style classes.
* #GtkCellRendererToggle.
*/ */
#define GTK_STYLE_CLASS_CHECK "check" #define GTK_STYLE_CLASS_CHECK "check"
@ -390,7 +386,7 @@ struct _GtkStyleContextClass
* *
* A CSS class to match the default widget. * A CSS class to match the default widget.
* *
* This is used by #GtkButton. * Refer to individual widget documentation for used style classes.
*/ */
#define GTK_STYLE_CLASS_DEFAULT "default" #define GTK_STYLE_CLASS_DEFAULT "default"
@ -399,8 +395,7 @@ struct _GtkStyleContextClass
* *
* A CSS class to match troughs, as in scrollbars and progressbars. * A CSS class to match troughs, as in scrollbars and progressbars.
* *
* This is used in #GtkRange and its subclasses, #GtkProgressBar * Refer to individual widget documentation for used style classes.
* and #GtkSwitch.
*/ */
#define GTK_STYLE_CLASS_TROUGH "trough" #define GTK_STYLE_CLASS_TROUGH "trough"
@ -408,6 +403,8 @@ struct _GtkStyleContextClass
* GTK_STYLE_CLASS_SCROLLBAR: * GTK_STYLE_CLASS_SCROLLBAR:
* *
* A CSS class to match scrollbars. * A CSS class to match scrollbars.
*
* Refer to individual widget documentation for used style classes.
*/ */
#define GTK_STYLE_CLASS_SCROLLBAR "scrollbar" #define GTK_STYLE_CLASS_SCROLLBAR "scrollbar"
@ -417,7 +414,7 @@ struct _GtkStyleContextClass
* A CSS class to match the junction area between an horizontal * A CSS class to match the junction area between an horizontal
* and vertical scrollbar, when theyre both shown. * and vertical scrollbar, when theyre both shown.
* *
* This is used in #GtkScrolledWindow. * Refer to individual widget documentation for used style classes.
*/ */
#define GTK_STYLE_CLASS_SCROLLBARS_JUNCTION "scrollbars-junction" #define GTK_STYLE_CLASS_SCROLLBARS_JUNCTION "scrollbars-junction"
@ -426,7 +423,7 @@ struct _GtkStyleContextClass
* *
* A CSS class to match scale widgets. * A CSS class to match scale widgets.
* *
* This is used in #GtkScale. * Refer to individual widget documentation for used style classes.
*/ */
#define GTK_STYLE_CLASS_SCALE "scale" #define GTK_STYLE_CLASS_SCALE "scale"
@ -436,6 +433,8 @@ struct _GtkStyleContextClass
* A CSS class to match scale widgets with marks attached, * A CSS class to match scale widgets with marks attached,
* all the marks are above for horizontal #GtkScale. * all the marks are above for horizontal #GtkScale.
* left for vertical #GtkScale. * left for vertical #GtkScale.
*
* Refer to individual widget documentation for used style classes.
*/ */
#define GTK_STYLE_CLASS_SCALE_HAS_MARKS_ABOVE "scale-has-marks-above" #define GTK_STYLE_CLASS_SCALE_HAS_MARKS_ABOVE "scale-has-marks-above"
@ -445,6 +444,8 @@ struct _GtkStyleContextClass
* A CSS class to match scale widgets with marks attached, * A CSS class to match scale widgets with marks attached,
* all the marks are below for horizontal #GtkScale, * all the marks are below for horizontal #GtkScale,
* right for vertical #GtkScale. * right for vertical #GtkScale.
*
* Refer to individual widget documentation for used style classes.
*/ */
#define GTK_STYLE_CLASS_SCALE_HAS_MARKS_BELOW "scale-has-marks-below" #define GTK_STYLE_CLASS_SCALE_HAS_MARKS_BELOW "scale-has-marks-below"
@ -453,7 +454,7 @@ struct _GtkStyleContextClass
* *
* A CSS class to match a header element. * A CSS class to match a header element.
* *
* This is used for the header in #GtkCalendar. * Refer to individual widget documentation for used style classes.
*/ */
#define GTK_STYLE_CLASS_HEADER "header" #define GTK_STYLE_CLASS_HEADER "header"
@ -462,7 +463,7 @@ struct _GtkStyleContextClass
* *
* A CSS class to match an accelerator. * A CSS class to match an accelerator.
* *
* This is used for the accelerator in #GtkAccelLabel. * Refer to individual widget documentation for used style classes.
*/ */
#define GTK_STYLE_CLASS_ACCELERATOR "accelerator" #define GTK_STYLE_CLASS_ACCELERATOR "accelerator"
@ -472,7 +473,7 @@ struct _GtkStyleContextClass
* A CSS class to match a raised control, such as a raised * A CSS class to match a raised control, such as a raised
* button on a toolbar. * button on a toolbar.
* *
* This should be used in conjunction with #GTK_STYLE_CLASS_PRIMARY_TOOLBAR. * Refer to individual widget documentation for used style classes.
*/ */
#define GTK_STYLE_CLASS_RAISED "raised" #define GTK_STYLE_CLASS_RAISED "raised"
@ -481,6 +482,8 @@ struct _GtkStyleContextClass
* *
* A CSS class to match a linked area, such as a box containing buttons * A CSS class to match a linked area, such as a box containing buttons
* belonging to the same control. * belonging to the same control.
*
* Refer to individual widget documentation for used style classes.
*/ */
#define GTK_STYLE_CLASS_LINKED "linked" #define GTK_STYLE_CLASS_LINKED "linked"
@ -489,7 +492,7 @@ struct _GtkStyleContextClass
* *
* A CSS class defining a resize grip. * A CSS class defining a resize grip.
* *
* This is used for the resize grip in #GtkWindow. * Refer to individual widget documentation for used style classes.
*/ */
#define GTK_STYLE_CLASS_GRIP "grip" #define GTK_STYLE_CLASS_GRIP "grip"
@ -498,7 +501,7 @@ struct _GtkStyleContextClass
* *
* A CSS class defining a dock area. * A CSS class defining a dock area.
* *
* This is used by #GtkHandleBox. * Refer to individual widget documentation for used style classes.
*/ */
#define GTK_STYLE_CLASS_DOCK "dock" #define GTK_STYLE_CLASS_DOCK "dock"
@ -507,8 +510,7 @@ struct _GtkStyleContextClass
* *
* A CSS class to use when rendering activity as a progressbar. * A CSS class to use when rendering activity as a progressbar.
* *
* This is used in #GtkProgressBar and when drawing progress * Refer to individual widget documentation for used style classes.
* inside a #GtkEntry or in #GtkCellRendererProgress.
*/ */
#define GTK_STYLE_CLASS_PROGRESSBAR "progressbar" #define GTK_STYLE_CLASS_PROGRESSBAR "progressbar"
@ -517,7 +519,7 @@ struct _GtkStyleContextClass
* *
* A CSS class to use when rendering activity as a spinner. * A CSS class to use when rendering activity as a spinner.
* *
* This is used by #GtkSpinner and #GtkCellRendererSpinner. * Refer to individual widget documentation for used style classes.
*/ */
#define GTK_STYLE_CLASS_SPINNER "spinner" #define GTK_STYLE_CLASS_SPINNER "spinner"
@ -526,7 +528,7 @@ struct _GtkStyleContextClass
* *
* A CSS class defining marks in a widget, such as in scales. * A CSS class defining marks in a widget, such as in scales.
* *
* Used in #GtkScale. * Refer to individual widget documentation for used style classes.
*/ */
#define GTK_STYLE_CLASS_MARK "mark" #define GTK_STYLE_CLASS_MARK "mark"
@ -535,8 +537,7 @@ struct _GtkStyleContextClass
* *
* A CSS class defining an expander, such as those in treeviews. * A CSS class defining an expander, such as those in treeviews.
* *
* Used for drawing expanders in #GtkTreeView, GtkExpander and * Refer to individual widget documentation for used style classes.
* #GtkToolItemGroup.
*/ */
#define GTK_STYLE_CLASS_EXPANDER "expander" #define GTK_STYLE_CLASS_EXPANDER "expander"
@ -545,7 +546,7 @@ struct _GtkStyleContextClass
* *
* A CSS class defining an spinbutton. * A CSS class defining an spinbutton.
* *
* This is used in #GtkSpinButton. * Refer to individual widget documentation for used style classes.
*/ */
#define GTK_STYLE_CLASS_SPINBUTTON "spinbutton" #define GTK_STYLE_CLASS_SPINBUTTON "spinbutton"
@ -554,7 +555,7 @@ struct _GtkStyleContextClass
* *
* A CSS class defining a notebook. * A CSS class defining a notebook.
* *
* Used in #GtkNotebook. * Refer to individual widget documentation for used style classes.
*/ */
#define GTK_STYLE_CLASS_NOTEBOOK "notebook" #define GTK_STYLE_CLASS_NOTEBOOK "notebook"
@ -563,8 +564,7 @@ struct _GtkStyleContextClass
* *
* A CSS class defining a view, such as iconviews or treeviews. * A CSS class defining a view, such as iconviews or treeviews.
* *
* This is used in #GtkTreeView, #GtkIconView, #GtkTextView, * Refer to individual widget documentation for used style classes.
* as well as #GtkCalendar.
*/ */
#define GTK_STYLE_CLASS_VIEW "view" #define GTK_STYLE_CLASS_VIEW "view"
@ -574,7 +574,7 @@ struct _GtkStyleContextClass
* A CSS class defining a sidebar, such as the left side in * A CSS class defining a sidebar, such as the left side in
* a file chooser. * a file chooser.
* *
* This is used in #GtkFileChooser and in #GtkAssistant. * Refer to individual widget documentation for used style classes.
*/ */
#define GTK_STYLE_CLASS_SIDEBAR "sidebar" #define GTK_STYLE_CLASS_SIDEBAR "sidebar"
@ -583,7 +583,7 @@ struct _GtkStyleContextClass
* *
* A CSS class defining an image, such as the icon in an entry. * A CSS class defining an image, such as the icon in an entry.
* *
* This is used when rendering icons in #GtkEntry. * Refer to individual widget documentation for used style classes.
*/ */
#define GTK_STYLE_CLASS_IMAGE "image" #define GTK_STYLE_CLASS_IMAGE "image"
@ -593,7 +593,7 @@ struct _GtkStyleContextClass
* A CSS class defining a highlighted area, such as headings in * A CSS class defining a highlighted area, such as headings in
* assistants and calendars. * assistants and calendars.
* *
* This is used in #GtkAssistant and #GtkCalendar. * Refer to individual widget documentation for used style classes.
*/ */
#define GTK_STYLE_CLASS_HIGHLIGHT "highlight" #define GTK_STYLE_CLASS_HIGHLIGHT "highlight"
@ -604,7 +604,7 @@ struct _GtkStyleContextClass
* #GtkFrame or the scrolled window frame around the * #GtkFrame or the scrolled window frame around the
* scrollable area. * scrollable area.
* *
* This is used in #GtkFrame and #GtkScrollbar. * Refer to individual widget documentation for used style classes.
*/ */
#define GTK_STYLE_CLASS_FRAME "frame" #define GTK_STYLE_CLASS_FRAME "frame"
@ -613,8 +613,7 @@ struct _GtkStyleContextClass
* *
* A CSS class for a drag-and-drop indicator. * A CSS class for a drag-and-drop indicator.
* *
* This is used when drawing an outline around a potential * Refer to individual widget documentation for used style classes.
* drop target during DND.
*/ */
#define GTK_STYLE_CLASS_DND "dnd" #define GTK_STYLE_CLASS_DND "dnd"
@ -623,7 +622,7 @@ struct _GtkStyleContextClass
* *
* A CSS class for a pane separator, such as those in #GtkPaned. * A CSS class for a pane separator, such as those in #GtkPaned.
* *
* Used in #GtkPaned. * Refer to individual widget documentation for used style classes.
*/ */
#define GTK_STYLE_CLASS_PANE_SEPARATOR "pane-separator" #define GTK_STYLE_CLASS_PANE_SEPARATOR "pane-separator"
@ -632,8 +631,7 @@ struct _GtkStyleContextClass
* *
* A CSS class for a separator. * A CSS class for a separator.
* *
* This is used in #GtkSeparator, #GtkSeparatorMenuItem, * Refer to individual widget documentation for used style classes.
* #GtkSeparatorToolItem, and when drawing separators in #GtkTreeView.
*/ */
#define GTK_STYLE_CLASS_SEPARATOR "separator" #define GTK_STYLE_CLASS_SEPARATOR "separator"
@ -643,7 +641,7 @@ struct _GtkStyleContextClass
* A CSS class for an area displaying an informational message, * A CSS class for an area displaying an informational message,
* such as those in infobars. * such as those in infobars.
* *
* This is used by #GtkInfoBar. * Refer to individual widget documentation for used style classes.
*/ */
#define GTK_STYLE_CLASS_INFO "info" #define GTK_STYLE_CLASS_INFO "info"
@ -653,7 +651,7 @@ struct _GtkStyleContextClass
* A CSS class for an area displaying a warning message, * A CSS class for an area displaying a warning message,
* such as those in infobars. * such as those in infobars.
* *
* This is used by #GtkInfoBar. * Refer to individual widget documentation for used style classes.
*/ */
#define GTK_STYLE_CLASS_WARNING "warning" #define GTK_STYLE_CLASS_WARNING "warning"
@ -663,7 +661,7 @@ struct _GtkStyleContextClass
* A CSS class for an area displaying a question to the user, * A CSS class for an area displaying a question to the user,
* such as those in infobars. * such as those in infobars.
* *
* This is used by #GtkInfoBar. * Refer to individual widget documentation for used style classes.
*/ */
#define GTK_STYLE_CLASS_QUESTION "question" #define GTK_STYLE_CLASS_QUESTION "question"
@ -673,7 +671,7 @@ struct _GtkStyleContextClass
* A CSS class for an area displaying an error message, * A CSS class for an area displaying an error message,
* such as those in infobars. * such as those in infobars.
* *
* This is used by #GtkInfoBar. * Refer to individual widget documentation for used style classes.
*/ */
#define GTK_STYLE_CLASS_ERROR "error" #define GTK_STYLE_CLASS_ERROR "error"
@ -682,7 +680,7 @@ struct _GtkStyleContextClass
* *
* A CSS class for horizontally layered widgets. * A CSS class for horizontally layered widgets.
* *
* This is used by widgets implementing #GtkOrientable. * Refer to individual widget documentation for used style classes.
*/ */
#define GTK_STYLE_CLASS_HORIZONTAL "horizontal" #define GTK_STYLE_CLASS_HORIZONTAL "horizontal"
@ -691,7 +689,7 @@ struct _GtkStyleContextClass
* *
* A CSS class for vertically layered widgets. * A CSS class for vertically layered widgets.
* *
* This is used by widgets implementing #GtkOrientable. * Refer to individual widget documentation for used style classes.
*/ */
#define GTK_STYLE_CLASS_VERTICAL "vertical" #define GTK_STYLE_CLASS_VERTICAL "vertical"
@ -700,8 +698,7 @@ struct _GtkStyleContextClass
* *
* A CSS class to indicate an area at the top of a widget. * A CSS class to indicate an area at the top of a widget.
* *
* This is used by widgets that can render an area in different * Refer to individual widget documentation for used style classes.
* positions, such as tabs in a #GtkNotebook.
*/ */
#define GTK_STYLE_CLASS_TOP "top" #define GTK_STYLE_CLASS_TOP "top"
@ -710,8 +707,7 @@ struct _GtkStyleContextClass
* *
* A CSS class to indicate an area at the bottom of a widget. * A CSS class to indicate an area at the bottom of a widget.
* *
* This is used by widgets that can render an area in different * Refer to individual widget documentation for used style classes.
* positions, such as tabs in a #GtkNotebook.
*/ */
#define GTK_STYLE_CLASS_BOTTOM "bottom" #define GTK_STYLE_CLASS_BOTTOM "bottom"
@ -720,8 +716,7 @@ struct _GtkStyleContextClass
* *
* A CSS class to indicate an area at the left of a widget. * A CSS class to indicate an area at the left of a widget.
* *
* This is used by widgets that can render an area in different * Refer to individual widget documentation for used style classes.
* positions, such as tabs in a #GtkNotebook.
*/ */
#define GTK_STYLE_CLASS_LEFT "left" #define GTK_STYLE_CLASS_LEFT "left"
@ -730,8 +725,7 @@ struct _GtkStyleContextClass
* *
* A CSS class to indicate an area at the right of a widget. * A CSS class to indicate an area at the right of a widget.
* *
* This is used by widgets that can render an area in different * Refer to individual widget documentation for used style classes.
* positions, such as tabs in a #GtkNotebook.
*/ */
#define GTK_STYLE_CLASS_RIGHT "right" #define GTK_STYLE_CLASS_RIGHT "right"
@ -740,7 +734,7 @@ struct _GtkStyleContextClass
* *
* A CSS class to use when rendering a pulse in an indeterminate progress bar. * A CSS class to use when rendering a pulse in an indeterminate progress bar.
* *
* This is used by #GtkProgressBar and #GtkEntry. * Refer to individual widget documentation for used style classes.
*/ */
#define GTK_STYLE_CLASS_PULSE "pulse" #define GTK_STYLE_CLASS_PULSE "pulse"
@ -749,8 +743,7 @@ struct _GtkStyleContextClass
* *
* A CSS class used when rendering an arrow element. * A CSS class used when rendering an arrow element.
* *
* Note that #gtk_render_arrow automatically adds this style class * Refer to individual widget documentation for used style classes.
* to the style context when rendering an arrow element.
*/ */
#define GTK_STYLE_CLASS_ARROW "arrow" #define GTK_STYLE_CLASS_ARROW "arrow"
@ -759,6 +752,8 @@ struct _GtkStyleContextClass
* *
* A CSS class used when rendering an OSD (On Screen Display) element, * A CSS class used when rendering an OSD (On Screen Display) element,
* on top of another container. * on top of another container.
*
* Refer to individual widget documentation for used style classes.
*/ */
#define GTK_STYLE_CLASS_OSD "osd" #define GTK_STYLE_CLASS_OSD "osd"
@ -768,7 +763,7 @@ struct _GtkStyleContextClass
* A CSS class used when rendering a level indicator, such * A CSS class used when rendering a level indicator, such
* as a battery charge level, or a password strength. * as a battery charge level, or a password strength.
* *
* This is used by #GtkLevelBar. * Refer to individual widget documentation for used style classes.
*/ */
#define GTK_STYLE_CLASS_LEVEL_BAR "level-bar" #define GTK_STYLE_CLASS_LEVEL_BAR "level-bar"
@ -777,6 +772,8 @@ struct _GtkStyleContextClass
* *
* A CSS class used when rendering a drag handle for * A CSS class used when rendering a drag handle for
* text selection. * text selection.
*
* Refer to individual widget documentation for used style classes.
*/ */
#define GTK_STYLE_CLASS_CURSOR_HANDLE "cursor-handle" #define GTK_STYLE_CLASS_CURSOR_HANDLE "cursor-handle"
@ -785,14 +782,17 @@ struct _GtkStyleContextClass
* *
* A CSS class used when rendering a drag handle for * A CSS class used when rendering a drag handle for
* the insertion cursor position. * the insertion cursor position.
*
* Refer to individual widget documentation for used style classes.
*/ */
#define GTK_STYLE_CLASS_INSERTION_CURSOR "insertion-cursor" #define GTK_STYLE_CLASS_INSERTION_CURSOR "insertion-cursor"
/** /**
* GTK_STYLE_CLASS_TITLEBAR: * GTK_STYLE_CLASS_TITLEBAR:
* *
* A CSS class used when rendering a titlebar in a toplevel * A CSS class used when rendering a titlebar in a toplevel window.
* window. *
* Refer to individual widget documentation for used style classes.
*/ */
#define GTK_STYLE_CLASS_TITLEBAR "titlebar" #define GTK_STYLE_CLASS_TITLEBAR "titlebar"
@ -802,6 +802,8 @@ struct _GtkStyleContextClass
* A CSS class used for the title label in a titlebar in * A CSS class used for the title label in a titlebar in
* a toplevel window. * a toplevel window.
* *
* Refer to individual widget documentation for used style classes.
*
* Since: 3.14 * Since: 3.14
*/ */
#define GTK_STYLE_CLASS_TITLE "title" #define GTK_STYLE_CLASS_TITLE "title"
@ -812,6 +814,8 @@ struct _GtkStyleContextClass
* A CSS class used for the subtitle label in a titlebar in * A CSS class used for the subtitle label in a titlebar in
* a toplevel window. * a toplevel window.
* *
* Refer to individual widget documentation for used style classes.
*
* Since: 3.14 * Since: 3.14
*/ */
#define GTK_STYLE_CLASS_SUBTITLE "subtitle" #define GTK_STYLE_CLASS_SUBTITLE "subtitle"
@ -823,6 +827,8 @@ struct _GtkStyleContextClass
* for instance a button in a stack switcher corresponding to * for instance a button in a stack switcher corresponding to
* a hidden page that changed state. * a hidden page that changed state.
* *
* Refer to individual widget documentation for used style classes.
*
* Since: 3.12 * Since: 3.12
*/ */
#define GTK_STYLE_CLASS_NEEDS_ATTENTION "needs-attention" #define GTK_STYLE_CLASS_NEEDS_ATTENTION "needs-attention"
@ -833,6 +839,8 @@ struct _GtkStyleContextClass
* A CSS class used when an action (usually a button) is the * A CSS class used when an action (usually a button) is the
* primary suggested action in a specific context. * primary suggested action in a specific context.
* *
* Refer to individual widget documentation for used style classes.
*
* Since: 3.12 * Since: 3.12
*/ */
#define GTK_STYLE_CLASS_SUGGESTED_ACTION "suggested-action" #define GTK_STYLE_CLASS_SUGGESTED_ACTION "suggested-action"
@ -844,6 +852,8 @@ struct _GtkStyleContextClass
* one that is expected to remove or destroy something visible * one that is expected to remove or destroy something visible
* to the user. * to the user.
* *
* Refer to individual widget documentation for used style classes.
*
* Since: 3.12 * Since: 3.12
*/ */
#define GTK_STYLE_CLASS_DESTRUCTIVE_ACTION "destructive-action" #define GTK_STYLE_CLASS_DESTRUCTIVE_ACTION "destructive-action"
@ -851,7 +861,9 @@ struct _GtkStyleContextClass
/** /**
* GTK_STYLE_CLASS_POPOVER: * GTK_STYLE_CLASS_POPOVER:
* *
* A CSS class that matches popovers. Used by #GtkPopover. * A CSS class that matches popovers.
*
* Refer to individual widget documentation for used style classes.
* *
* Since: 3.14 * Since: 3.14
*/ */
@ -864,6 +876,8 @@ struct _GtkStyleContextClass
* *
* A CSS class that is added to the toplevel windows used for menus. * A CSS class that is added to the toplevel windows used for menus.
* *
* Refer to individual widget documentation for used style classes.
*
* Since: 3.14 * Since: 3.14
*/ */
#define GTK_STYLE_CLASS_POPUP "popup" #define GTK_STYLE_CLASS_POPUP "popup"
@ -873,6 +887,8 @@ struct _GtkStyleContextClass
* *
* A CSS class that is added to message dialogs. * A CSS class that is added to message dialogs.
* *
* Refer to individual widget documentation for used style classes.
*
* Since: 3.14 * Since: 3.14
*/ */
#define GTK_STYLE_CLASS_MESSAGE_DIALOG "message-dialog" #define GTK_STYLE_CLASS_MESSAGE_DIALOG "message-dialog"
@ -884,6 +900,8 @@ struct _GtkStyleContextClass
* a frame or border (like buttons or entries) should appear * a frame or border (like buttons or entries) should appear
* without it. * without it.
* *
* Refer to individual widget documentation for used style classes.
*
* Since: 3.14 * Since: 3.14
*/ */
#define GTK_STYLE_CLASS_FLAT "flat" #define GTK_STYLE_CLASS_FLAT "flat"
@ -892,36 +910,47 @@ struct _GtkStyleContextClass
* GTK_STYLE_CLASS_READ_ONLY: * GTK_STYLE_CLASS_READ_ONLY:
* *
* A CSS class used to indicate a read-only state. * A CSS class used to indicate a read-only state.
*
* Refer to individual widget documentation for used style classes.
*/ */
#define GTK_STYLE_CLASS_READ_ONLY "read-only" #define GTK_STYLE_CLASS_READ_ONLY "read-only"
/** /**
* GTK_STYLE_CLASS_OVERSHOOT: * GTK_STYLE_CLASS_OVERSHOOT:
*
* A CSS class that is added on the visual hints that happen * A CSS class that is added on the visual hints that happen
* when scrolling is attempted past the limits of a scrollable * when scrolling is attempted past the limits of a scrollable
* area. * area.
* *
* Refer to individual widget documentation for used style classes.
*
* Since: 3.14 * Since: 3.14
*/ */
#define GTK_STYLE_CLASS_OVERSHOOT "overshoot" #define GTK_STYLE_CLASS_OVERSHOOT "overshoot"
/** /**
* GTK_STYLE_CLASS_UNDERSHOOT: * GTK_STYLE_CLASS_UNDERSHOOT:
*
* A CSS class that is added on the visual hints that happen * A CSS class that is added on the visual hints that happen
* where content is 'scrolled off' and can be made visible * where content is 'scrolled off' and can be made visible
* by scrolling. * by scrolling.
* *
* Refer to individual widget documentation for used style classes.
*
* Since: 3.16 * Since: 3.16
*/ */
#define GTK_STYLE_CLASS_UNDERSHOOT "undershoot" #define GTK_STYLE_CLASS_UNDERSHOOT "undershoot"
/** /**
* GTK_STYLE_CLASS_PAPER: * GTK_STYLE_CLASS_PAPER:
*
* A CSS class that is added to areas that should look like paper. * A CSS class that is added to areas that should look like paper.
* *
* This is used in print previews and themes are encouraged to * This is used in print previews and themes are encouraged to
* style it as black text on white background. * style it as black text on white background.
* *
* Refer to individual widget documentation for used style classes.
*
* Since: 3.16 * Since: 3.16
*/ */
#define GTK_STYLE_CLASS_PAPER "paper" #define GTK_STYLE_CLASS_PAPER "paper"
@ -932,6 +961,8 @@ struct _GtkStyleContextClass
* A CSS class that is added to text view that should use * A CSS class that is added to text view that should use
* a monospace font. * a monospace font.
* *
* Refer to individual widget documentation for used style classes.
*
* Since: 3.16 * Since: 3.16
*/ */
#define GTK_STYLE_CLASS_MONOSPACE "monospace" #define GTK_STYLE_CLASS_MONOSPACE "monospace"
@ -942,6 +973,8 @@ struct _GtkStyleContextClass
* A CSS class to indicate that a UI element should be 'wide'. * A CSS class to indicate that a UI element should be 'wide'.
* Used by #GtkPaned. * Used by #GtkPaned.
* *
* Refer to individual widget documentation for used style classes.
*
* Since: 3.16 * Since: 3.16
*/ */
#define GTK_STYLE_CLASS_WIDE "wide" #define GTK_STYLE_CLASS_WIDE "wide"
@ -950,6 +983,8 @@ struct _GtkStyleContextClass
* GTK_STYLE_REGION_ROW: * GTK_STYLE_REGION_ROW:
* *
* A widget region name to define a treeview row. * A widget region name to define a treeview row.
*
* Deprecated: 3.20: Don't use regions.
*/ */
#define GTK_STYLE_REGION_ROW "row" #define GTK_STYLE_REGION_ROW "row"
@ -957,6 +992,8 @@ struct _GtkStyleContextClass
* GTK_STYLE_REGION_COLUMN: * GTK_STYLE_REGION_COLUMN:
* *
* A widget region name to define a treeview column. * A widget region name to define a treeview column.
*
* Deprecated: 3.20: Don't use regions.
*/ */
#define GTK_STYLE_REGION_COLUMN "column" #define GTK_STYLE_REGION_COLUMN "column"
@ -964,6 +1001,8 @@ struct _GtkStyleContextClass
* GTK_STYLE_REGION_COLUMN_HEADER: * GTK_STYLE_REGION_COLUMN_HEADER:
* *
* A widget region name to define a treeview column header. * A widget region name to define a treeview column header.
*
* Deprecated: 3.20: Don't use regions.
*/ */
#define GTK_STYLE_REGION_COLUMN_HEADER "column-header" #define GTK_STYLE_REGION_COLUMN_HEADER "column-header"
@ -971,6 +1010,8 @@ struct _GtkStyleContextClass
* GTK_STYLE_REGION_TAB: * GTK_STYLE_REGION_TAB:
* *
* A widget region name to define a notebook tab. * A widget region name to define a notebook tab.
*
* Deprecated: 3.20: Don't use regions.
*/ */
#define GTK_STYLE_REGION_TAB "tab" #define GTK_STYLE_REGION_TAB "tab"