<?xml version="1.0"?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
<!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
<!ENTITY version SYSTEM "version.xml">
<!ENTITY pi "&#960;">
<!ENTITY solidus "&#8260;">
]>
<refentry id="GtkStyleContext">
<refmeta>
<refentrytitle role="top_of_page" id="GtkStyleContext.top_of_page">GtkStyleContext</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>GTK4 Library</refmiscinfo>
</refmeta>
<refnamediv>
<refname>GtkStyleContext</refname>
<refpurpose>Rendering UI elements</refpurpose>
</refnamediv>

<refsect1 id="GtkStyleContext.functions" role="functions_proto">
<title role="functions_proto.title">Functions</title>
<informaltable pgwide="1" frame="none">
<tgroup cols="2">
<colspec colname="functions_proto_type" colwidth="150px"/>
<colspec colname="functions_proto_name"/>
<tbody>
<row><entry role="function_type"><link linkend="void"><returnvalue>void</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-style-context-add-provider">gtk_style_context_add_provider</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="void"><returnvalue>void</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-style-context-add-provider-for-display">gtk_style_context_add_provider_for_display</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="GdkDisplay"><returnvalue>GdkDisplay</returnvalue></link>&#160;*
</entry><entry role="function_name"><link linkend="gtk-style-context-get-display">gtk_style_context_get_display</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="GtkStateFlags"><returnvalue>GtkStateFlags</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-style-context-get-state">gtk_style_context_get_state</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="void"><returnvalue>void</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-style-context-get-color">gtk_style_context_get_color</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="void"><returnvalue>void</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-style-context-get-border">gtk_style_context_get_border</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="void"><returnvalue>void</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-style-context-get-padding">gtk_style_context_get_padding</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="void"><returnvalue>void</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-style-context-get-margin">gtk_style_context_get_margin</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-style-context-lookup-color">gtk_style_context_lookup_color</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="void"><returnvalue>void</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-style-context-remove-provider">gtk_style_context_remove_provider</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="void"><returnvalue>void</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-style-context-remove-provider-for-display">gtk_style_context_remove_provider_for_display</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="void"><returnvalue>void</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-style-context-restore">gtk_style_context_restore</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="void"><returnvalue>void</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-style-context-save">gtk_style_context_save</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="void"><returnvalue>void</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-style-context-add-class">gtk_style_context_add_class</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="void"><returnvalue>void</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-style-context-remove-class">gtk_style_context_remove_class</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-style-context-has-class">gtk_style_context_has_class</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="void"><returnvalue>void</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-style-context-set-display">gtk_style_context_set_display</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="void"><returnvalue>void</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-style-context-set-state">gtk_style_context_set_state</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="void"><returnvalue>void</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-style-context-set-scale">gtk_style_context_set_scale</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="gint"><returnvalue>gint</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-style-context-get-scale">gtk_style_context_get_scale</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="char"><returnvalue>char</returnvalue></link>&#160;*
</entry><entry role="function_name"><link linkend="gtk-style-context-to-string">gtk_style_context_to_string</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>

<row><entry role="function_type"><link linkend="GtkBorder"><returnvalue>GtkBorder</returnvalue></link>&#160;*
</entry><entry role="function_name"><link linkend="gtk-border-new">gtk_border_new</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="GtkBorder"><returnvalue>GtkBorder</returnvalue></link>&#160;*
</entry><entry role="function_name"><link linkend="gtk-border-copy">gtk_border_copy</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="void"><returnvalue>void</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-border-free">gtk_border_free</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>

<row><entry role="function_type"><link linkend="void"><returnvalue>void</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-render-arrow">gtk_render_arrow</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="void"><returnvalue>void</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-render-background">gtk_render_background</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="void"><returnvalue>void</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-render-check">gtk_render_check</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="void"><returnvalue>void</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-render-expander">gtk_render_expander</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="void"><returnvalue>void</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-render-focus">gtk_render_focus</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="void"><returnvalue>void</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-render-frame">gtk_render_frame</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="void"><returnvalue>void</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-render-handle">gtk_render_handle</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="void"><returnvalue>void</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-render-layout">gtk_render_layout</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="void"><returnvalue>void</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-render-line">gtk_render_line</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="void"><returnvalue>void</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-render-option">gtk_render_option</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="void"><returnvalue>void</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-render-activity">gtk_render_activity</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="void"><returnvalue>void</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-render-icon">gtk_render_icon</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="void"><returnvalue>void</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-render-insertion-cursor">gtk_render_insertion_cursor</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>

</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 id="GtkStyleContext.properties" role="properties">
<title role="properties.title">Properties</title>
<informaltable frame="none">
<tgroup cols="3">
<colspec colname="properties_type" colwidth="150px"/>
<colspec colname="properties_name" colwidth="300px"/>
<colspec colname="properties_flags" colwidth="200px"/>
<tbody>
<row><entry role="property_type"><link linkend="GdkDisplay"><type>GdkDisplay</type></link>&#160;*</entry><entry role="property_name"><link linkend="GtkStyleContext--display">display</link></entry><entry role="property_flags">Read / Write</entry></row>

</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 id="GtkStyleContext.other" role="other_proto">
<title role="other_proto.title">Types and Values</title>
<informaltable pgwide="1" frame="none">
<tgroup cols="2">
<colspec colname="other_proto_type" colwidth="150px"/>
<colspec colname="other_proto_name"/>
<tbody>
<row><entry role="datatype_keyword">enum</entry><entry role="function_name"><link linkend="GtkBorderStyle">GtkBorderStyle</link></entry></row>

<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-ACCELERATOR:CAPS">GTK_STYLE_CLASS_ACCELERATOR</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-ARROW:CAPS">GTK_STYLE_CLASS_ARROW</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-BACKGROUND:CAPS">GTK_STYLE_CLASS_BACKGROUND</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-BOTTOM:CAPS">GTK_STYLE_CLASS_BOTTOM</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-BUTTON:CAPS">GTK_STYLE_CLASS_BUTTON</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-CALENDAR:CAPS">GTK_STYLE_CLASS_CALENDAR</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-CELL:CAPS">GTK_STYLE_CLASS_CELL</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-COMBOBOX-ENTRY:CAPS">GTK_STYLE_CLASS_COMBOBOX_ENTRY</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-CONTEXT-MENU:CAPS">GTK_STYLE_CLASS_CONTEXT_MENU</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-CHECK:CAPS">GTK_STYLE_CLASS_CHECK</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-CSD:CAPS">GTK_STYLE_CLASS_CSD</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-CURSOR-HANDLE:CAPS">GTK_STYLE_CLASS_CURSOR_HANDLE</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-DEFAULT:CAPS">GTK_STYLE_CLASS_DEFAULT</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-DESTRUCTIVE-ACTION:CAPS">GTK_STYLE_CLASS_DESTRUCTIVE_ACTION</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-DIM-LABEL:CAPS">GTK_STYLE_CLASS_DIM_LABEL</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-DND:CAPS">GTK_STYLE_CLASS_DND</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-DOCK:CAPS">GTK_STYLE_CLASS_DOCK</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-ENTRY:CAPS">GTK_STYLE_CLASS_ENTRY</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-ERROR:CAPS">GTK_STYLE_CLASS_ERROR</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-EXPANDER:CAPS">GTK_STYLE_CLASS_EXPANDER</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-FRAME:CAPS">GTK_STYLE_CLASS_FRAME</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-FLAT:CAPS">GTK_STYLE_CLASS_FLAT</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-HEADER:CAPS">GTK_STYLE_CLASS_HEADER</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-HIGHLIGHT:CAPS">GTK_STYLE_CLASS_HIGHLIGHT</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-HORIZONTAL:CAPS">GTK_STYLE_CLASS_HORIZONTAL</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-IMAGE:CAPS">GTK_STYLE_CLASS_IMAGE</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-INFO:CAPS">GTK_STYLE_CLASS_INFO</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-INSERTION-CURSOR:CAPS">GTK_STYLE_CLASS_INSERTION_CURSOR</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-LABEL:CAPS">GTK_STYLE_CLASS_LABEL</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-LEFT:CAPS">GTK_STYLE_CLASS_LEFT</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-LEVEL-BAR:CAPS">GTK_STYLE_CLASS_LEVEL_BAR</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-LINKED:CAPS">GTK_STYLE_CLASS_LINKED</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-LIST:CAPS">GTK_STYLE_CLASS_LIST</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-LIST-ROW:CAPS">GTK_STYLE_CLASS_LIST_ROW</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-MARK:CAPS">GTK_STYLE_CLASS_MARK</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-MENU:CAPS">GTK_STYLE_CLASS_MENU</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-MENUBAR:CAPS">GTK_STYLE_CLASS_MENUBAR</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-MENUITEM:CAPS">GTK_STYLE_CLASS_MENUITEM</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-MESSAGE-DIALOG:CAPS">GTK_STYLE_CLASS_MESSAGE_DIALOG</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-MONOSPACE:CAPS">GTK_STYLE_CLASS_MONOSPACE</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-NEEDS-ATTENTION:CAPS">GTK_STYLE_CLASS_NEEDS_ATTENTION</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-NOTEBOOK:CAPS">GTK_STYLE_CLASS_NOTEBOOK</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-OSD:CAPS">GTK_STYLE_CLASS_OSD</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-OVERSHOOT:CAPS">GTK_STYLE_CLASS_OVERSHOOT</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-PANE-SEPARATOR:CAPS">GTK_STYLE_CLASS_PANE_SEPARATOR</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-PAPER:CAPS">GTK_STYLE_CLASS_PAPER</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-POPUP:CAPS">GTK_STYLE_CLASS_POPUP</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-POPOVER:CAPS">GTK_STYLE_CLASS_POPOVER</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-PROGRESSBAR:CAPS">GTK_STYLE_CLASS_PROGRESSBAR</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-PULSE:CAPS">GTK_STYLE_CLASS_PULSE</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-QUESTION:CAPS">GTK_STYLE_CLASS_QUESTION</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-RADIO:CAPS">GTK_STYLE_CLASS_RADIO</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-RAISED:CAPS">GTK_STYLE_CLASS_RAISED</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-READ-ONLY:CAPS">GTK_STYLE_CLASS_READ_ONLY</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-RIGHT:CAPS">GTK_STYLE_CLASS_RIGHT</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-RUBBERBAND:CAPS">GTK_STYLE_CLASS_RUBBERBAND</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-SCALE:CAPS">GTK_STYLE_CLASS_SCALE</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-SCALE-HAS-MARKS-ABOVE:CAPS">GTK_STYLE_CLASS_SCALE_HAS_MARKS_ABOVE</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-SCALE-HAS-MARKS-BELOW:CAPS">GTK_STYLE_CLASS_SCALE_HAS_MARKS_BELOW</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-SCROLLBAR:CAPS">GTK_STYLE_CLASS_SCROLLBAR</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-SCROLLBARS-JUNCTION:CAPS">GTK_STYLE_CLASS_SCROLLBARS_JUNCTION</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-SEPARATOR:CAPS">GTK_STYLE_CLASS_SEPARATOR</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-SIDEBAR:CAPS">GTK_STYLE_CLASS_SIDEBAR</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-SLIDER:CAPS">GTK_STYLE_CLASS_SLIDER</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-SPINBUTTON:CAPS">GTK_STYLE_CLASS_SPINBUTTON</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-SPINNER:CAPS">GTK_STYLE_CLASS_SPINNER</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-STATUSBAR:CAPS">GTK_STYLE_CLASS_STATUSBAR</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-SUBTITLE:CAPS">GTK_STYLE_CLASS_SUBTITLE</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-SUGGESTED-ACTION:CAPS">GTK_STYLE_CLASS_SUGGESTED_ACTION</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-TITLE:CAPS">GTK_STYLE_CLASS_TITLE</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-TITLEBAR:CAPS">GTK_STYLE_CLASS_TITLEBAR</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-TOOLBAR:CAPS">GTK_STYLE_CLASS_TOOLBAR</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-TOOLTIP:CAPS">GTK_STYLE_CLASS_TOOLTIP</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-TOUCH-SELECTION:CAPS">GTK_STYLE_CLASS_TOUCH_SELECTION</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-TOP:CAPS">GTK_STYLE_CLASS_TOP</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-TROUGH:CAPS">GTK_STYLE_CLASS_TROUGH</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-UNDERSHOOT:CAPS">GTK_STYLE_CLASS_UNDERSHOOT</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-VERTICAL:CAPS">GTK_STYLE_CLASS_VERTICAL</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-VIEW:CAPS">GTK_STYLE_CLASS_VIEW</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-WARNING:CAPS">GTK_STYLE_CLASS_WARNING</link></entry></row>
<row><entry role="define_keyword">#define</entry><entry role="function_name"><link linkend="GTK-STYLE-CLASS-WIDE:CAPS">GTK_STYLE_CLASS_WIDE</link></entry></row>

<row><entry role="datatype_keyword"></entry><entry role="function_name"><link linkend="GtkStyleContext-struct">GtkStyleContext</link></entry></row>
<row><entry role="datatype_keyword">enum</entry><entry role="function_name"><link linkend="GtkStyleContextPrintFlags">GtkStyleContextPrintFlags</link></entry></row>

<row><entry role="datatype_keyword">struct</entry><entry role="function_name"><link linkend="GtkBorder">GtkBorder</link></entry></row>

</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 id="GtkStyleContext.object-hierarchy" role="object_hierarchy">
<title role="object_hierarchy.title">Object Hierarchy</title>
<screen>    <link linkend="GObject">GObject</link>
    <phrase role="lineart">&#9584;&#9472;&#9472;</phrase> GtkStyleContext
</screen>
</refsect1>

<refsect1 id="GtkStyleContext.includes"><title>Includes</title><synopsis>#include &lt;gtk/gtk.h&gt;
</synopsis></refsect1>

<refsect1 id="GtkStyleContext.description" role="desc">
<title role="desc.title">Description</title>
<para><link linkend="GtkStyleContext"><type>GtkStyleContext</type></link> is an object that stores styling information affecting
a widget.</para>
<para>In order to construct the final style information, <link linkend="GtkStyleContext"><type>GtkStyleContext</type></link>
queries information from all attached <link linkend="GtkStyleProviders"><type>GtkStyleProviders</type></link>. Style providers
can be either attached explicitly to the context through
<link linkend="gtk-style-context-add-provider"><function>gtk_style_context_add_provider()</function></link>, or to the display through
<link linkend="gtk-style-context-add-provider-for-display"><function>gtk_style_context_add_provider_for_display()</function></link>. The resulting style is a
combination of all providers’ information in priority order.</para>
<para>For GTK+ widgets, any <link linkend="GtkStyleContext"><type>GtkStyleContext</type></link> returned by
<link linkend="gtk-widget-get-style-context"><function>gtk_widget_get_style_context()</function></link> will already have a <link linkend="GdkDisplay"><type>GdkDisplay</type></link> and
RTL/LTR information set. The style context will also be updated
automatically if any of these settings change on the widget.</para>
<refsect2 id="gtkstylecontext-classes"><title>Style Classes</title><para>Widgets can add style classes to their context, which can be used to associate
different styles by class. The documentation for individual widgets lists
which style classes it uses itself, and which style classes may be added by
applications to affect their appearance.</para>
<para>GTK+ defines macros for a number of style classes.</para>
</refsect2>
<refsect2><title>Custom styling in UI libraries and applications</title><para>If you are developing a library with custom <link linkend="GtkWidgets"><type>GtkWidgets</type></link> that
render differently than standard components, you may need to add a
<link linkend="GtkStyleProvider"><type>GtkStyleProvider</type></link> yourself with the <link linkend="GTK-STYLE-PROVIDER-PRIORITY-FALLBACK:CAPS"><literal>GTK_STYLE_PROVIDER_PRIORITY_FALLBACK</literal></link>
priority, either a <link linkend="GtkCssProvider"><type>GtkCssProvider</type></link> or a custom object implementing the
<link linkend="GtkStyleProvider"><type>GtkStyleProvider</type></link> interface. This way themes may still attempt
to style your UI elements in a different way if needed so.</para>
<para>If you are using custom styling on an applications, you probably want then
to make your style information prevail to the theme’s, so you must use
a <link linkend="GtkStyleProvider"><type>GtkStyleProvider</type></link> with the <link linkend="GTK-STYLE-PROVIDER-PRIORITY-APPLICATION:CAPS"><literal>GTK_STYLE_PROVIDER_PRIORITY_APPLICATION</literal></link>
priority, keep in mind that the user settings in
<literal>XDG_CONFIG_HOME/gtk-4.0/gtk.css</literal> will
still take precedence over your changes, as it uses the
<link linkend="GTK-STYLE-PROVIDER-PRIORITY-USER:CAPS"><literal>GTK_STYLE_PROVIDER_PRIORITY_USER</literal></link> priority.</para>
</refsect2>

</refsect1>
<refsect1 id="GtkStyleContext.functions_details" role="details">
<title role="details.title">Functions</title>
<refsect2 id="gtk-style-context-add-provider" role="function">
<title>gtk_style_context_add_provider&#160;()</title>
<indexterm zone="gtk-style-context-add-provider"><primary>gtk_style_context_add_provider</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_style_context_add_provider (<parameter><link linkend="GtkStyleContext"><type>GtkStyleContext</type></link> *context</parameter>,
                                <parameter><link linkend="GtkStyleProvider"><type>GtkStyleProvider</type></link> *provider</parameter>,
                                <parameter><link linkend="guint"><type>guint</type></link> priority</parameter>);</programlisting>
<para>Adds a style provider to <parameter>context</parameter>
, to be used in style construction.
Note that a style provider added by this function only affects
the style of the widget to which <parameter>context</parameter>
 belongs. If you want
to affect the style of all widgets, use
<link linkend="gtk-style-context-add-provider-for-display"><function>gtk_style_context_add_provider_for_display()</function></link>.</para>
<para>Note: If both priorities are the same, a <link linkend="GtkStyleProvider"><type>GtkStyleProvider</type></link>
added through this function takes precedence over another added
through <link linkend="gtk-style-context-add-provider-for-display"><function>gtk_style_context_add_provider_for_display()</function></link>.</para>
<refsect3 id="gtk-style-context-add-provider.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>context</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkStyleContext"><type>GtkStyleContext</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>provider</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkStyleProvider"><type>GtkStyleProvider</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>priority</para></entry>
<entry role="parameter_description"><para>the priority of the style provider. The lower
it is, the earlier it will be used in the style
construction. Typically this will be in the range
between <link linkend="GTK-STYLE-PROVIDER-PRIORITY-FALLBACK:CAPS"><literal>GTK_STYLE_PROVIDER_PRIORITY_FALLBACK</literal></link> and
<link linkend="GTK-STYLE-PROVIDER-PRIORITY-USER:CAPS"><literal>GTK_STYLE_PROVIDER_PRIORITY_USER</literal></link></para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-style-context-add-provider-for-display" role="function">
<title>gtk_style_context_add_provider_for_display&#160;()</title>
<indexterm zone="gtk-style-context-add-provider-for-display"><primary>gtk_style_context_add_provider_for_display</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_style_context_add_provider_for_display
                               (<parameter><link linkend="GdkDisplay"><type>GdkDisplay</type></link> *display</parameter>,
                                <parameter><link linkend="GtkStyleProvider"><type>GtkStyleProvider</type></link> *provider</parameter>,
                                <parameter><link linkend="guint"><type>guint</type></link> priority</parameter>);</programlisting>
<para>Adds a global style provider to <parameter>display</parameter>
, which will be used
in style construction for all <link linkend="GtkStyleContexts"><type>GtkStyleContexts</type></link> under <parameter>display</parameter>
.</para>
<para>GTK+ uses this to make styling information from <link linkend="GtkSettings"><type>GtkSettings</type></link>
available.</para>
<para>Note: If both priorities are the same, A <link linkend="GtkStyleProvider"><type>GtkStyleProvider</type></link>
added through <link linkend="gtk-style-context-add-provider"><function>gtk_style_context_add_provider()</function></link> takes precedence
over another added through this function.</para>
<refsect3 id="gtk-style-context-add-provider-for-display.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>display</para></entry>
<entry role="parameter_description"><para>a <link linkend="GdkDisplay"><type>GdkDisplay</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>provider</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkStyleProvider"><type>GtkStyleProvider</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>priority</para></entry>
<entry role="parameter_description"><para>the priority of the style provider. The lower
it is, the earlier it will be used in the style
construction. Typically this will be in the range
between <link linkend="GTK-STYLE-PROVIDER-PRIORITY-FALLBACK:CAPS"><literal>GTK_STYLE_PROVIDER_PRIORITY_FALLBACK</literal></link> and
<link linkend="GTK-STYLE-PROVIDER-PRIORITY-USER:CAPS"><literal>GTK_STYLE_PROVIDER_PRIORITY_USER</literal></link></para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-style-context-get-display" role="function">
<title>gtk_style_context_get_display&#160;()</title>
<indexterm zone="gtk-style-context-get-display"><primary>gtk_style_context_get_display</primary></indexterm>
<programlisting language="C"><link linkend="GdkDisplay"><returnvalue>GdkDisplay</returnvalue></link>&#160;*
gtk_style_context_get_display (<parameter><link linkend="GtkStyleContext"><type>GtkStyleContext</type></link> *context</parameter>);</programlisting>
<para>Returns the <link linkend="GdkDisplay"><type>GdkDisplay</type></link> to which <parameter>context</parameter>
 is attached.</para>
<refsect3 id="gtk-style-context-get-display.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>context</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkStyleContext"><type>GtkStyleContext</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 id="gtk-style-context-get-display.returns" role="returns">
<title>Returns</title>
<para>a <link linkend="GdkDisplay"><type>GdkDisplay</type></link>. </para>
<para><emphasis role="annotation">[<acronym>transfer none</acronym>]</emphasis></para>
</refsect3></refsect2>
<refsect2 id="gtk-style-context-get-state" role="function">
<title>gtk_style_context_get_state&#160;()</title>
<indexterm zone="gtk-style-context-get-state"><primary>gtk_style_context_get_state</primary></indexterm>
<programlisting language="C"><link linkend="GtkStateFlags"><returnvalue>GtkStateFlags</returnvalue></link>
gtk_style_context_get_state (<parameter><link linkend="GtkStyleContext"><type>GtkStyleContext</type></link> *context</parameter>);</programlisting>
<para>Returns the state used for style matching.</para>
<para>This method should only be used to retrieve the <link linkend="GtkStateFlags"><type>GtkStateFlags</type></link>
to pass to <link linkend="GtkStyleContext"><type>GtkStyleContext</type></link> methods, like <link linkend="gtk-style-context-get-padding"><function>gtk_style_context_get_padding()</function></link>.
If you need to retrieve the current state of a <link linkend="GtkWidget"><type>GtkWidget</type></link>, use
<link linkend="gtk-widget-get-state-flags"><function>gtk_widget_get_state_flags()</function></link>.</para>
<refsect3 id="gtk-style-context-get-state.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>context</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkStyleContext"><type>GtkStyleContext</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 id="gtk-style-context-get-state.returns" role="returns">
<title>Returns</title>
<para> the state flags</para>
</refsect3></refsect2>
<refsect2 id="gtk-style-context-get-color" role="function">
<title>gtk_style_context_get_color&#160;()</title>
<indexterm zone="gtk-style-context-get-color"><primary>gtk_style_context_get_color</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_style_context_get_color (<parameter><link linkend="GtkStyleContext"><type>GtkStyleContext</type></link> *context</parameter>,
                             <parameter><link linkend="GdkRGBA"><type>GdkRGBA</type></link> *color</parameter>);</programlisting>
<para>Gets the foreground color for a given state.</para>
<para>See <link linkend="gtk-style-context-get-property"><function>gtk_style_context_get_property()</function></link> and
<link linkend="GTK-STYLE-PROPERTY-COLOR:CAPS"><type>GTK_STYLE_PROPERTY_COLOR</type></link> for details.</para>
<refsect3 id="gtk-style-context-get-color.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>context</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkStyleContext"><type>GtkStyleContext</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>color</para></entry>
<entry role="parameter_description"><para>return value for the foreground color. </para></entry>
<entry role="parameter_annotations"><emphasis role="annotation">[<acronym>out</acronym>]</emphasis></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-style-context-get-border" role="function">
<title>gtk_style_context_get_border&#160;()</title>
<indexterm zone="gtk-style-context-get-border"><primary>gtk_style_context_get_border</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_style_context_get_border (<parameter><link linkend="GtkStyleContext"><type>GtkStyleContext</type></link> *context</parameter>,
                              <parameter><link linkend="GtkBorder"><type>GtkBorder</type></link> *border</parameter>);</programlisting>
<para>Gets the border for a given state as a <link linkend="GtkBorder"><type>GtkBorder</type></link>.</para>
<para>See <link linkend="gtk-style-context-get-property"><function>gtk_style_context_get_property()</function></link> and
<link linkend="GTK-STYLE-PROPERTY-BORDER-WIDTH:CAPS"><type>GTK_STYLE_PROPERTY_BORDER_WIDTH</type></link> for details.</para>
<refsect3 id="gtk-style-context-get-border.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>context</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkStyleContext"><type>GtkStyleContext</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>border</para></entry>
<entry role="parameter_description"><para>return value for the border settings. </para></entry>
<entry role="parameter_annotations"><emphasis role="annotation">[<acronym>out</acronym>]</emphasis></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-style-context-get-padding" role="function">
<title>gtk_style_context_get_padding&#160;()</title>
<indexterm zone="gtk-style-context-get-padding"><primary>gtk_style_context_get_padding</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_style_context_get_padding (<parameter><link linkend="GtkStyleContext"><type>GtkStyleContext</type></link> *context</parameter>,
                               <parameter><link linkend="GtkBorder"><type>GtkBorder</type></link> *padding</parameter>);</programlisting>
<para>Gets the padding for a given state as a <link linkend="GtkBorder"><type>GtkBorder</type></link>.
See <link linkend="gtk-style-context-get"><function>gtk_style_context_get()</function></link> and <link linkend="GTK-STYLE-PROPERTY-PADDING:CAPS"><type>GTK_STYLE_PROPERTY_PADDING</type></link>
for details.</para>
<refsect3 id="gtk-style-context-get-padding.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>context</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkStyleContext"><type>GtkStyleContext</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>padding</para></entry>
<entry role="parameter_description"><para>return value for the padding settings. </para></entry>
<entry role="parameter_annotations"><emphasis role="annotation">[<acronym>out</acronym>]</emphasis></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-style-context-get-margin" role="function">
<title>gtk_style_context_get_margin&#160;()</title>
<indexterm zone="gtk-style-context-get-margin"><primary>gtk_style_context_get_margin</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_style_context_get_margin (<parameter><link linkend="GtkStyleContext"><type>GtkStyleContext</type></link> *context</parameter>,
                              <parameter><link linkend="GtkBorder"><type>GtkBorder</type></link> *margin</parameter>);</programlisting>
<para>Gets the margin for a given state as a <link linkend="GtkBorder"><type>GtkBorder</type></link>.
See <link linkend="gtk-style-property-get"><function>gtk_style_property_get()</function></link> and <link linkend="GTK-STYLE-PROPERTY-MARGIN:CAPS"><type>GTK_STYLE_PROPERTY_MARGIN</type></link>
for details.</para>
<refsect3 id="gtk-style-context-get-margin.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>context</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkStyleContext"><type>GtkStyleContext</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>margin</para></entry>
<entry role="parameter_description"><para>return value for the margin settings. </para></entry>
<entry role="parameter_annotations"><emphasis role="annotation">[<acronym>out</acronym>]</emphasis></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-style-context-lookup-color" role="function">
<title>gtk_style_context_lookup_color&#160;()</title>
<indexterm zone="gtk-style-context-lookup-color"><primary>gtk_style_context_lookup_color</primary></indexterm>
<programlisting language="C"><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>
gtk_style_context_lookup_color (<parameter><link linkend="GtkStyleContext"><type>GtkStyleContext</type></link> *context</parameter>,
                                <parameter>const <link linkend="gchar"><type>gchar</type></link> *color_name</parameter>,
                                <parameter><link linkend="GdkRGBA"><type>GdkRGBA</type></link> *color</parameter>);</programlisting>
<para>Looks up and resolves a color name in the <parameter>context</parameter>
 color map.</para>
<refsect3 id="gtk-style-context-lookup-color.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>context</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkStyleContext"><type>GtkStyleContext</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>color_name</para></entry>
<entry role="parameter_description"><para>color name to lookup</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>color</para></entry>
<entry role="parameter_description"><para>Return location for the looked up color. </para></entry>
<entry role="parameter_annotations"><emphasis role="annotation">[<acronym>out</acronym>]</emphasis></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 id="gtk-style-context-lookup-color.returns" role="returns">
<title>Returns</title>
<para> <link linkend="TRUE:CAPS"><literal>TRUE</literal></link> if <parameter>color_name</parameter>
was found and resolved, <link linkend="FALSE:CAPS"><literal>FALSE</literal></link> otherwise</para>
</refsect3></refsect2>
<refsect2 id="gtk-style-context-remove-provider" role="function">
<title>gtk_style_context_remove_provider&#160;()</title>
<indexterm zone="gtk-style-context-remove-provider"><primary>gtk_style_context_remove_provider</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_style_context_remove_provider (<parameter><link linkend="GtkStyleContext"><type>GtkStyleContext</type></link> *context</parameter>,
                                   <parameter><link linkend="GtkStyleProvider"><type>GtkStyleProvider</type></link> *provider</parameter>);</programlisting>
<para>Removes <parameter>provider</parameter>
 from the style providers list in <parameter>context</parameter>
.</para>
<refsect3 id="gtk-style-context-remove-provider.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>context</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkStyleContext"><type>GtkStyleContext</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>provider</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkStyleProvider"><type>GtkStyleProvider</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-style-context-remove-provider-for-display" role="function">
<title>gtk_style_context_remove_provider_for_display&#160;()</title>
<indexterm zone="gtk-style-context-remove-provider-for-display"><primary>gtk_style_context_remove_provider_for_display</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_style_context_remove_provider_for_display
                               (<parameter><link linkend="GdkDisplay"><type>GdkDisplay</type></link> *display</parameter>,
                                <parameter><link linkend="GtkStyleProvider"><type>GtkStyleProvider</type></link> *provider</parameter>);</programlisting>
<para>Removes <parameter>provider</parameter>
 from the global style providers list in <parameter>display</parameter>
.</para>
<refsect3 id="gtk-style-context-remove-provider-for-display.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>display</para></entry>
<entry role="parameter_description"><para>a <link linkend="GdkDisplay"><type>GdkDisplay</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>provider</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkStyleProvider"><type>GtkStyleProvider</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-style-context-restore" role="function">
<title>gtk_style_context_restore&#160;()</title>
<indexterm zone="gtk-style-context-restore"><primary>gtk_style_context_restore</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_style_context_restore (<parameter><link linkend="GtkStyleContext"><type>GtkStyleContext</type></link> *context</parameter>);</programlisting>
<para>Restores <parameter>context</parameter>
 state to a previous stage.
See <link linkend="gtk-style-context-save"><function>gtk_style_context_save()</function></link>.</para>
<refsect3 id="gtk-style-context-restore.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>context</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkStyleContext"><type>GtkStyleContext</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-style-context-save" role="function">
<title>gtk_style_context_save&#160;()</title>
<indexterm zone="gtk-style-context-save"><primary>gtk_style_context_save</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_style_context_save (<parameter><link linkend="GtkStyleContext"><type>GtkStyleContext</type></link> *context</parameter>);</programlisting>
<para>Saves the <parameter>context</parameter>
 state, so temporary modifications done through
<link linkend="gtk-style-context-add-class"><function>gtk_style_context_add_class()</function></link>, <link linkend="gtk-style-context-remove-class"><function>gtk_style_context_remove_class()</function></link>,
<link linkend="gtk-style-context-set-state"><function>gtk_style_context_set_state()</function></link>, etc. can quickly be reverted
in one go through <link linkend="gtk-style-context-restore"><function>gtk_style_context_restore()</function></link>.</para>
<para>The matching call to <link linkend="gtk-style-context-restore"><function>gtk_style_context_restore()</function></link> must be done
before GTK returns to the main loop.</para>
<refsect3 id="gtk-style-context-save.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>context</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkStyleContext"><type>GtkStyleContext</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-style-context-add-class" role="function">
<title>gtk_style_context_add_class&#160;()</title>
<indexterm zone="gtk-style-context-add-class"><primary>gtk_style_context_add_class</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_style_context_add_class (<parameter><link linkend="GtkStyleContext"><type>GtkStyleContext</type></link> *context</parameter>,
                             <parameter>const <link linkend="gchar"><type>gchar</type></link> *class_name</parameter>);</programlisting>
<para>Adds a style class to <parameter>context</parameter>
, so posterior calls to
<link linkend="gtk-style-context-get"><function>gtk_style_context_get()</function></link> or any of the gtk_render_*()
functions will make use of this new class for styling.</para>
<para>In the CSS file format, a <link linkend="GtkEntry"><type>GtkEntry</type></link> defining a “search”
class, would be matched by:</para>
<informalexample><programlisting role="example"><![CDATA[
entry.search { ... }
]]></programlisting></informalexample>
<para></para>
<para>While any widget defining a “search” class would be
matched by:</para>
<informalexample><programlisting role="example"><![CDATA[
.search { ... }
]]></programlisting></informalexample>
<para></para>
<refsect3 id="gtk-style-context-add-class.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>context</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkStyleContext"><type>GtkStyleContext</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>class_name</para></entry>
<entry role="parameter_description"><para>class name to use in styling</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-style-context-remove-class" role="function">
<title>gtk_style_context_remove_class&#160;()</title>
<indexterm zone="gtk-style-context-remove-class"><primary>gtk_style_context_remove_class</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_style_context_remove_class (<parameter><link linkend="GtkStyleContext"><type>GtkStyleContext</type></link> *context</parameter>,
                                <parameter>const <link linkend="gchar"><type>gchar</type></link> *class_name</parameter>);</programlisting>
<para>Removes <parameter>class_name</parameter>
 from <parameter>context</parameter>
.</para>
<refsect3 id="gtk-style-context-remove-class.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>context</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkStyleContext"><type>GtkStyleContext</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>class_name</para></entry>
<entry role="parameter_description"><para>class name to remove</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-style-context-has-class" role="function">
<title>gtk_style_context_has_class&#160;()</title>
<indexterm zone="gtk-style-context-has-class"><primary>gtk_style_context_has_class</primary></indexterm>
<programlisting language="C"><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>
gtk_style_context_has_class (<parameter><link linkend="GtkStyleContext"><type>GtkStyleContext</type></link> *context</parameter>,
                             <parameter>const <link linkend="gchar"><type>gchar</type></link> *class_name</parameter>);</programlisting>
<para>Returns <link linkend="TRUE:CAPS"><literal>TRUE</literal></link> if <parameter>context</parameter>
 currently has defined the
given class name.</para>
<refsect3 id="gtk-style-context-has-class.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>context</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkStyleContext"><type>GtkStyleContext</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>class_name</para></entry>
<entry role="parameter_description"><para>a class name</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 id="gtk-style-context-has-class.returns" role="returns">
<title>Returns</title>
<para> <link linkend="TRUE:CAPS"><literal>TRUE</literal></link> if <parameter>context</parameter>
has <parameter>class_name</parameter>
defined</para>
</refsect3></refsect2>
<refsect2 id="gtk-style-context-set-display" role="function">
<title>gtk_style_context_set_display&#160;()</title>
<indexterm zone="gtk-style-context-set-display"><primary>gtk_style_context_set_display</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_style_context_set_display (<parameter><link linkend="GtkStyleContext"><type>GtkStyleContext</type></link> *context</parameter>,
                               <parameter><link linkend="GdkDisplay"><type>GdkDisplay</type></link> *display</parameter>);</programlisting>
<para>Attaches <parameter>context</parameter>
 to the given display.</para>
<para>The display is used to add style information from “global” style
providers, such as the display's <link linkend="GtkSettings"><type>GtkSettings</type></link> instance.</para>
<para>If you are using a <link linkend="GtkStyleContext"><type>GtkStyleContext</type></link> returned from
<link linkend="gtk-widget-get-style-context"><function>gtk_widget_get_style_context()</function></link>, you do not need to
call this yourself.</para>
<refsect3 id="gtk-style-context-set-display.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>context</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkStyleContext"><type>GtkStyleContext</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>display</para></entry>
<entry role="parameter_description"><para>a <link linkend="GdkDisplay"><type>GdkDisplay</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-style-context-set-state" role="function">
<title>gtk_style_context_set_state&#160;()</title>
<indexterm zone="gtk-style-context-set-state"><primary>gtk_style_context_set_state</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_style_context_set_state (<parameter><link linkend="GtkStyleContext"><type>GtkStyleContext</type></link> *context</parameter>,
                             <parameter><link linkend="GtkStateFlags"><type>GtkStateFlags</type></link> flags</parameter>);</programlisting>
<para>Sets the state to be used for style matching.</para>
<refsect3 id="gtk-style-context-set-state.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>context</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkStyleContext"><type>GtkStyleContext</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>flags</para></entry>
<entry role="parameter_description"><para>state to represent</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-style-context-set-scale" role="function">
<title>gtk_style_context_set_scale&#160;()</title>
<indexterm zone="gtk-style-context-set-scale"><primary>gtk_style_context_set_scale</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_style_context_set_scale (<parameter><link linkend="GtkStyleContext"><type>GtkStyleContext</type></link> *context</parameter>,
                             <parameter><link linkend="gint"><type>gint</type></link> scale</parameter>);</programlisting>
<para>Sets the scale to use when getting image assets for the style.</para>
<refsect3 id="gtk-style-context-set-scale.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>context</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkStyleContext"><type>GtkStyleContext</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>scale</para></entry>
<entry role="parameter_description"><para>scale</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-style-context-get-scale" role="function">
<title>gtk_style_context_get_scale&#160;()</title>
<indexterm zone="gtk-style-context-get-scale"><primary>gtk_style_context_get_scale</primary></indexterm>
<programlisting language="C"><link linkend="gint"><returnvalue>gint</returnvalue></link>
gtk_style_context_get_scale (<parameter><link linkend="GtkStyleContext"><type>GtkStyleContext</type></link> *context</parameter>);</programlisting>
<para>Returns the scale used for assets.</para>
<refsect3 id="gtk-style-context-get-scale.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>context</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkStyleContext"><type>GtkStyleContext</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 id="gtk-style-context-get-scale.returns" role="returns">
<title>Returns</title>
<para> the scale</para>
</refsect3></refsect2>
<refsect2 id="gtk-style-context-to-string" role="function">
<title>gtk_style_context_to_string&#160;()</title>
<indexterm zone="gtk-style-context-to-string"><primary>gtk_style_context_to_string</primary></indexterm>
<programlisting language="C"><link linkend="char"><returnvalue>char</returnvalue></link>&#160;*
gtk_style_context_to_string (<parameter><link linkend="GtkStyleContext"><type>GtkStyleContext</type></link> *context</parameter>,
                             <parameter><link linkend="GtkStyleContextPrintFlags"><type>GtkStyleContextPrintFlags</type></link> flags</parameter>);</programlisting>
<para>Converts the style context into a string representation.</para>
<para>The string representation always includes information about
the name, state, id, visibility and style classes of the CSS
node that is backing <parameter>context</parameter>
. Depending on the flags, more
information may be included.</para>
<para>This function is intended for testing and debugging of the
CSS implementation in GTK+. There are no guarantees about
the format of the returned string, it may change.</para>
<refsect3 id="gtk-style-context-to-string.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>context</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkStyleContext"><type>GtkStyleContext</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>flags</para></entry>
<entry role="parameter_description"><para>Flags that determine what to print</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 id="gtk-style-context-to-string.returns" role="returns">
<title>Returns</title>
<para> a newly allocated string representing <parameter>context</parameter>
</para>
</refsect3></refsect2>
<refsect2 id="gtk-border-new" role="function">
<title>gtk_border_new&#160;()</title>
<indexterm zone="gtk-border-new"><primary>gtk_border_new</primary></indexterm>
<programlisting language="C"><link linkend="GtkBorder"><returnvalue>GtkBorder</returnvalue></link>&#160;*
gtk_border_new (<parameter><type>void</type></parameter>);</programlisting>
<para>Allocates a new <link linkend="GtkBorder-struct"><type>GtkBorder</type></link> and initializes its elements to zero.</para>
<refsect3 id="gtk-border-new.returns" role="returns">
<title>Returns</title>
<para>a newly allocated <link linkend="GtkBorder-struct"><type>GtkBorder</type></link>.
Free with <link linkend="gtk-border-free"><function>gtk_border_free()</function></link>. </para>
<para><emphasis role="annotation">[<acronym>transfer full</acronym>]</emphasis></para>
</refsect3></refsect2>
<refsect2 id="gtk-border-copy" role="function">
<title>gtk_border_copy&#160;()</title>
<indexterm zone="gtk-border-copy"><primary>gtk_border_copy</primary></indexterm>
<programlisting language="C"><link linkend="GtkBorder"><returnvalue>GtkBorder</returnvalue></link>&#160;*
gtk_border_copy (<parameter>const <link linkend="GtkBorder"><type>GtkBorder</type></link> *border_</parameter>);</programlisting>
<para>Copies a <link linkend="GtkBorder-struct"><type>GtkBorder</type></link>.</para>
<refsect3 id="gtk-border-copy.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>border_</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkBorder-struct"><type>GtkBorder</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 id="gtk-border-copy.returns" role="returns">
<title>Returns</title>
<para>a copy of <parameter>border_</parameter>
. </para>
<para><emphasis role="annotation">[<acronym>transfer full</acronym>]</emphasis></para>
</refsect3></refsect2>
<refsect2 id="gtk-border-free" role="function">
<title>gtk_border_free&#160;()</title>
<indexterm zone="gtk-border-free"><primary>gtk_border_free</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_border_free (<parameter><link linkend="GtkBorder"><type>GtkBorder</type></link> *border_</parameter>);</programlisting>
<para>Frees a <link linkend="GtkBorder-struct"><type>GtkBorder</type></link>.</para>
<refsect3 id="gtk-border-free.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>border_</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkBorder-struct"><type>GtkBorder</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-render-arrow" role="function">
<title>gtk_render_arrow&#160;()</title>
<indexterm zone="gtk-render-arrow"><primary>gtk_render_arrow</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_render_arrow (<parameter><link linkend="GtkStyleContext"><type>GtkStyleContext</type></link> *context</parameter>,
                  <parameter><link linkend="cairo-t"><type>cairo_t</type></link> *cr</parameter>,
                  <parameter><link linkend="gdouble"><type>gdouble</type></link> angle</parameter>,
                  <parameter><link linkend="gdouble"><type>gdouble</type></link> x</parameter>,
                  <parameter><link linkend="gdouble"><type>gdouble</type></link> y</parameter>,
                  <parameter><link linkend="gdouble"><type>gdouble</type></link> size</parameter>);</programlisting>
<para>Renders an arrow pointing to <parameter>angle</parameter>
.</para>
<para>Typical arrow rendering at 0, 1⁄2 π;, π; and 3⁄2 π:</para>
<para><inlinemediaobject><imageobject><imagedata fileref="arrows.png"></imagedata></imageobject><textobject><phrase></phrase></textobject></inlinemediaobject></para>
<refsect3 id="gtk-render-arrow.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>context</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkStyleContext"><type>GtkStyleContext</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>cr</para></entry>
<entry role="parameter_description"><para>a <link linkend="cairo-t"><type>cairo_t</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>angle</para></entry>
<entry role="parameter_description"><para>arrow angle from 0 to 2 * <link linkend="G-PI:CAPS"><literal>G_PI</literal></link>, being 0 the arrow pointing to the north</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>x</para></entry>
<entry role="parameter_description"><para>X origin of the render area</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>y</para></entry>
<entry role="parameter_description"><para>Y origin of the render area</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>size</para></entry>
<entry role="parameter_description"><para>square side for render area</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-render-background" role="function">
<title>gtk_render_background&#160;()</title>
<indexterm zone="gtk-render-background"><primary>gtk_render_background</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_render_background (<parameter><link linkend="GtkStyleContext"><type>GtkStyleContext</type></link> *context</parameter>,
                       <parameter><link linkend="cairo-t"><type>cairo_t</type></link> *cr</parameter>,
                       <parameter><link linkend="gdouble"><type>gdouble</type></link> x</parameter>,
                       <parameter><link linkend="gdouble"><type>gdouble</type></link> y</parameter>,
                       <parameter><link linkend="gdouble"><type>gdouble</type></link> width</parameter>,
                       <parameter><link linkend="gdouble"><type>gdouble</type></link> height</parameter>);</programlisting>
<para>Renders the background of an element.</para>
<para>Typical background rendering, showing the effect of
<literal>background-image</literal>, <literal>border-width</literal> and <literal>border-radius</literal>:</para>
<para><inlinemediaobject><imageobject><imagedata fileref="background.png"></imagedata></imageobject><textobject><phrase></phrase></textobject></inlinemediaobject></para>
<refsect3 id="gtk-render-background.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>context</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkStyleContext"><type>GtkStyleContext</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>cr</para></entry>
<entry role="parameter_description"><para>a <link linkend="cairo-t"><type>cairo_t</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>x</para></entry>
<entry role="parameter_description"><para>X origin of the rectangle</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>y</para></entry>
<entry role="parameter_description"><para>Y origin of the rectangle</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>width</para></entry>
<entry role="parameter_description"><para>rectangle width</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>height</para></entry>
<entry role="parameter_description"><para>rectangle height</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-render-check" role="function">
<title>gtk_render_check&#160;()</title>
<indexterm zone="gtk-render-check"><primary>gtk_render_check</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_render_check (<parameter><link linkend="GtkStyleContext"><type>GtkStyleContext</type></link> *context</parameter>,
                  <parameter><link linkend="cairo-t"><type>cairo_t</type></link> *cr</parameter>,
                  <parameter><link linkend="gdouble"><type>gdouble</type></link> x</parameter>,
                  <parameter><link linkend="gdouble"><type>gdouble</type></link> y</parameter>,
                  <parameter><link linkend="gdouble"><type>gdouble</type></link> width</parameter>,
                  <parameter><link linkend="gdouble"><type>gdouble</type></link> height</parameter>);</programlisting>
<para>Renders a checkmark (as in a <link linkend="GtkCheckButton"><type>GtkCheckButton</type></link>).</para>
<para>The <link linkend="GTK-STATE-FLAG-CHECKED:CAPS"><literal>GTK_STATE_FLAG_CHECKED</literal></link> state determines whether the check is
on or off, and <link linkend="GTK-STATE-FLAG-INCONSISTENT:CAPS"><literal>GTK_STATE_FLAG_INCONSISTENT</literal></link> determines whether it
should be marked as undefined.</para>
<para>Typical checkmark rendering:</para>
<para><inlinemediaobject><imageobject><imagedata fileref="checks.png"></imagedata></imageobject><textobject><phrase></phrase></textobject></inlinemediaobject></para>
<refsect3 id="gtk-render-check.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>context</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkStyleContext"><type>GtkStyleContext</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>cr</para></entry>
<entry role="parameter_description"><para>a <link linkend="cairo-t"><type>cairo_t</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>x</para></entry>
<entry role="parameter_description"><para>X origin of the rectangle</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>y</para></entry>
<entry role="parameter_description"><para>Y origin of the rectangle</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>width</para></entry>
<entry role="parameter_description"><para>rectangle width</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>height</para></entry>
<entry role="parameter_description"><para>rectangle height</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-render-expander" role="function">
<title>gtk_render_expander&#160;()</title>
<indexterm zone="gtk-render-expander"><primary>gtk_render_expander</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_render_expander (<parameter><link linkend="GtkStyleContext"><type>GtkStyleContext</type></link> *context</parameter>,
                     <parameter><link linkend="cairo-t"><type>cairo_t</type></link> *cr</parameter>,
                     <parameter><link linkend="gdouble"><type>gdouble</type></link> x</parameter>,
                     <parameter><link linkend="gdouble"><type>gdouble</type></link> y</parameter>,
                     <parameter><link linkend="gdouble"><type>gdouble</type></link> width</parameter>,
                     <parameter><link linkend="gdouble"><type>gdouble</type></link> height</parameter>);</programlisting>
<para>Renders an expander (as used in <link linkend="GtkTreeView"><type>GtkTreeView</type></link> and <link linkend="GtkExpander"><type>GtkExpander</type></link>) in the area
defined by <parameter>x</parameter>
, <parameter>y</parameter>
, <parameter>width</parameter>
, <parameter>height</parameter>
. The state <link linkend="GTK-STATE-FLAG-CHECKED:CAPS"><literal>GTK_STATE_FLAG_CHECKED</literal></link>
determines whether the expander is collapsed or expanded.</para>
<para>Typical expander rendering:</para>
<para><inlinemediaobject><imageobject><imagedata fileref="expanders.png"></imagedata></imageobject><textobject><phrase></phrase></textobject></inlinemediaobject></para>
<refsect3 id="gtk-render-expander.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>context</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkStyleContext"><type>GtkStyleContext</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>cr</para></entry>
<entry role="parameter_description"><para>a <link linkend="cairo-t"><type>cairo_t</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>x</para></entry>
<entry role="parameter_description"><para>X origin of the rectangle</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>y</para></entry>
<entry role="parameter_description"><para>Y origin of the rectangle</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>width</para></entry>
<entry role="parameter_description"><para>rectangle width</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>height</para></entry>
<entry role="parameter_description"><para>rectangle height</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-render-focus" role="function">
<title>gtk_render_focus&#160;()</title>
<indexterm zone="gtk-render-focus"><primary>gtk_render_focus</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_render_focus (<parameter><link linkend="GtkStyleContext"><type>GtkStyleContext</type></link> *context</parameter>,
                  <parameter><link linkend="cairo-t"><type>cairo_t</type></link> *cr</parameter>,
                  <parameter><link linkend="gdouble"><type>gdouble</type></link> x</parameter>,
                  <parameter><link linkend="gdouble"><type>gdouble</type></link> y</parameter>,
                  <parameter><link linkend="gdouble"><type>gdouble</type></link> width</parameter>,
                  <parameter><link linkend="gdouble"><type>gdouble</type></link> height</parameter>);</programlisting>
<para>Renders a focus indicator on the rectangle determined by <parameter>x</parameter>
, <parameter>y</parameter>
, <parameter>width</parameter>
, <parameter>height</parameter>
.</para>
<para>Typical focus rendering:</para>
<para><inlinemediaobject><imageobject><imagedata fileref="focus.png"></imagedata></imageobject><textobject><phrase></phrase></textobject></inlinemediaobject></para>
<refsect3 id="gtk-render-focus.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>context</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkStyleContext"><type>GtkStyleContext</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>cr</para></entry>
<entry role="parameter_description"><para>a <link linkend="cairo-t"><type>cairo_t</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>x</para></entry>
<entry role="parameter_description"><para>X origin of the rectangle</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>y</para></entry>
<entry role="parameter_description"><para>Y origin of the rectangle</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>width</para></entry>
<entry role="parameter_description"><para>rectangle width</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>height</para></entry>
<entry role="parameter_description"><para>rectangle height</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-render-frame" role="function">
<title>gtk_render_frame&#160;()</title>
<indexterm zone="gtk-render-frame"><primary>gtk_render_frame</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_render_frame (<parameter><link linkend="GtkStyleContext"><type>GtkStyleContext</type></link> *context</parameter>,
                  <parameter><link linkend="cairo-t"><type>cairo_t</type></link> *cr</parameter>,
                  <parameter><link linkend="gdouble"><type>gdouble</type></link> x</parameter>,
                  <parameter><link linkend="gdouble"><type>gdouble</type></link> y</parameter>,
                  <parameter><link linkend="gdouble"><type>gdouble</type></link> width</parameter>,
                  <parameter><link linkend="gdouble"><type>gdouble</type></link> height</parameter>);</programlisting>
<para>Renders a frame around the rectangle defined by <parameter>x</parameter>
, <parameter>y</parameter>
, <parameter>width</parameter>
, <parameter>height</parameter>
.</para>
<para>Examples of frame rendering, showing the effect of <literal>border-image</literal>,
<literal>border-color</literal>, <literal>border-width</literal>, <literal>border-radius</literal> and junctions:</para>
<para><inlinemediaobject><imageobject><imagedata fileref="frames.png"></imagedata></imageobject><textobject><phrase></phrase></textobject></inlinemediaobject></para>
<refsect3 id="gtk-render-frame.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>context</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkStyleContext"><type>GtkStyleContext</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>cr</para></entry>
<entry role="parameter_description"><para>a <link linkend="cairo-t"><type>cairo_t</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>x</para></entry>
<entry role="parameter_description"><para>X origin of the rectangle</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>y</para></entry>
<entry role="parameter_description"><para>Y origin of the rectangle</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>width</para></entry>
<entry role="parameter_description"><para>rectangle width</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>height</para></entry>
<entry role="parameter_description"><para>rectangle height</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-render-handle" role="function">
<title>gtk_render_handle&#160;()</title>
<indexterm zone="gtk-render-handle"><primary>gtk_render_handle</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_render_handle (<parameter><link linkend="GtkStyleContext"><type>GtkStyleContext</type></link> *context</parameter>,
                   <parameter><link linkend="cairo-t"><type>cairo_t</type></link> *cr</parameter>,
                   <parameter><link linkend="gdouble"><type>gdouble</type></link> x</parameter>,
                   <parameter><link linkend="gdouble"><type>gdouble</type></link> y</parameter>,
                   <parameter><link linkend="gdouble"><type>gdouble</type></link> width</parameter>,
                   <parameter><link linkend="gdouble"><type>gdouble</type></link> height</parameter>);</programlisting>
<para>Renders a handle (as in <link linkend="GtkPaned"><type>GtkPaned</type></link> and
<link linkend="GtkWindow"><type>GtkWindow</type></link>’s resize grip), in the rectangle
determined by <parameter>x</parameter>
, <parameter>y</parameter>
, <parameter>width</parameter>
, <parameter>height</parameter>
.</para>
<para>Handles rendered for the paned and grip classes:</para>
<para><inlinemediaobject><imageobject><imagedata fileref="handles.png"></imagedata></imageobject><textobject><phrase></phrase></textobject></inlinemediaobject></para>
<refsect3 id="gtk-render-handle.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>context</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkStyleContext"><type>GtkStyleContext</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>cr</para></entry>
<entry role="parameter_description"><para>a <link linkend="cairo-t"><type>cairo_t</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>x</para></entry>
<entry role="parameter_description"><para>X origin of the rectangle</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>y</para></entry>
<entry role="parameter_description"><para>Y origin of the rectangle</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>width</para></entry>
<entry role="parameter_description"><para>rectangle width</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>height</para></entry>
<entry role="parameter_description"><para>rectangle height</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-render-layout" role="function">
<title>gtk_render_layout&#160;()</title>
<indexterm zone="gtk-render-layout"><primary>gtk_render_layout</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_render_layout (<parameter><link linkend="GtkStyleContext"><type>GtkStyleContext</type></link> *context</parameter>,
                   <parameter><link linkend="cairo-t"><type>cairo_t</type></link> *cr</parameter>,
                   <parameter><link linkend="gdouble"><type>gdouble</type></link> x</parameter>,
                   <parameter><link linkend="gdouble"><type>gdouble</type></link> y</parameter>,
                   <parameter><link linkend="PangoLayout"><type>PangoLayout</type></link> *layout</parameter>);</programlisting>
<para>Renders <parameter>layout</parameter>
 on the coordinates <parameter>x</parameter>
, <parameter>y</parameter>
</para>
<refsect3 id="gtk-render-layout.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>context</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkStyleContext"><type>GtkStyleContext</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>cr</para></entry>
<entry role="parameter_description"><para>a <link linkend="cairo-t"><type>cairo_t</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>x</para></entry>
<entry role="parameter_description"><para>X origin</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>y</para></entry>
<entry role="parameter_description"><para>Y origin</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>layout</para></entry>
<entry role="parameter_description"><para>the <link linkend="PangoLayout"><type>PangoLayout</type></link> to render</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-render-line" role="function">
<title>gtk_render_line&#160;()</title>
<indexterm zone="gtk-render-line"><primary>gtk_render_line</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_render_line (<parameter><link linkend="GtkStyleContext"><type>GtkStyleContext</type></link> *context</parameter>,
                 <parameter><link linkend="cairo-t"><type>cairo_t</type></link> *cr</parameter>,
                 <parameter><link linkend="gdouble"><type>gdouble</type></link> x0</parameter>,
                 <parameter><link linkend="gdouble"><type>gdouble</type></link> y0</parameter>,
                 <parameter><link linkend="gdouble"><type>gdouble</type></link> x1</parameter>,
                 <parameter><link linkend="gdouble"><type>gdouble</type></link> y1</parameter>);</programlisting>
<para>Renders a line from (x0, y0) to (x1, y1).</para>
<refsect3 id="gtk-render-line.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>context</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkStyleContext"><type>GtkStyleContext</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>cr</para></entry>
<entry role="parameter_description"><para>a <link linkend="cairo-t"><type>cairo_t</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>x0</para></entry>
<entry role="parameter_description"><para>X coordinate for the origin of the line</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>y0</para></entry>
<entry role="parameter_description"><para>Y coordinate for the origin of the line</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>x1</para></entry>
<entry role="parameter_description"><para>X coordinate for the end of the line</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>y1</para></entry>
<entry role="parameter_description"><para>Y coordinate for the end of the line</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-render-option" role="function">
<title>gtk_render_option&#160;()</title>
<indexterm zone="gtk-render-option"><primary>gtk_render_option</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_render_option (<parameter><link linkend="GtkStyleContext"><type>GtkStyleContext</type></link> *context</parameter>,
                   <parameter><link linkend="cairo-t"><type>cairo_t</type></link> *cr</parameter>,
                   <parameter><link linkend="gdouble"><type>gdouble</type></link> x</parameter>,
                   <parameter><link linkend="gdouble"><type>gdouble</type></link> y</parameter>,
                   <parameter><link linkend="gdouble"><type>gdouble</type></link> width</parameter>,
                   <parameter><link linkend="gdouble"><type>gdouble</type></link> height</parameter>);</programlisting>
<para>Renders an option mark (as in a <link linkend="GtkRadioButton"><type>GtkRadioButton</type></link>), the <link linkend="GTK-STATE-FLAG-CHECKED:CAPS"><literal>GTK_STATE_FLAG_CHECKED</literal></link>
state will determine whether the option is on or off, and
<link linkend="GTK-STATE-FLAG-INCONSISTENT:CAPS"><literal>GTK_STATE_FLAG_INCONSISTENT</literal></link> whether it should be marked as undefined.</para>
<para>Typical option mark rendering:</para>
<para><inlinemediaobject><imageobject><imagedata fileref="options.png"></imagedata></imageobject><textobject><phrase></phrase></textobject></inlinemediaobject></para>
<refsect3 id="gtk-render-option.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>context</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkStyleContext"><type>GtkStyleContext</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>cr</para></entry>
<entry role="parameter_description"><para>a <link linkend="cairo-t"><type>cairo_t</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>x</para></entry>
<entry role="parameter_description"><para>X origin of the rectangle</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>y</para></entry>
<entry role="parameter_description"><para>Y origin of the rectangle</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>width</para></entry>
<entry role="parameter_description"><para>rectangle width</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>height</para></entry>
<entry role="parameter_description"><para>rectangle height</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-render-activity" role="function">
<title>gtk_render_activity&#160;()</title>
<indexterm zone="gtk-render-activity"><primary>gtk_render_activity</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_render_activity (<parameter><link linkend="GtkStyleContext"><type>GtkStyleContext</type></link> *context</parameter>,
                     <parameter><link linkend="cairo-t"><type>cairo_t</type></link> *cr</parameter>,
                     <parameter><link linkend="gdouble"><type>gdouble</type></link> x</parameter>,
                     <parameter><link linkend="gdouble"><type>gdouble</type></link> y</parameter>,
                     <parameter><link linkend="gdouble"><type>gdouble</type></link> width</parameter>,
                     <parameter><link linkend="gdouble"><type>gdouble</type></link> height</parameter>);</programlisting>
<para>Renders an activity indicator (such as in <link linkend="GtkSpinner"><type>GtkSpinner</type></link>).
The state <link linkend="GTK-STATE-FLAG-CHECKED:CAPS"><literal>GTK_STATE_FLAG_CHECKED</literal></link> determines whether there is
activity going on.</para>
<refsect3 id="gtk-render-activity.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>context</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkStyleContext"><type>GtkStyleContext</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>cr</para></entry>
<entry role="parameter_description"><para>a <link linkend="cairo-t"><type>cairo_t</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>x</para></entry>
<entry role="parameter_description"><para>X origin of the rectangle</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>y</para></entry>
<entry role="parameter_description"><para>Y origin of the rectangle</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>width</para></entry>
<entry role="parameter_description"><para>rectangle width</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>height</para></entry>
<entry role="parameter_description"><para>rectangle height</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-render-icon" role="function">
<title>gtk_render_icon&#160;()</title>
<indexterm zone="gtk-render-icon"><primary>gtk_render_icon</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_render_icon (<parameter><link linkend="GtkStyleContext"><type>GtkStyleContext</type></link> *context</parameter>,
                 <parameter><link linkend="cairo-t"><type>cairo_t</type></link> *cr</parameter>,
                 <parameter><link linkend="GdkTexture"><type>GdkTexture</type></link> *texture</parameter>,
                 <parameter><link linkend="gdouble"><type>gdouble</type></link> x</parameter>,
                 <parameter><link linkend="gdouble"><type>gdouble</type></link> y</parameter>);</programlisting>
<para>Renders the icon in <parameter>texture</parameter>
 at the specified <parameter>x</parameter>
 and <parameter>y</parameter>
 coordinates.</para>
<para>This function will render the icon in <parameter>texture</parameter>
 at exactly its size,
regardless of scaling factors, which may not be appropriate when
drawing on displays with high pixel densities.</para>
<refsect3 id="gtk-render-icon.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>context</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkStyleContext"><type>GtkStyleContext</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>cr</para></entry>
<entry role="parameter_description"><para>a <link linkend="cairo-t"><type>cairo_t</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>texture</para></entry>
<entry role="parameter_description"><para>a <link linkend="GdkTexture"><type>GdkTexture</type></link> containing the icon to draw</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>x</para></entry>
<entry role="parameter_description"><para>X position for the <parameter>texture</parameter>
</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>y</para></entry>
<entry role="parameter_description"><para>Y position for the <parameter>texture</parameter>
</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-render-insertion-cursor" role="function">
<title>gtk_render_insertion_cursor&#160;()</title>
<indexterm zone="gtk-render-insertion-cursor"><primary>gtk_render_insertion_cursor</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_render_insertion_cursor (<parameter><link linkend="GtkStyleContext"><type>GtkStyleContext</type></link> *context</parameter>,
                             <parameter><link linkend="cairo-t"><type>cairo_t</type></link> *cr</parameter>,
                             <parameter><link linkend="gdouble"><type>gdouble</type></link> x</parameter>,
                             <parameter><link linkend="gdouble"><type>gdouble</type></link> y</parameter>,
                             <parameter><link linkend="PangoLayout"><type>PangoLayout</type></link> *layout</parameter>,
                             <parameter><link linkend="int"><type>int</type></link> index</parameter>,
                             <parameter><link linkend="PangoDirection"><type>PangoDirection</type></link> direction</parameter>);</programlisting>
<para>Draws a text caret on <parameter>cr</parameter>
 at the specified index of <parameter>layout</parameter>
.</para>
<refsect3 id="gtk-render-insertion-cursor.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>context</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkStyleContext"><type>GtkStyleContext</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>cr</para></entry>
<entry role="parameter_description"><para>a <link linkend="cairo-t"><type>cairo_t</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>x</para></entry>
<entry role="parameter_description"><para>X origin</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>y</para></entry>
<entry role="parameter_description"><para>Y origin</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>layout</para></entry>
<entry role="parameter_description"><para>the <link linkend="PangoLayout"><type>PangoLayout</type></link> of the text</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>index</para></entry>
<entry role="parameter_description"><para>the index in the <link linkend="PangoLayout"><type>PangoLayout</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>direction</para></entry>
<entry role="parameter_description"><para>the <link linkend="PangoDirection"><type>PangoDirection</type></link> of the text</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>

</refsect1>
<refsect1 id="GtkStyleContext.other_details" role="details">
<title role="details.title">Types and Values</title>
<refsect2 id="GtkBorderStyle" role="enum">
<title>enum GtkBorderStyle</title>
<indexterm zone="GtkBorderStyle"><primary>GtkBorderStyle</primary></indexterm>
<para>Describes how the border of a UI element should be rendered.</para>
<refsect3 id="GtkBorderStyle.members" role="enum_members">
<title>Members</title>
<informaltable role="enum_members_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="enum_members_name" colwidth="300px"/>
<colspec colname="enum_members_description"/>
<colspec colname="enum_members_annotations" colwidth="200px"/>
<tbody>
<row role="constant"><entry role="enum_member_name"><para id="GTK-BORDER-STYLE-NONE:CAPS">GTK_BORDER_STYLE_NONE</para></entry>
<entry role="enum_member_description"><para>No visible border</para>
</entry>
<entry role="enum_member_annotations"></entry>
</row>
<row role="constant"><entry role="enum_member_name"><para id="GTK-BORDER-STYLE-HIDDEN:CAPS">GTK_BORDER_STYLE_HIDDEN</para></entry>
<entry role="enum_member_description"><para>Same as <parameter>GTK_BORDER_STYLE_NONE</parameter>
</para>
</entry>
<entry role="enum_member_annotations"></entry>
</row>
<row role="constant"><entry role="enum_member_name"><para id="GTK-BORDER-STYLE-SOLID:CAPS">GTK_BORDER_STYLE_SOLID</para></entry>
<entry role="enum_member_description"><para>A single line segment</para>
</entry>
<entry role="enum_member_annotations"></entry>
</row>
<row role="constant"><entry role="enum_member_name"><para id="GTK-BORDER-STYLE-INSET:CAPS">GTK_BORDER_STYLE_INSET</para></entry>
<entry role="enum_member_description"><para>Looks as if the content is sunken into the canvas</para>
</entry>
<entry role="enum_member_annotations"></entry>
</row>
<row role="constant"><entry role="enum_member_name"><para id="GTK-BORDER-STYLE-OUTSET:CAPS">GTK_BORDER_STYLE_OUTSET</para></entry>
<entry role="enum_member_description"><para>Looks as if the content is coming out of the canvas</para>
</entry>
<entry role="enum_member_annotations"></entry>
</row>
<row role="constant"><entry role="enum_member_name"><para id="GTK-BORDER-STYLE-DOTTED:CAPS">GTK_BORDER_STYLE_DOTTED</para></entry>
<entry role="enum_member_description"><para>A series of round dots</para>
</entry>
<entry role="enum_member_annotations"></entry>
</row>
<row role="constant"><entry role="enum_member_name"><para id="GTK-BORDER-STYLE-DASHED:CAPS">GTK_BORDER_STYLE_DASHED</para></entry>
<entry role="enum_member_description"><para>A series of square-ended dashes</para>
</entry>
<entry role="enum_member_annotations"></entry>
</row>
<row role="constant"><entry role="enum_member_name"><para id="GTK-BORDER-STYLE-DOUBLE:CAPS">GTK_BORDER_STYLE_DOUBLE</para></entry>
<entry role="enum_member_description"><para>Two parallel lines with some space between them</para>
</entry>
<entry role="enum_member_annotations"></entry>
</row>
<row role="constant"><entry role="enum_member_name"><para id="GTK-BORDER-STYLE-GROOVE:CAPS">GTK_BORDER_STYLE_GROOVE</para></entry>
<entry role="enum_member_description"><para>Looks as if it were carved in the canvas</para>
</entry>
<entry role="enum_member_annotations"></entry>
</row>
<row role="constant"><entry role="enum_member_name"><para id="GTK-BORDER-STYLE-RIDGE:CAPS">GTK_BORDER_STYLE_RIDGE</para></entry>
<entry role="enum_member_description"><para>Looks as if it were coming out of the canvas</para>
</entry>
<entry role="enum_member_annotations"></entry>
</row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="GTK-STYLE-CLASS-ACCELERATOR:CAPS" role="macro">
<title>GTK_STYLE_CLASS_ACCELERATOR</title>
<indexterm zone="GTK-STYLE-CLASS-ACCELERATOR:CAPS"><primary>GTK_STYLE_CLASS_ACCELERATOR</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_ACCELERATOR "accelerator"
</programlisting>
<para>A CSS class to match an accelerator.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-ARROW:CAPS" role="macro">
<title>GTK_STYLE_CLASS_ARROW</title>
<indexterm zone="GTK-STYLE-CLASS-ARROW:CAPS"><primary>GTK_STYLE_CLASS_ARROW</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_ARROW "arrow"
</programlisting>
<para>A CSS class used when rendering an arrow element.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-BACKGROUND:CAPS" role="macro">
<title>GTK_STYLE_CLASS_BACKGROUND</title>
<indexterm zone="GTK-STYLE-CLASS-BACKGROUND:CAPS"><primary>GTK_STYLE_CLASS_BACKGROUND</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_BACKGROUND "background"
</programlisting>
<para>A CSS class to match the window background.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-BOTTOM:CAPS" role="macro">
<title>GTK_STYLE_CLASS_BOTTOM</title>
<indexterm zone="GTK-STYLE-CLASS-BOTTOM:CAPS"><primary>GTK_STYLE_CLASS_BOTTOM</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_BOTTOM "bottom"
</programlisting>
<para>A CSS class to indicate an area at the bottom of a widget.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-BUTTON:CAPS" role="macro">
<title>GTK_STYLE_CLASS_BUTTON</title>
<indexterm zone="GTK-STYLE-CLASS-BUTTON:CAPS"><primary>GTK_STYLE_CLASS_BUTTON</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_BUTTON "button"
</programlisting>
<para>A CSS class to match buttons.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-CALENDAR:CAPS" role="macro">
<title>GTK_STYLE_CLASS_CALENDAR</title>
<indexterm zone="GTK-STYLE-CLASS-CALENDAR:CAPS"><primary>GTK_STYLE_CLASS_CALENDAR</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_CALENDAR "calendar"
</programlisting>
<para>A CSS class to match calendars.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-CELL:CAPS" role="macro">
<title>GTK_STYLE_CLASS_CELL</title>
<indexterm zone="GTK-STYLE-CLASS-CELL:CAPS"><primary>GTK_STYLE_CLASS_CELL</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_CELL "cell"
</programlisting>
<para>A CSS class to match content rendered in cell views.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-COMBOBOX-ENTRY:CAPS" role="macro">
<title>GTK_STYLE_CLASS_COMBOBOX_ENTRY</title>
<indexterm zone="GTK-STYLE-CLASS-COMBOBOX-ENTRY:CAPS"><primary>GTK_STYLE_CLASS_COMBOBOX_ENTRY</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_COMBOBOX_ENTRY "combobox-entry"
</programlisting>
<para>A CSS class to match combobox entries.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-CONTEXT-MENU:CAPS" role="macro">
<title>GTK_STYLE_CLASS_CONTEXT_MENU</title>
<indexterm zone="GTK-STYLE-CLASS-CONTEXT-MENU:CAPS"><primary>GTK_STYLE_CLASS_CONTEXT_MENU</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_CONTEXT_MENU "context-menu"
</programlisting>
<para>A CSS class to match context menus.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-CHECK:CAPS" role="macro">
<title>GTK_STYLE_CLASS_CHECK</title>
<indexterm zone="GTK-STYLE-CLASS-CHECK:CAPS"><primary>GTK_STYLE_CLASS_CHECK</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_CHECK "check"
</programlisting>
<para>A CSS class to match check boxes.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-CSD:CAPS" role="macro">
<title>GTK_STYLE_CLASS_CSD</title>
<indexterm zone="GTK-STYLE-CLASS-CSD:CAPS"><primary>GTK_STYLE_CLASS_CSD</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_CSD "csd"
</programlisting>
<para>A CSS class that gets added to windows which have client-side decorations.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-CURSOR-HANDLE:CAPS" role="macro">
<title>GTK_STYLE_CLASS_CURSOR_HANDLE</title>
<indexterm zone="GTK-STYLE-CLASS-CURSOR-HANDLE:CAPS"><primary>GTK_STYLE_CLASS_CURSOR_HANDLE</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_CURSOR_HANDLE "cursor-handle"
</programlisting>
<para>A CSS class used when rendering a drag handle for
text selection.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-DEFAULT:CAPS" role="macro">
<title>GTK_STYLE_CLASS_DEFAULT</title>
<indexterm zone="GTK-STYLE-CLASS-DEFAULT:CAPS"><primary>GTK_STYLE_CLASS_DEFAULT</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_DEFAULT "default"
</programlisting>
<para>A CSS class to match the default widget.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-DESTRUCTIVE-ACTION:CAPS" role="macro">
<title>GTK_STYLE_CLASS_DESTRUCTIVE_ACTION</title>
<indexterm zone="GTK-STYLE-CLASS-DESTRUCTIVE-ACTION:CAPS"><primary>GTK_STYLE_CLASS_DESTRUCTIVE_ACTION</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_DESTRUCTIVE_ACTION "destructive-action"
</programlisting>
<para>A CSS class used when an action (usually a button) is
one that is expected to remove or destroy something visible
to the user.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-DIM-LABEL:CAPS" role="macro">
<title>GTK_STYLE_CLASS_DIM_LABEL</title>
<indexterm zone="GTK-STYLE-CLASS-DIM-LABEL:CAPS"><primary>GTK_STYLE_CLASS_DIM_LABEL</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_DIM_LABEL "dim-label"
</programlisting>
<para>A CSS class to match dimmed labels.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-DND:CAPS" role="macro">
<title>GTK_STYLE_CLASS_DND</title>
<indexterm zone="GTK-STYLE-CLASS-DND:CAPS"><primary>GTK_STYLE_CLASS_DND</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_DND "dnd"
</programlisting>
<para>A CSS class for a drag-and-drop indicator.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-DOCK:CAPS" role="macro">
<title>GTK_STYLE_CLASS_DOCK</title>
<indexterm zone="GTK-STYLE-CLASS-DOCK:CAPS"><primary>GTK_STYLE_CLASS_DOCK</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_DOCK "dock"
</programlisting>
<para>A CSS class defining a dock area.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-ENTRY:CAPS" role="macro">
<title>GTK_STYLE_CLASS_ENTRY</title>
<indexterm zone="GTK-STYLE-CLASS-ENTRY:CAPS"><primary>GTK_STYLE_CLASS_ENTRY</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_ENTRY "entry"
</programlisting>
<para>A CSS class to match text entries.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-ERROR:CAPS" role="macro">
<title>GTK_STYLE_CLASS_ERROR</title>
<indexterm zone="GTK-STYLE-CLASS-ERROR:CAPS"><primary>GTK_STYLE_CLASS_ERROR</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_ERROR "error"
</programlisting>
<para>A CSS class for an area displaying an error message,
such as those in infobars.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-EXPANDER:CAPS" role="macro">
<title>GTK_STYLE_CLASS_EXPANDER</title>
<indexterm zone="GTK-STYLE-CLASS-EXPANDER:CAPS"><primary>GTK_STYLE_CLASS_EXPANDER</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_EXPANDER "expander"
</programlisting>
<para>A CSS class defining an expander, such as those in treeviews.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-FRAME:CAPS" role="macro">
<title>GTK_STYLE_CLASS_FRAME</title>
<indexterm zone="GTK-STYLE-CLASS-FRAME:CAPS"><primary>GTK_STYLE_CLASS_FRAME</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_FRAME "frame"
</programlisting>
<para>A CSS class defining a frame delimiting content, such as
<link linkend="GtkFrame"><type>GtkFrame</type></link> or the scrolled window frame around the
scrollable area.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-FLAT:CAPS" role="macro">
<title>GTK_STYLE_CLASS_FLAT</title>
<indexterm zone="GTK-STYLE-CLASS-FLAT:CAPS"><primary>GTK_STYLE_CLASS_FLAT</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_FLAT "flat"
</programlisting>
<para>A CSS class that is added when widgets that usually have
a frame or border (like buttons or entries) should appear
without it.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-HEADER:CAPS" role="macro">
<title>GTK_STYLE_CLASS_HEADER</title>
<indexterm zone="GTK-STYLE-CLASS-HEADER:CAPS"><primary>GTK_STYLE_CLASS_HEADER</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_HEADER "header"
</programlisting>
<para>A CSS class to match a header element.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-HIGHLIGHT:CAPS" role="macro">
<title>GTK_STYLE_CLASS_HIGHLIGHT</title>
<indexterm zone="GTK-STYLE-CLASS-HIGHLIGHT:CAPS"><primary>GTK_STYLE_CLASS_HIGHLIGHT</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_HIGHLIGHT "highlight"
</programlisting>
<para>A CSS class defining a highlighted area, such as headings in
assistants and calendars.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-HORIZONTAL:CAPS" role="macro">
<title>GTK_STYLE_CLASS_HORIZONTAL</title>
<indexterm zone="GTK-STYLE-CLASS-HORIZONTAL:CAPS"><primary>GTK_STYLE_CLASS_HORIZONTAL</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_HORIZONTAL "horizontal"
</programlisting>
<para>A CSS class for horizontally layered widgets.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-IMAGE:CAPS" role="macro">
<title>GTK_STYLE_CLASS_IMAGE</title>
<indexterm zone="GTK-STYLE-CLASS-IMAGE:CAPS"><primary>GTK_STYLE_CLASS_IMAGE</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_IMAGE "image"
</programlisting>
<para>A CSS class defining an image, such as the icon in an entry.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-INFO:CAPS" role="macro">
<title>GTK_STYLE_CLASS_INFO</title>
<indexterm zone="GTK-STYLE-CLASS-INFO:CAPS"><primary>GTK_STYLE_CLASS_INFO</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_INFO "info"
</programlisting>
<para>A CSS class for an area displaying an informational message,
such as those in infobars.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-INSERTION-CURSOR:CAPS" role="macro">
<title>GTK_STYLE_CLASS_INSERTION_CURSOR</title>
<indexterm zone="GTK-STYLE-CLASS-INSERTION-CURSOR:CAPS"><primary>GTK_STYLE_CLASS_INSERTION_CURSOR</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_INSERTION_CURSOR "insertion-cursor"
</programlisting>
<para>A CSS class used when rendering a drag handle for
the insertion cursor position.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-LABEL:CAPS" role="macro">
<title>GTK_STYLE_CLASS_LABEL</title>
<indexterm zone="GTK-STYLE-CLASS-LABEL:CAPS"><primary>GTK_STYLE_CLASS_LABEL</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_LABEL "label"
</programlisting>
<para>A CSS class to match labels.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-LEFT:CAPS" role="macro">
<title>GTK_STYLE_CLASS_LEFT</title>
<indexterm zone="GTK-STYLE-CLASS-LEFT:CAPS"><primary>GTK_STYLE_CLASS_LEFT</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_LEFT "left"
</programlisting>
<para>A CSS class to indicate an area at the left of a widget.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-LEVEL-BAR:CAPS" role="macro">
<title>GTK_STYLE_CLASS_LEVEL_BAR</title>
<indexterm zone="GTK-STYLE-CLASS-LEVEL-BAR:CAPS"><primary>GTK_STYLE_CLASS_LEVEL_BAR</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_LEVEL_BAR "level-bar"
</programlisting>
<para>A CSS class used when rendering a level indicator, such
as a battery charge level, or a password strength.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-LINKED:CAPS" role="macro">
<title>GTK_STYLE_CLASS_LINKED</title>
<indexterm zone="GTK-STYLE-CLASS-LINKED:CAPS"><primary>GTK_STYLE_CLASS_LINKED</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_LINKED "linked"
</programlisting>
<para>A CSS class to match a linked area, such as a box containing buttons
belonging to the same control.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-LIST:CAPS" role="macro">
<title>GTK_STYLE_CLASS_LIST</title>
<indexterm zone="GTK-STYLE-CLASS-LIST:CAPS"><primary>GTK_STYLE_CLASS_LIST</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_LIST "list"
</programlisting>
<para>A CSS class to match lists.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-LIST-ROW:CAPS" role="macro">
<title>GTK_STYLE_CLASS_LIST_ROW</title>
<indexterm zone="GTK-STYLE-CLASS-LIST-ROW:CAPS"><primary>GTK_STYLE_CLASS_LIST_ROW</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_LIST_ROW "list-row"
</programlisting>
<para>A CSS class to match list rows.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-MARK:CAPS" role="macro">
<title>GTK_STYLE_CLASS_MARK</title>
<indexterm zone="GTK-STYLE-CLASS-MARK:CAPS"><primary>GTK_STYLE_CLASS_MARK</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_MARK "mark"
</programlisting>
<para>A CSS class defining marks in a widget, such as in scales.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-MENU:CAPS" role="macro">
<title>GTK_STYLE_CLASS_MENU</title>
<indexterm zone="GTK-STYLE-CLASS-MENU:CAPS"><primary>GTK_STYLE_CLASS_MENU</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_MENU "menu"
</programlisting>
<para>A CSS class to match menus.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-MENUBAR:CAPS" role="macro">
<title>GTK_STYLE_CLASS_MENUBAR</title>
<indexterm zone="GTK-STYLE-CLASS-MENUBAR:CAPS"><primary>GTK_STYLE_CLASS_MENUBAR</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_MENUBAR "menubar"
</programlisting>
<para>A CSS class to menubars.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-MENUITEM:CAPS" role="macro">
<title>GTK_STYLE_CLASS_MENUITEM</title>
<indexterm zone="GTK-STYLE-CLASS-MENUITEM:CAPS"><primary>GTK_STYLE_CLASS_MENUITEM</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_MENUITEM "menuitem"
</programlisting>
<para>A CSS class to match menu items.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-MESSAGE-DIALOG:CAPS" role="macro">
<title>GTK_STYLE_CLASS_MESSAGE_DIALOG</title>
<indexterm zone="GTK-STYLE-CLASS-MESSAGE-DIALOG:CAPS"><primary>GTK_STYLE_CLASS_MESSAGE_DIALOG</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_MESSAGE_DIALOG "message-dialog"
</programlisting>
<para>A CSS class that is added to message dialogs.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-MONOSPACE:CAPS" role="macro">
<title>GTK_STYLE_CLASS_MONOSPACE</title>
<indexterm zone="GTK-STYLE-CLASS-MONOSPACE:CAPS"><primary>GTK_STYLE_CLASS_MONOSPACE</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_MONOSPACE "monospace"
</programlisting>
<para>A CSS class that is added to text view that should use
a monospace font.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-NEEDS-ATTENTION:CAPS" role="macro">
<title>GTK_STYLE_CLASS_NEEDS_ATTENTION</title>
<indexterm zone="GTK-STYLE-CLASS-NEEDS-ATTENTION:CAPS"><primary>GTK_STYLE_CLASS_NEEDS_ATTENTION</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_NEEDS_ATTENTION "needs-attention"
</programlisting>
<para>A CSS class used when an element needs the user attention,
for instance a button in a stack switcher corresponding to
a hidden page that changed state.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-NOTEBOOK:CAPS" role="macro">
<title>GTK_STYLE_CLASS_NOTEBOOK</title>
<indexterm zone="GTK-STYLE-CLASS-NOTEBOOK:CAPS"><primary>GTK_STYLE_CLASS_NOTEBOOK</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_NOTEBOOK "notebook"
</programlisting>
<para>A CSS class defining a notebook.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-OSD:CAPS" role="macro">
<title>GTK_STYLE_CLASS_OSD</title>
<indexterm zone="GTK-STYLE-CLASS-OSD:CAPS"><primary>GTK_STYLE_CLASS_OSD</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_OSD "osd"
</programlisting>
<para>A CSS class used when rendering an OSD (On Screen Display) element,
on top of another container.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-OVERSHOOT:CAPS" role="macro">
<title>GTK_STYLE_CLASS_OVERSHOOT</title>
<indexterm zone="GTK-STYLE-CLASS-OVERSHOOT:CAPS"><primary>GTK_STYLE_CLASS_OVERSHOOT</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_OVERSHOOT "overshoot"
</programlisting>
<para>A CSS class that is added on the visual hints that happen
when scrolling is attempted past the limits of a scrollable
area.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-PANE-SEPARATOR:CAPS" role="macro">
<title>GTK_STYLE_CLASS_PANE_SEPARATOR</title>
<indexterm zone="GTK-STYLE-CLASS-PANE-SEPARATOR:CAPS"><primary>GTK_STYLE_CLASS_PANE_SEPARATOR</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_PANE_SEPARATOR "pane-separator"
</programlisting>
<para>A CSS class for a pane separator, such as those in <link linkend="GtkPaned"><type>GtkPaned</type></link>.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-PAPER:CAPS" role="macro">
<title>GTK_STYLE_CLASS_PAPER</title>
<indexterm zone="GTK-STYLE-CLASS-PAPER:CAPS"><primary>GTK_STYLE_CLASS_PAPER</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_PAPER "paper"
</programlisting>
<para>A CSS class that is added to areas that should look like paper.</para>
<para>This is used in print previews and themes are encouraged to
style it as black text on white background.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-POPUP:CAPS" role="macro">
<title>GTK_STYLE_CLASS_POPUP</title>
<indexterm zone="GTK-STYLE-CLASS-POPUP:CAPS"><primary>GTK_STYLE_CLASS_POPUP</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_POPUP "popup"
</programlisting>
<para>A CSS class that is added to the toplevel windows used for menus.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-POPOVER:CAPS" role="macro">
<title>GTK_STYLE_CLASS_POPOVER</title>
<indexterm zone="GTK-STYLE-CLASS-POPOVER:CAPS"><primary>GTK_STYLE_CLASS_POPOVER</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_POPOVER "popover"
</programlisting>
<para>A CSS class that matches popovers.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-PROGRESSBAR:CAPS" role="macro">
<title>GTK_STYLE_CLASS_PROGRESSBAR</title>
<indexterm zone="GTK-STYLE-CLASS-PROGRESSBAR:CAPS"><primary>GTK_STYLE_CLASS_PROGRESSBAR</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_PROGRESSBAR "progressbar"
</programlisting>
<para>A CSS class to use when rendering activity as a progressbar.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-PULSE:CAPS" role="macro">
<title>GTK_STYLE_CLASS_PULSE</title>
<indexterm zone="GTK-STYLE-CLASS-PULSE:CAPS"><primary>GTK_STYLE_CLASS_PULSE</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_PULSE "pulse"
</programlisting>
<para>A CSS class to use when rendering a pulse in an indeterminate progress bar.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-QUESTION:CAPS" role="macro">
<title>GTK_STYLE_CLASS_QUESTION</title>
<indexterm zone="GTK-STYLE-CLASS-QUESTION:CAPS"><primary>GTK_STYLE_CLASS_QUESTION</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_QUESTION "question"
</programlisting>
<para>A CSS class for an area displaying a question to the user,
such as those in infobars.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-RADIO:CAPS" role="macro">
<title>GTK_STYLE_CLASS_RADIO</title>
<indexterm zone="GTK-STYLE-CLASS-RADIO:CAPS"><primary>GTK_STYLE_CLASS_RADIO</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_RADIO "radio"
</programlisting>
<para>A CSS class to match radio buttons.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-RAISED:CAPS" role="macro">
<title>GTK_STYLE_CLASS_RAISED</title>
<indexterm zone="GTK-STYLE-CLASS-RAISED:CAPS"><primary>GTK_STYLE_CLASS_RAISED</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_RAISED "raised"
</programlisting>
<para>A CSS class to match a raised control, such as a raised
button on a toolbar.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-READ-ONLY:CAPS" role="macro">
<title>GTK_STYLE_CLASS_READ_ONLY</title>
<indexterm zone="GTK-STYLE-CLASS-READ-ONLY:CAPS"><primary>GTK_STYLE_CLASS_READ_ONLY</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_READ_ONLY "read-only"
</programlisting>
<para>A CSS class used to indicate a read-only state.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-RIGHT:CAPS" role="macro">
<title>GTK_STYLE_CLASS_RIGHT</title>
<indexterm zone="GTK-STYLE-CLASS-RIGHT:CAPS"><primary>GTK_STYLE_CLASS_RIGHT</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_RIGHT "right"
</programlisting>
<para>A CSS class to indicate an area at the right of a widget.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-RUBBERBAND:CAPS" role="macro">
<title>GTK_STYLE_CLASS_RUBBERBAND</title>
<indexterm zone="GTK-STYLE-CLASS-RUBBERBAND:CAPS"><primary>GTK_STYLE_CLASS_RUBBERBAND</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_RUBBERBAND "rubberband"
</programlisting>
<para>A CSS class to match the rubberband selection rectangle.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-SCALE:CAPS" role="macro">
<title>GTK_STYLE_CLASS_SCALE</title>
<indexterm zone="GTK-STYLE-CLASS-SCALE:CAPS"><primary>GTK_STYLE_CLASS_SCALE</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_SCALE "scale"
</programlisting>
<para>A CSS class to match scale widgets.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-SCALE-HAS-MARKS-ABOVE:CAPS" role="macro">
<title>GTK_STYLE_CLASS_SCALE_HAS_MARKS_ABOVE</title>
<indexterm zone="GTK-STYLE-CLASS-SCALE-HAS-MARKS-ABOVE:CAPS"><primary>GTK_STYLE_CLASS_SCALE_HAS_MARKS_ABOVE</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_SCALE_HAS_MARKS_ABOVE "scale-has-marks-above"
</programlisting>
<para>A CSS class to match scale widgets with marks attached,
all the marks are above for horizontal <link linkend="GtkScale"><type>GtkScale</type></link>.
left for vertical <link linkend="GtkScale"><type>GtkScale</type></link>.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-SCALE-HAS-MARKS-BELOW:CAPS" role="macro">
<title>GTK_STYLE_CLASS_SCALE_HAS_MARKS_BELOW</title>
<indexterm zone="GTK-STYLE-CLASS-SCALE-HAS-MARKS-BELOW:CAPS"><primary>GTK_STYLE_CLASS_SCALE_HAS_MARKS_BELOW</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_SCALE_HAS_MARKS_BELOW "scale-has-marks-below"
</programlisting>
<para>A CSS class to match scale widgets with marks attached,
all the marks are below for horizontal <link linkend="GtkScale"><type>GtkScale</type></link>,
right for vertical <link linkend="GtkScale"><type>GtkScale</type></link>.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-SCROLLBAR:CAPS" role="macro">
<title>GTK_STYLE_CLASS_SCROLLBAR</title>
<indexterm zone="GTK-STYLE-CLASS-SCROLLBAR:CAPS"><primary>GTK_STYLE_CLASS_SCROLLBAR</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_SCROLLBAR "scrollbar"
</programlisting>
<para>A CSS class to match scrollbars.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-SCROLLBARS-JUNCTION:CAPS" role="macro">
<title>GTK_STYLE_CLASS_SCROLLBARS_JUNCTION</title>
<indexterm zone="GTK-STYLE-CLASS-SCROLLBARS-JUNCTION:CAPS"><primary>GTK_STYLE_CLASS_SCROLLBARS_JUNCTION</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_SCROLLBARS_JUNCTION "scrollbars-junction"
</programlisting>
<para>A CSS class to match the junction area between a horizontal
and vertical scrollbar, when they’re both shown.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-SEPARATOR:CAPS" role="macro">
<title>GTK_STYLE_CLASS_SEPARATOR</title>
<indexterm zone="GTK-STYLE-CLASS-SEPARATOR:CAPS"><primary>GTK_STYLE_CLASS_SEPARATOR</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_SEPARATOR "separator"
</programlisting>
<para>A CSS class for a separator.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-SIDEBAR:CAPS" role="macro">
<title>GTK_STYLE_CLASS_SIDEBAR</title>
<indexterm zone="GTK-STYLE-CLASS-SIDEBAR:CAPS"><primary>GTK_STYLE_CLASS_SIDEBAR</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_SIDEBAR "sidebar"
</programlisting>
<para>A CSS class defining a sidebar, such as the left side in
a file chooser.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-SLIDER:CAPS" role="macro">
<title>GTK_STYLE_CLASS_SLIDER</title>
<indexterm zone="GTK-STYLE-CLASS-SLIDER:CAPS"><primary>GTK_STYLE_CLASS_SLIDER</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_SLIDER "slider"
</programlisting>
<para>A CSS class to match sliders.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-SPINBUTTON:CAPS" role="macro">
<title>GTK_STYLE_CLASS_SPINBUTTON</title>
<indexterm zone="GTK-STYLE-CLASS-SPINBUTTON:CAPS"><primary>GTK_STYLE_CLASS_SPINBUTTON</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_SPINBUTTON "spinbutton"
</programlisting>
<para>A CSS class defining a spinbutton.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-SPINNER:CAPS" role="macro">
<title>GTK_STYLE_CLASS_SPINNER</title>
<indexterm zone="GTK-STYLE-CLASS-SPINNER:CAPS"><primary>GTK_STYLE_CLASS_SPINNER</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_SPINNER "spinner"
</programlisting>
<para>A CSS class to use when rendering activity as a “spinner”.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-STATUSBAR:CAPS" role="macro">
<title>GTK_STYLE_CLASS_STATUSBAR</title>
<indexterm zone="GTK-STYLE-CLASS-STATUSBAR:CAPS"><primary>GTK_STYLE_CLASS_STATUSBAR</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_STATUSBAR "statusbar"
</programlisting>
<para>A CSS class to match statusbars.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-SUBTITLE:CAPS" role="macro">
<title>GTK_STYLE_CLASS_SUBTITLE</title>
<indexterm zone="GTK-STYLE-CLASS-SUBTITLE:CAPS"><primary>GTK_STYLE_CLASS_SUBTITLE</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_SUBTITLE "subtitle"
</programlisting>
<para>A CSS class used for the subtitle label in a titlebar in
a toplevel window.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-SUGGESTED-ACTION:CAPS" role="macro">
<title>GTK_STYLE_CLASS_SUGGESTED_ACTION</title>
<indexterm zone="GTK-STYLE-CLASS-SUGGESTED-ACTION:CAPS"><primary>GTK_STYLE_CLASS_SUGGESTED_ACTION</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_SUGGESTED_ACTION "suggested-action"
</programlisting>
<para>A CSS class used when an action (usually a button) is the
primary suggested action in a specific context.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-TITLE:CAPS" role="macro">
<title>GTK_STYLE_CLASS_TITLE</title>
<indexterm zone="GTK-STYLE-CLASS-TITLE:CAPS"><primary>GTK_STYLE_CLASS_TITLE</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_TITLE "title"
</programlisting>
<para>A CSS class used for the title label in a titlebar in
a toplevel window.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-TITLEBAR:CAPS" role="macro">
<title>GTK_STYLE_CLASS_TITLEBAR</title>
<indexterm zone="GTK-STYLE-CLASS-TITLEBAR:CAPS"><primary>GTK_STYLE_CLASS_TITLEBAR</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_TITLEBAR "titlebar"
</programlisting>
<para>A CSS class used when rendering a titlebar in a toplevel window.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-TOOLBAR:CAPS" role="macro">
<title>GTK_STYLE_CLASS_TOOLBAR</title>
<indexterm zone="GTK-STYLE-CLASS-TOOLBAR:CAPS"><primary>GTK_STYLE_CLASS_TOOLBAR</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_TOOLBAR "toolbar"
</programlisting>
<para>A CSS class to match toolbars.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-TOOLTIP:CAPS" role="macro">
<title>GTK_STYLE_CLASS_TOOLTIP</title>
<indexterm zone="GTK-STYLE-CLASS-TOOLTIP:CAPS"><primary>GTK_STYLE_CLASS_TOOLTIP</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_TOOLTIP "tooltip"
</programlisting>
<para>A CSS class to match tooltip windows.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-TOUCH-SELECTION:CAPS" role="macro">
<title>GTK_STYLE_CLASS_TOUCH_SELECTION</title>
<indexterm zone="GTK-STYLE-CLASS-TOUCH-SELECTION:CAPS"><primary>GTK_STYLE_CLASS_TOUCH_SELECTION</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_TOUCH_SELECTION "touch-selection"
</programlisting>
<para>A CSS class for touch selection popups on entries
and text views.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-TOP:CAPS" role="macro">
<title>GTK_STYLE_CLASS_TOP</title>
<indexterm zone="GTK-STYLE-CLASS-TOP:CAPS"><primary>GTK_STYLE_CLASS_TOP</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_TOP "top"
</programlisting>
<para>A CSS class to indicate an area at the top of a widget.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-TROUGH:CAPS" role="macro">
<title>GTK_STYLE_CLASS_TROUGH</title>
<indexterm zone="GTK-STYLE-CLASS-TROUGH:CAPS"><primary>GTK_STYLE_CLASS_TROUGH</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_TROUGH "trough"
</programlisting>
<para>A CSS class to match troughs, as in scrollbars and progressbars.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-UNDERSHOOT:CAPS" role="macro">
<title>GTK_STYLE_CLASS_UNDERSHOOT</title>
<indexterm zone="GTK-STYLE-CLASS-UNDERSHOOT:CAPS"><primary>GTK_STYLE_CLASS_UNDERSHOOT</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_UNDERSHOOT "undershoot"
</programlisting>
<para>A CSS class that is added on the visual hints that happen
where content is 'scrolled off' and can be made visible
by scrolling.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-VERTICAL:CAPS" role="macro">
<title>GTK_STYLE_CLASS_VERTICAL</title>
<indexterm zone="GTK-STYLE-CLASS-VERTICAL:CAPS"><primary>GTK_STYLE_CLASS_VERTICAL</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_VERTICAL "vertical"
</programlisting>
<para>A CSS class for vertically layered widgets.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-VIEW:CAPS" role="macro">
<title>GTK_STYLE_CLASS_VIEW</title>
<indexterm zone="GTK-STYLE-CLASS-VIEW:CAPS"><primary>GTK_STYLE_CLASS_VIEW</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_VIEW "view"
</programlisting>
<para>A CSS class defining a view, such as iconviews or treeviews.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-WARNING:CAPS" role="macro">
<title>GTK_STYLE_CLASS_WARNING</title>
<indexterm zone="GTK-STYLE-CLASS-WARNING:CAPS"><primary>GTK_STYLE_CLASS_WARNING</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_WARNING "warning"
</programlisting>
<para>A CSS class for an area displaying a warning message,
such as those in infobars.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GTK-STYLE-CLASS-WIDE:CAPS" role="macro">
<title>GTK_STYLE_CLASS_WIDE</title>
<indexterm zone="GTK-STYLE-CLASS-WIDE:CAPS"><primary>GTK_STYLE_CLASS_WIDE</primary></indexterm>
<programlisting language="C">#define GTK_STYLE_CLASS_WIDE "wide"
</programlisting>
<para>A CSS class to indicate that a UI element should be 'wide'.
Used by <link linkend="GtkPaned"><type>GtkPaned</type></link>.</para>
<para>Refer to individual widget documentation for used style classes.</para>
</refsect2>
<refsect2 id="GtkStyleContext-struct" role="struct">
<title>GtkStyleContext</title>
<indexterm zone="GtkStyleContext-struct"><primary>GtkStyleContext</primary></indexterm>
<programlisting language="C">typedef struct _GtkStyleContext GtkStyleContext;</programlisting>
</refsect2>
<refsect2 id="GtkStyleContextPrintFlags" role="enum">
<title>enum GtkStyleContextPrintFlags</title>
<indexterm zone="GtkStyleContextPrintFlags"><primary>GtkStyleContextPrintFlags</primary></indexterm>
<para>Flags that modify the behavior of <link linkend="gtk-style-context-to-string"><function>gtk_style_context_to_string()</function></link>.
New values may be added to this enumeration.</para>
<refsect3 id="GtkStyleContextPrintFlags.members" role="enum_members">
<title>Members</title>
<informaltable role="enum_members_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="enum_members_name" colwidth="300px"/>
<colspec colname="enum_members_description"/>
<colspec colname="enum_members_annotations" colwidth="200px"/>
<tbody>
<row role="constant"><entry role="enum_member_name"><para id="GTK-STYLE-CONTEXT-PRINT-NONE:CAPS">GTK_STYLE_CONTEXT_PRINT_NONE</para></entry>
<entry role="enum_member_description"><para>Default value.</para>
</entry>
<entry role="enum_member_annotations"></entry>
</row>
<row role="constant"><entry role="enum_member_name"><para id="GTK-STYLE-CONTEXT-PRINT-RECURSE:CAPS">GTK_STYLE_CONTEXT_PRINT_RECURSE</para></entry>
<entry role="enum_member_description"><para>Print the entire tree of
CSS nodes starting at the style context's node</para>
</entry>
<entry role="enum_member_annotations"></entry>
</row>
<row role="constant"><entry role="enum_member_name"><para id="GTK-STYLE-CONTEXT-PRINT-SHOW-STYLE:CAPS">GTK_STYLE_CONTEXT_PRINT_SHOW_STYLE</para></entry>
<entry role="enum_member_description"><para>Show the values of the
CSS properties for each node</para>
</entry>
<entry role="enum_member_annotations"></entry>
</row>
<row role="constant"><entry role="enum_member_name"><para id="GTK-STYLE-CONTEXT-PRINT-SHOW-CHANGE:CAPS">GTK_STYLE_CONTEXT_PRINT_SHOW_CHANGE</para></entry>
<entry role="enum_member_description"><para>Show information about

what changes affect the styles</para>
</entry>
<entry role="enum_member_annotations"></entry>
</row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="GtkBorder" role="struct">
<title>struct GtkBorder</title>
<indexterm zone="GtkBorder"><primary>GtkBorder</primary></indexterm>
<programlisting language="C">struct GtkBorder {
  gint16 left;
  gint16 right;
  gint16 top;
  gint16 bottom;
};
</programlisting>
<para>A struct that specifies a border around a rectangular area
that can be of different width on each side.</para>
<refsect3 id="GtkBorder.members" role="struct_members">
<title>Members</title>
<informaltable role="struct_members_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="struct_members_name" colwidth="300px"/>
<colspec colname="struct_members_description"/>
<colspec colname="struct_members_annotations" colwidth="200px"/>
<tbody>
<row role="member"><entry role="struct_member_name"><para><link linkend="gint16"><type>gint16</type></link>&#160;<structfield id="GtkBorder.left">left</structfield>;</para></entry>
<entry role="struct_member_description"><para>The width of the left border</para></entry>
<entry role="struct_member_annotations"></entry>
</row>
<row role="member"><entry role="struct_member_name"><para><link linkend="gint16"><type>gint16</type></link>&#160;<structfield id="GtkBorder.right">right</structfield>;</para></entry>
<entry role="struct_member_description"><para>The width of the right border</para></entry>
<entry role="struct_member_annotations"></entry>
</row>
<row role="member"><entry role="struct_member_name"><para><link linkend="gint16"><type>gint16</type></link>&#160;<structfield id="GtkBorder.top">top</structfield>;</para></entry>
<entry role="struct_member_description"><para>The width of the top border</para></entry>
<entry role="struct_member_annotations"></entry>
</row>
<row role="member"><entry role="struct_member_name"><para><link linkend="gint16"><type>gint16</type></link>&#160;<structfield id="GtkBorder.bottom">bottom</structfield>;</para></entry>
<entry role="struct_member_description"><para>The width of the bottom border</para></entry>
<entry role="struct_member_annotations"></entry>
</row>
</tbody></tgroup></informaltable>
</refsect3>
</refsect2>

</refsect1>
<refsect1 id="GtkStyleContext.property-details" role="property_details">
<title role="property_details.title">Property Details</title>
<refsect2 id="GtkStyleContext--display" role="property"><title>The <literal>“display”</literal> property</title>
<indexterm zone="GtkStyleContext--display"><primary>GtkStyleContext:display</primary></indexterm>
<programlisting>  “display”                  <link linkend="GdkDisplay"><type>GdkDisplay</type></link>&#160;*</programlisting>
<para>The associated GdkDisplay.</para><para>Owner: GtkStyleContext</para>
<para>Flags: Read / Write</para>
</refsect2>

</refsect1>

</refentry>
