diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2018-08-20 21:12:06 -0400 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2018-08-20 21:12:06 -0400 |
commit | 63e87c2d0c9d263f14c77b68f85c67d46ece82a9 (patch) | |
tree | 6260365cbf7d24f37d27669e8538227fcb72e243 /gtk+-mingw/share/gtk-doc/html/gtk3/GtkStyleContext.html | |
parent | a4460f6d9453bbd7e584937686449cef3e19f052 (diff) |
Diffstat (limited to 'gtk+-mingw/share/gtk-doc/html/gtk3/GtkStyleContext.html')
-rw-r--r-- | gtk+-mingw/share/gtk-doc/html/gtk3/GtkStyleContext.html | 4261 |
1 files changed, 0 insertions, 4261 deletions
diff --git a/gtk+-mingw/share/gtk-doc/html/gtk3/GtkStyleContext.html b/gtk+-mingw/share/gtk-doc/html/gtk3/GtkStyleContext.html deleted file mode 100644 index a356041..0000000 --- a/gtk+-mingw/share/gtk-doc/html/gtk3/GtkStyleContext.html +++ /dev/null @@ -1,4261 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> -<html> -<head> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> -<title>GtkStyleContext</title> -<meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> -<link rel="home" href="index.html" title="GTK+ 3 Reference Manual"> -<link rel="up" href="theming.html" title="Part III. Theming in GTK+"> -<link rel="prev" href="theming.html" title="Part III. Theming in GTK+"> -<link rel="next" href="GtkCssProvider.html" title="GtkCssProvider"> -<meta name="generator" content="GTK-Doc V1.18.1 (XML mode)"> -<link rel="stylesheet" href="style.css" type="text/css"> -</head> -<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> -<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"> -<tr valign="middle"> -<td><a accesskey="p" href="theming.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td> -<td><a accesskey="u" href="theming.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td> -<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td> -<th width="100%" align="center">GTK+ 3 Reference Manual</th> -<td><a accesskey="n" href="GtkCssProvider.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td> -</tr> -<tr><td colspan="5" class="shortcuts"> -<a href="#GtkStyleContext.synopsis" class="shortcut">Top</a> - | - <a href="#GtkStyleContext.description" class="shortcut">Description</a> - | - <a href="#GtkStyleContext.object-hierarchy" class="shortcut">Object Hierarchy</a> - | - <a href="#GtkStyleContext.properties" class="shortcut">Properties</a> - | - <a href="#GtkStyleContext.signals" class="shortcut">Signals</a> -</td></tr> -</table> -<div class="refentry"> -<a name="GtkStyleContext"></a><div class="titlepage"></div> -<div class="refnamediv"><table width="100%"><tr> -<td valign="top"> -<h2><span class="refentrytitle"><a name="GtkStyleContext.top_of_page"></a>GtkStyleContext</span></h2> -<p>GtkStyleContext — Rendering UI elements</p> -</td> -<td valign="top" align="right"></td> -</tr></table></div> -<div class="refsynopsisdiv"> -<a name="GtkStyleContext.synopsis"></a><h2>Synopsis</h2> -<a name="GtkBorder"></a><pre class="synopsis"> -#include <gtk/gtk.h> - -#define <a class="link" href="GtkStyleContext.html#GTK-STYLE-PROPERTY-BACKGROUND-COLOR:CAPS" title="GTK_STYLE_PROPERTY_BACKGROUND_COLOR">GTK_STYLE_PROPERTY_BACKGROUND_COLOR</a> -#define <a class="link" href="GtkStyleContext.html#GTK-STYLE-PROPERTY-COLOR:CAPS" title="GTK_STYLE_PROPERTY_COLOR">GTK_STYLE_PROPERTY_COLOR</a> -#define <a class="link" href="GtkStyleContext.html#GTK-STYLE-PROPERTY-FONT:CAPS" title="GTK_STYLE_PROPERTY_FONT">GTK_STYLE_PROPERTY_FONT</a> -#define <a class="link" href="GtkStyleContext.html#GTK-STYLE-PROPERTY-MARGIN:CAPS" title="GTK_STYLE_PROPERTY_MARGIN">GTK_STYLE_PROPERTY_MARGIN</a> -#define <a class="link" href="GtkStyleContext.html#GTK-STYLE-PROPERTY-PADDING:CAPS" title="GTK_STYLE_PROPERTY_PADDING">GTK_STYLE_PROPERTY_PADDING</a> -#define <a class="link" href="GtkStyleContext.html#GTK-STYLE-PROPERTY-BORDER-WIDTH:CAPS" title="GTK_STYLE_PROPERTY_BORDER_WIDTH">GTK_STYLE_PROPERTY_BORDER_WIDTH</a> -#define <a class="link" href="GtkStyleContext.html#GTK-STYLE-PROPERTY-BORDER-RADIUS:CAPS" title="GTK_STYLE_PROPERTY_BORDER_RADIUS">GTK_STYLE_PROPERTY_BORDER_RADIUS</a> -#define <a class="link" href="GtkStyleContext.html#GTK-STYLE-PROPERTY-BORDER-STYLE:CAPS" title="GTK_STYLE_PROPERTY_BORDER_STYLE">GTK_STYLE_PROPERTY_BORDER_STYLE</a> -#define <a class="link" href="GtkStyleContext.html#GTK-STYLE-PROPERTY-BORDER-COLOR:CAPS" title="GTK_STYLE_PROPERTY_BORDER_COLOR">GTK_STYLE_PROPERTY_BORDER_COLOR</a> -#define <a class="link" href="GtkStyleContext.html#GTK-STYLE-PROPERTY-BACKGROUND-IMAGE:CAPS" title="GTK_STYLE_PROPERTY_BACKGROUND_IMAGE">GTK_STYLE_PROPERTY_BACKGROUND_IMAGE</a> - -#define <a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-BACKGROUND:CAPS" title="GTK_STYLE_CLASS_BACKGROUND">GTK_STYLE_CLASS_BACKGROUND</a> -#define <a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-BUTTON:CAPS" title="GTK_STYLE_CLASS_BUTTON">GTK_STYLE_CLASS_BUTTON</a> -#define <a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-CALENDAR:CAPS" title="GTK_STYLE_CLASS_CALENDAR">GTK_STYLE_CLASS_CALENDAR</a> -#define <a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-CELL:CAPS" title="GTK_STYLE_CLASS_CELL">GTK_STYLE_CLASS_CELL</a> -#define <a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-COMBOBOX-ENTRY:CAPS" title="GTK_STYLE_CLASS_COMBOBOX_ENTRY">GTK_STYLE_CLASS_COMBOBOX_ENTRY</a> -#define <a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-CHECK:CAPS" title="GTK_STYLE_CLASS_CHECK">GTK_STYLE_CLASS_CHECK</a> -#define <a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-DEFAULT:CAPS" title="GTK_STYLE_CLASS_DEFAULT">GTK_STYLE_CLASS_DEFAULT</a> -#define <a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-ENTRY:CAPS" title="GTK_STYLE_CLASS_ENTRY">GTK_STYLE_CLASS_ENTRY</a> -#define <a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-HEADER:CAPS" title="GTK_STYLE_CLASS_HEADER">GTK_STYLE_CLASS_HEADER</a> -#define <a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-MENU:CAPS" title="GTK_STYLE_CLASS_MENU">GTK_STYLE_CLASS_MENU</a> -#define <a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-RADIO:CAPS" title="GTK_STYLE_CLASS_RADIO">GTK_STYLE_CLASS_RADIO</a> -#define <a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-RUBBERBAND:CAPS" title="GTK_STYLE_CLASS_RUBBERBAND">GTK_STYLE_CLASS_RUBBERBAND</a> -#define <a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-SCROLLBAR:CAPS" title="GTK_STYLE_CLASS_SCROLLBAR">GTK_STYLE_CLASS_SCROLLBAR</a> -#define <a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-SCROLLBARS-JUNCTION:CAPS" title="GTK_STYLE_CLASS_SCROLLBARS_JUNCTION">GTK_STYLE_CLASS_SCROLLBARS_JUNCTION</a> -#define <a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-SLIDER:CAPS" title="GTK_STYLE_CLASS_SLIDER">GTK_STYLE_CLASS_SLIDER</a> -#define <a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-TOOLTIP:CAPS" title="GTK_STYLE_CLASS_TOOLTIP">GTK_STYLE_CLASS_TOOLTIP</a> -#define <a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-TROUGH:CAPS" title="GTK_STYLE_CLASS_TROUGH">GTK_STYLE_CLASS_TROUGH</a> -#define <a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-ACCELERATOR:CAPS" title="GTK_STYLE_CLASS_ACCELERATOR">GTK_STYLE_CLASS_ACCELERATOR</a> -#define <a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-DOCK:CAPS" title="GTK_STYLE_CLASS_DOCK">GTK_STYLE_CLASS_DOCK</a> -#define <a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-GRIP:CAPS" title="GTK_STYLE_CLASS_GRIP">GTK_STYLE_CLASS_GRIP</a> -#define <a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-MENUBAR:CAPS" title="GTK_STYLE_CLASS_MENUBAR">GTK_STYLE_CLASS_MENUBAR</a> -#define <a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-MENUITEM:CAPS" title="GTK_STYLE_CLASS_MENUITEM">GTK_STYLE_CLASS_MENUITEM</a> -#define <a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-PROGRESSBAR:CAPS" title="GTK_STYLE_CLASS_PROGRESSBAR">GTK_STYLE_CLASS_PROGRESSBAR</a> -#define <a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-SPINNER:CAPS" title="GTK_STYLE_CLASS_SPINNER">GTK_STYLE_CLASS_SPINNER</a> -#define <a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-TOOLBAR:CAPS" title="GTK_STYLE_CLASS_TOOLBAR">GTK_STYLE_CLASS_TOOLBAR</a> -#define <a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-PRIMARY-TOOLBAR:CAPS" title="GTK_STYLE_CLASS_PRIMARY_TOOLBAR">GTK_STYLE_CLASS_PRIMARY_TOOLBAR</a> -#define <a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-INLINE-TOOLBAR:CAPS" title="GTK_STYLE_CLASS_INLINE_TOOLBAR">GTK_STYLE_CLASS_INLINE_TOOLBAR</a> -#define <a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-PANE-SEPARATOR:CAPS" title="GTK_STYLE_CLASS_PANE_SEPARATOR">GTK_STYLE_CLASS_PANE_SEPARATOR</a> -#define <a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-SEPARATOR:CAPS" title="GTK_STYLE_CLASS_SEPARATOR">GTK_STYLE_CLASS_SEPARATOR</a> -#define <a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-SIDEBAR:CAPS" title="GTK_STYLE_CLASS_SIDEBAR">GTK_STYLE_CLASS_SIDEBAR</a> -#define <a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-DND:CAPS" title="GTK_STYLE_CLASS_DND">GTK_STYLE_CLASS_DND</a> -#define <a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-ERROR:CAPS" title="GTK_STYLE_CLASS_ERROR">GTK_STYLE_CLASS_ERROR</a> -#define <a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-EXPANDER:CAPS" title="GTK_STYLE_CLASS_EXPANDER">GTK_STYLE_CLASS_EXPANDER</a> -#define <a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-FRAME:CAPS" title="GTK_STYLE_CLASS_FRAME">GTK_STYLE_CLASS_FRAME</a> -#define <a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-HIGHLIGHT:CAPS" title="GTK_STYLE_CLASS_HIGHLIGHT">GTK_STYLE_CLASS_HIGHLIGHT</a> -#define <a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-IMAGE:CAPS" title="GTK_STYLE_CLASS_IMAGE">GTK_STYLE_CLASS_IMAGE</a> -#define <a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-INFO:CAPS" title="GTK_STYLE_CLASS_INFO">GTK_STYLE_CLASS_INFO</a> -#define <a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-MARK:CAPS" title="GTK_STYLE_CLASS_MARK">GTK_STYLE_CLASS_MARK</a> -#define <a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-NOTEBOOK:CAPS" title="GTK_STYLE_CLASS_NOTEBOOK">GTK_STYLE_CLASS_NOTEBOOK</a> -#define <a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-QUESTION:CAPS" title="GTK_STYLE_CLASS_QUESTION">GTK_STYLE_CLASS_QUESTION</a> -#define <a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-SCALE:CAPS" title="GTK_STYLE_CLASS_SCALE">GTK_STYLE_CLASS_SCALE</a> -#define <a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-SCALE-HAS-MARKS-ABOVE:CAPS" title="GTK_STYLE_CLASS_SCALE_HAS_MARKS_ABOVE">GTK_STYLE_CLASS_SCALE_HAS_MARKS_ABOVE</a> -#define <a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-SCALE-HAS-MARKS-BELOW:CAPS" title="GTK_STYLE_CLASS_SCALE_HAS_MARKS_BELOW">GTK_STYLE_CLASS_SCALE_HAS_MARKS_BELOW</a> -#define <a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-SPINBUTTON:CAPS" title="GTK_STYLE_CLASS_SPINBUTTON">GTK_STYLE_CLASS_SPINBUTTON</a> -#define <a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-VIEW:CAPS" title="GTK_STYLE_CLASS_VIEW">GTK_STYLE_CLASS_VIEW</a> -#define <a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-WARNING:CAPS" title="GTK_STYLE_CLASS_WARNING">GTK_STYLE_CLASS_WARNING</a> -#define <a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-HORIZONTAL:CAPS" title="GTK_STYLE_CLASS_HORIZONTAL">GTK_STYLE_CLASS_HORIZONTAL</a> -#define <a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-VERTICAL:CAPS" title="GTK_STYLE_CLASS_VERTICAL">GTK_STYLE_CLASS_VERTICAL</a> -#define <a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-TOP:CAPS" title="GTK_STYLE_CLASS_TOP">GTK_STYLE_CLASS_TOP</a> -#define <a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-BOTTOM:CAPS" title="GTK_STYLE_CLASS_BOTTOM">GTK_STYLE_CLASS_BOTTOM</a> -#define <a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-LEFT:CAPS" title="GTK_STYLE_CLASS_LEFT">GTK_STYLE_CLASS_LEFT</a> -#define <a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-RIGHT:CAPS" title="GTK_STYLE_CLASS_RIGHT">GTK_STYLE_CLASS_RIGHT</a> -#define <a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-LINKED:CAPS" title="GTK_STYLE_CLASS_LINKED">GTK_STYLE_CLASS_LINKED</a> -#define <a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-ARROW:CAPS" title="GTK_STYLE_CLASS_ARROW">GTK_STYLE_CLASS_ARROW</a> -#define <a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-OSD:CAPS" title="GTK_STYLE_CLASS_OSD">GTK_STYLE_CLASS_OSD</a> -#define <a class="link" href="GtkStyleContext.html#GTK-STYLE-REGION-COLUMN:CAPS" title="GTK_STYLE_REGION_COLUMN">GTK_STYLE_REGION_COLUMN</a> -#define <a class="link" href="GtkStyleContext.html#GTK-STYLE-REGION-COLUMN-HEADER:CAPS" title="GTK_STYLE_REGION_COLUMN_HEADER">GTK_STYLE_REGION_COLUMN_HEADER</a> -#define <a class="link" href="GtkStyleContext.html#GTK-STYLE-REGION-ROW:CAPS" title="GTK_STYLE_REGION_ROW">GTK_STYLE_REGION_ROW</a> -#define <a class="link" href="GtkStyleContext.html#GTK-STYLE-REGION-TAB:CAPS" title="GTK_STYLE_REGION_TAB">GTK_STYLE_REGION_TAB</a> - - <a class="link" href="GtkStyleContext.html#GtkStyleContext-struct" title="GtkStyleContext">GtkStyleContext</a>; -<a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="returnvalue">GtkStyleContext</span></a> * <a class="link" href="GtkStyleContext.html#gtk-style-context-new" title="gtk_style_context_new ()">gtk_style_context_new</a> (<em class="parameter"><code><span class="type">void</span></code></em>); -<span class="returnvalue">void</span> <a class="link" href="GtkStyleContext.html#gtk-style-context-add-provider" title="gtk_style_context_add_provider ()">gtk_style_context_add_provider</a> (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a class="link" href="GtkStyleProvider.html" title="GtkStyleProvider"><span class="type">GtkStyleProvider</span></a> *provider</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> priority</code></em>); -<span class="returnvalue">void</span> <a class="link" href="GtkStyleContext.html#gtk-style-context-add-provider-for-screen" title="gtk_style_context_add_provider_for_screen ()">gtk_style_context_add_provider_for_screen</a> - (<em class="parameter"><code><a href="http://developer.gnome.org/gdk/GdkScreen.html"><span class="type">GdkScreen</span></a> *screen</code></em>, - <em class="parameter"><code><a class="link" href="GtkStyleProvider.html" title="GtkStyleProvider"><span class="type">GtkStyleProvider</span></a> *provider</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> priority</code></em>); -<span class="returnvalue">void</span> <a class="link" href="GtkStyleContext.html#gtk-style-context-get" title="gtk_style_context_get ()">gtk_style_context_get</a> (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkStateFlags" title="enum GtkStateFlags"><span class="type">GtkStateFlags</span></a> state</code></em>, - <em class="parameter"><code>...</code></em>); -<a class="link" href="GtkWidget.html#GtkTextDirection" title="enum GtkTextDirection"><span class="returnvalue">GtkTextDirection</span></a> <a class="link" href="GtkStyleContext.html#gtk-style-context-get-direction" title="gtk_style_context_get_direction ()">gtk_style_context_get_direction</a> (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>); -<a class="link" href="gtk3-Standard-Enumerations.html#GtkJunctionSides" title="enum GtkJunctionSides"><span class="returnvalue">GtkJunctionSides</span></a> <a class="link" href="GtkStyleContext.html#gtk-style-context-get-junction-sides" title="gtk_style_context_get_junction_sides ()">gtk_style_context_get_junction_sides</a> - (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>); -<a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="returnvalue">GtkStyleContext</span></a> * <a class="link" href="GtkStyleContext.html#gtk-style-context-get-parent" title="gtk_style_context_get_parent ()">gtk_style_context_get_parent</a> (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>); -const <a class="link" href="gtk3-GtkWidgetPath.html#GtkWidgetPath" title="GtkWidgetPath"><span class="returnvalue">GtkWidgetPath</span></a> * <a class="link" href="GtkStyleContext.html#gtk-style-context-get-path" title="gtk_style_context_get_path ()">gtk_style_context_get_path</a> (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>); -<span class="returnvalue">void</span> <a class="link" href="GtkStyleContext.html#gtk-style-context-get-property" title="gtk_style_context_get_property ()">gtk_style_context_get_property</a> (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *property</code></em>, - <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkStateFlags" title="enum GtkStateFlags"><span class="type">GtkStateFlags</span></a> state</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> *value</code></em>); -<a href="http://developer.gnome.org/gdk/GdkScreen.html"><span class="returnvalue">GdkScreen</span></a> * <a class="link" href="GtkStyleContext.html#gtk-style-context-get-screen" title="gtk_style_context_get_screen ()">gtk_style_context_get_screen</a> (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>); -<a class="link" href="gtk3-Standard-Enumerations.html#GtkStateFlags" title="enum GtkStateFlags"><span class="returnvalue">GtkStateFlags</span></a> <a class="link" href="GtkStyleContext.html#gtk-style-context-get-state" title="gtk_style_context_get_state ()">gtk_style_context_get_state</a> (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>); -<span class="returnvalue">void</span> <a class="link" href="GtkStyleContext.html#gtk-style-context-get-style" title="gtk_style_context_get_style ()">gtk_style_context_get_style</a> (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code>...</code></em>); -<span class="returnvalue">void</span> <a class="link" href="GtkStyleContext.html#gtk-style-context-get-style-property" title="gtk_style_context_get_style_property ()">gtk_style_context_get_style_property</a> - (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *property_name</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> *value</code></em>); -<span class="returnvalue">void</span> <a class="link" href="GtkStyleContext.html#gtk-style-context-get-style-valist" title="gtk_style_context_get_style_valist ()">gtk_style_context_get_style_valist</a> (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><span class="type">va_list</span> args</code></em>); -<span class="returnvalue">void</span> <a class="link" href="GtkStyleContext.html#gtk-style-context-get-valist" title="gtk_style_context_get_valist ()">gtk_style_context_get_valist</a> (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkStateFlags" title="enum GtkStateFlags"><span class="type">GtkStateFlags</span></a> state</code></em>, - <em class="parameter"><code><span class="type">va_list</span> args</code></em>); -<a class="link" href="GtkCssProvider.html#GtkCssSection"><span class="returnvalue">GtkCssSection</span></a> * <a class="link" href="GtkStyleContext.html#gtk-style-context-get-section" title="gtk_style_context_get_section ()">gtk_style_context_get_section</a> (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *property</code></em>); -<span class="returnvalue">void</span> <a class="link" href="GtkStyleContext.html#gtk-style-context-get-color" title="gtk_style_context_get_color ()">gtk_style_context_get_color</a> (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkStateFlags" title="enum GtkStateFlags"><span class="type">GtkStateFlags</span></a> state</code></em>, - <em class="parameter"><code><a href="http://developer.gnome.org/gdk/gdk3-RGBA-Colors.html#GdkRGBA"><span class="type">GdkRGBA</span></a> *color</code></em>); -<span class="returnvalue">void</span> <a class="link" href="GtkStyleContext.html#gtk-style-context-get-background-color" title="gtk_style_context_get_background_color ()">gtk_style_context_get_background_color</a> - (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkStateFlags" title="enum GtkStateFlags"><span class="type">GtkStateFlags</span></a> state</code></em>, - <em class="parameter"><code><a href="http://developer.gnome.org/gdk/gdk3-RGBA-Colors.html#GdkRGBA"><span class="type">GdkRGBA</span></a> *color</code></em>); -<span class="returnvalue">void</span> <a class="link" href="GtkStyleContext.html#gtk-style-context-get-border-color" title="gtk_style_context_get_border_color ()">gtk_style_context_get_border_color</a> (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkStateFlags" title="enum GtkStateFlags"><span class="type">GtkStateFlags</span></a> state</code></em>, - <em class="parameter"><code><a href="http://developer.gnome.org/gdk/gdk3-RGBA-Colors.html#GdkRGBA"><span class="type">GdkRGBA</span></a> *color</code></em>); -<span class="returnvalue">void</span> <a class="link" href="GtkStyleContext.html#gtk-style-context-get-border" title="gtk_style_context_get_border ()">gtk_style_context_get_border</a> (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkStateFlags" title="enum GtkStateFlags"><span class="type">GtkStateFlags</span></a> state</code></em>, - <em class="parameter"><code><a class="link" href="GtkStyleContext.html#GtkBorder"><span class="type">GtkBorder</span></a> *border</code></em>); -<span class="returnvalue">void</span> <a class="link" href="GtkStyleContext.html#gtk-style-context-get-padding" title="gtk_style_context_get_padding ()">gtk_style_context_get_padding</a> (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkStateFlags" title="enum GtkStateFlags"><span class="type">GtkStateFlags</span></a> state</code></em>, - <em class="parameter"><code><a class="link" href="GtkStyleContext.html#GtkBorder"><span class="type">GtkBorder</span></a> *padding</code></em>); -<span class="returnvalue">void</span> <a class="link" href="GtkStyleContext.html#gtk-style-context-get-margin" title="gtk_style_context_get_margin ()">gtk_style_context_get_margin</a> (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkStateFlags" title="enum GtkStateFlags"><span class="type">GtkStateFlags</span></a> state</code></em>, - <em class="parameter"><code><a class="link" href="GtkStyleContext.html#GtkBorder"><span class="type">GtkBorder</span></a> *margin</code></em>); -const <a href="/home/mclasen/gnome/share/gtk-doc/html/pango/pango-Fonts.html#PangoFontDescription"><span class="returnvalue">PangoFontDescription</span></a> * <a class="link" href="GtkStyleContext.html#gtk-style-context-get-font" title="gtk_style_context_get_font ()">gtk_style_context_get_font</a> (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkStateFlags" title="enum GtkStateFlags"><span class="type">GtkStateFlags</span></a> state</code></em>); -<span class="returnvalue">void</span> <a class="link" href="GtkStyleContext.html#gtk-style-context-invalidate" title="gtk_style_context_invalidate ()">gtk_style_context_invalidate</a> (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>); -<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GtkStyleContext.html#gtk-style-context-state-is-running" title="gtk_style_context_state_is_running ()">gtk_style_context_state_is_running</a> (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkStateType" title="enum GtkStateType"><span class="type">GtkStateType</span></a> state</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> *progress</code></em>); -<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GtkStyleContext.html#gtk-style-context-lookup-color" title="gtk_style_context_lookup_color ()">gtk_style_context_lookup_color</a> (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *color_name</code></em>, - <em class="parameter"><code><a href="http://developer.gnome.org/gdk/gdk3-RGBA-Colors.html#GdkRGBA"><span class="type">GdkRGBA</span></a> *color</code></em>); -<a class="link" href="gtk3-Themeable-Stock-Images.html#GtkIconSet"><span class="returnvalue">GtkIconSet</span></a> * <a class="link" href="GtkStyleContext.html#gtk-style-context-lookup-icon-set" title="gtk_style_context_lookup_icon_set ()">gtk_style_context_lookup_icon_set</a> (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *stock_id</code></em>); -<span class="returnvalue">void</span> <a class="link" href="GtkStyleContext.html#gtk-style-context-notify-state-change" title="gtk_style_context_notify_state_change ()">gtk_style_context_notify_state_change</a> - (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a href="http://developer.gnome.org/gdk/gdk3-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> *window</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> region_id</code></em>, - <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkStateType" title="enum GtkStateType"><span class="type">GtkStateType</span></a> state</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> state_value</code></em>); -<span class="returnvalue">void</span> <a class="link" href="GtkStyleContext.html#gtk-style-context-pop-animatable-region" title="gtk_style_context_pop_animatable_region ()">gtk_style_context_pop_animatable_region</a> - (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>); -<span class="returnvalue">void</span> <a class="link" href="GtkStyleContext.html#gtk-style-context-push-animatable-region" title="gtk_style_context_push_animatable_region ()">gtk_style_context_push_animatable_region</a> - (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> region_id</code></em>); -<span class="returnvalue">void</span> <a class="link" href="GtkStyleContext.html#gtk-style-context-cancel-animations" title="gtk_style_context_cancel_animations ()">gtk_style_context_cancel_animations</a> (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> region_id</code></em>); -<span class="returnvalue">void</span> <a class="link" href="GtkStyleContext.html#gtk-style-context-scroll-animations" title="gtk_style_context_scroll_animations ()">gtk_style_context_scroll_animations</a> (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a href="http://developer.gnome.org/gdk/gdk3-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> *window</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> dx</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> dy</code></em>); -<span class="returnvalue">void</span> <a class="link" href="GtkStyleContext.html#gtk-style-context-remove-provider" title="gtk_style_context_remove_provider ()">gtk_style_context_remove_provider</a> (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a class="link" href="GtkStyleProvider.html" title="GtkStyleProvider"><span class="type">GtkStyleProvider</span></a> *provider</code></em>); -<span class="returnvalue">void</span> <a class="link" href="GtkStyleContext.html#gtk-style-context-remove-provider-for-screen" title="gtk_style_context_remove_provider_for_screen ()">gtk_style_context_remove_provider_for_screen</a> - (<em class="parameter"><code><a href="http://developer.gnome.org/gdk/GdkScreen.html"><span class="type">GdkScreen</span></a> *screen</code></em>, - <em class="parameter"><code><a class="link" href="GtkStyleProvider.html" title="GtkStyleProvider"><span class="type">GtkStyleProvider</span></a> *provider</code></em>); -<span class="returnvalue">void</span> <a class="link" href="GtkStyleContext.html#gtk-style-context-reset-widgets" title="gtk_style_context_reset_widgets ()">gtk_style_context_reset_widgets</a> (<em class="parameter"><code><a href="http://developer.gnome.org/gdk/GdkScreen.html"><span class="type">GdkScreen</span></a> *screen</code></em>); -<span class="returnvalue">void</span> <a class="link" href="GtkStyleContext.html#gtk-style-context-set-background" title="gtk_style_context_set_background ()">gtk_style_context_set_background</a> (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a href="http://developer.gnome.org/gdk/gdk3-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> *window</code></em>); -<span class="returnvalue">void</span> <a class="link" href="GtkStyleContext.html#gtk-style-context-restore" title="gtk_style_context_restore ()">gtk_style_context_restore</a> (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>); -<span class="returnvalue">void</span> <a class="link" href="GtkStyleContext.html#gtk-style-context-save" title="gtk_style_context_save ()">gtk_style_context_save</a> (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>); -<span class="returnvalue">void</span> <a class="link" href="GtkStyleContext.html#gtk-style-context-set-direction" title="gtk_style_context_set_direction ()">gtk_style_context_set_direction</a> (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a class="link" href="GtkWidget.html#GtkTextDirection" title="enum GtkTextDirection"><span class="type">GtkTextDirection</span></a> direction</code></em>); -<span class="returnvalue">void</span> <a class="link" href="GtkStyleContext.html#gtk-style-context-set-junction-sides" title="gtk_style_context_set_junction_sides ()">gtk_style_context_set_junction_sides</a> - (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkJunctionSides" title="enum GtkJunctionSides"><span class="type">GtkJunctionSides</span></a> sides</code></em>); -<span class="returnvalue">void</span> <a class="link" href="GtkStyleContext.html#gtk-style-context-set-parent" title="gtk_style_context_set_parent ()">gtk_style_context_set_parent</a> (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *parent</code></em>); -<span class="returnvalue">void</span> <a class="link" href="GtkStyleContext.html#gtk-style-context-set-path" title="gtk_style_context_set_path ()">gtk_style_context_set_path</a> (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a class="link" href="gtk3-GtkWidgetPath.html#GtkWidgetPath" title="GtkWidgetPath"><span class="type">GtkWidgetPath</span></a> *path</code></em>); -<span class="returnvalue">void</span> <a class="link" href="GtkStyleContext.html#gtk-style-context-add-class" title="gtk_style_context_add_class ()">gtk_style_context_add_class</a> (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *class_name</code></em>); -<span class="returnvalue">void</span> <a class="link" href="GtkStyleContext.html#gtk-style-context-remove-class" title="gtk_style_context_remove_class ()">gtk_style_context_remove_class</a> (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *class_name</code></em>); -<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GtkStyleContext.html#gtk-style-context-has-class" title="gtk_style_context_has_class ()">gtk_style_context_has_class</a> (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *class_name</code></em>); -<a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> * <a class="link" href="GtkStyleContext.html#gtk-style-context-list-classes" title="gtk_style_context_list_classes ()">gtk_style_context_list_classes</a> (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>); -<span class="returnvalue">void</span> <a class="link" href="GtkStyleContext.html#gtk-style-context-add-region" title="gtk_style_context_add_region ()">gtk_style_context_add_region</a> (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *region_name</code></em>, - <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkRegionFlags" title="enum GtkRegionFlags"><span class="type">GtkRegionFlags</span></a> flags</code></em>); -<span class="returnvalue">void</span> <a class="link" href="GtkStyleContext.html#gtk-style-context-remove-region" title="gtk_style_context_remove_region ()">gtk_style_context_remove_region</a> (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *region_name</code></em>); -<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GtkStyleContext.html#gtk-style-context-has-region" title="gtk_style_context_has_region ()">gtk_style_context_has_region</a> (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *region_name</code></em>, - <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkRegionFlags" title="enum GtkRegionFlags"><span class="type">GtkRegionFlags</span></a> *flags_return</code></em>); -<a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> * <a class="link" href="GtkStyleContext.html#gtk-style-context-list-regions" title="gtk_style_context_list_regions ()">gtk_style_context_list_regions</a> (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>); -<span class="returnvalue">void</span> <a class="link" href="GtkStyleContext.html#gtk-style-context-set-screen" title="gtk_style_context_set_screen ()">gtk_style_context_set_screen</a> (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a href="http://developer.gnome.org/gdk/GdkScreen.html"><span class="type">GdkScreen</span></a> *screen</code></em>); -<span class="returnvalue">void</span> <a class="link" href="GtkStyleContext.html#gtk-style-context-set-state" title="gtk_style_context_set_state ()">gtk_style_context_set_state</a> (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkStateFlags" title="enum GtkStateFlags"><span class="type">GtkStateFlags</span></a> flags</code></em>); - -struct <a class="link" href="GtkStyleContext.html#GtkBorder-struct" title="struct GtkBorder">GtkBorder</a>; -<a class="link" href="GtkStyleContext.html#GtkBorder"><span class="returnvalue">GtkBorder</span></a> * <a class="link" href="GtkStyleContext.html#gtk-border-new" title="gtk_border_new ()">gtk_border_new</a> (<em class="parameter"><code><span class="type">void</span></code></em>); -<a class="link" href="GtkStyleContext.html#GtkBorder"><span class="returnvalue">GtkBorder</span></a> * <a class="link" href="GtkStyleContext.html#gtk-border-copy" title="gtk_border_copy ()">gtk_border_copy</a> (<em class="parameter"><code>const <a class="link" href="GtkStyleContext.html#GtkBorder"><span class="type">GtkBorder</span></a> *border_</code></em>); -<span class="returnvalue">void</span> <a class="link" href="GtkStyleContext.html#gtk-border-free" title="gtk_border_free ()">gtk_border_free</a> (<em class="parameter"><code><a class="link" href="GtkStyleContext.html#GtkBorder"><span class="type">GtkBorder</span></a> *border_</code></em>); - -<span class="returnvalue">void</span> <a class="link" href="GtkStyleContext.html#gtk-render-arrow" title="gtk_render_arrow ()">gtk_render_arrow</a> (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> angle</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> size</code></em>); -<span class="returnvalue">void</span> <a class="link" href="GtkStyleContext.html#gtk-render-background" title="gtk_render_background ()">gtk_render_background</a> (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> width</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> height</code></em>); -<span class="returnvalue">void</span> <a class="link" href="GtkStyleContext.html#gtk-render-check" title="gtk_render_check ()">gtk_render_check</a> (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> width</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> height</code></em>); -<span class="returnvalue">void</span> <a class="link" href="GtkStyleContext.html#gtk-render-expander" title="gtk_render_expander ()">gtk_render_expander</a> (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> width</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> height</code></em>); -<span class="returnvalue">void</span> <a class="link" href="GtkStyleContext.html#gtk-render-extension" title="gtk_render_extension ()">gtk_render_extension</a> (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> width</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> height</code></em>, - <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkPositionType" title="enum GtkPositionType"><span class="type">GtkPositionType</span></a> gap_side</code></em>); -<span class="returnvalue">void</span> <a class="link" href="GtkStyleContext.html#gtk-render-focus" title="gtk_render_focus ()">gtk_render_focus</a> (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> width</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> height</code></em>); -<span class="returnvalue">void</span> <a class="link" href="GtkStyleContext.html#gtk-render-frame" title="gtk_render_frame ()">gtk_render_frame</a> (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> width</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> height</code></em>); -<span class="returnvalue">void</span> <a class="link" href="GtkStyleContext.html#gtk-render-frame-gap" title="gtk_render_frame_gap ()">gtk_render_frame_gap</a> (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> width</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> height</code></em>, - <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkPositionType" title="enum GtkPositionType"><span class="type">GtkPositionType</span></a> gap_side</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> xy0_gap</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> xy1_gap</code></em>); -<span class="returnvalue">void</span> <a class="link" href="GtkStyleContext.html#gtk-render-handle" title="gtk_render_handle ()">gtk_render_handle</a> (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> width</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> height</code></em>); -<span class="returnvalue">void</span> <a class="link" href="GtkStyleContext.html#gtk-render-layout" title="gtk_render_layout ()">gtk_render_layout</a> (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>, - <em class="parameter"><code><a href="/home/mclasen/gnome/share/gtk-doc/html/pango/pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>); -<span class="returnvalue">void</span> <a class="link" href="GtkStyleContext.html#gtk-render-line" title="gtk_render_line ()">gtk_render_line</a> (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x0</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y0</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x1</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y1</code></em>); -<span class="returnvalue">void</span> <a class="link" href="GtkStyleContext.html#gtk-render-option" title="gtk_render_option ()">gtk_render_option</a> (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> width</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> height</code></em>); -<span class="returnvalue">void</span> <a class="link" href="GtkStyleContext.html#gtk-render-slider" title="gtk_render_slider ()">gtk_render_slider</a> (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> width</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> height</code></em>, - <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkOrientation" title="enum GtkOrientation"><span class="type">GtkOrientation</span></a> orientation</code></em>); -<span class="returnvalue">void</span> <a class="link" href="GtkStyleContext.html#gtk-render-activity" title="gtk_render_activity ()">gtk_render_activity</a> (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> width</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> height</code></em>); -<a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> * <a class="link" href="GtkStyleContext.html#gtk-render-icon-pixbuf" title="gtk_render_icon_pixbuf ()">gtk_render_icon_pixbuf</a> (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code>const <a class="link" href="gtk3-Themeable-Stock-Images.html#GtkIconSource" title="GtkIconSource"><span class="type">GtkIconSource</span></a> *source</code></em>, - <em class="parameter"><code><a class="link" href="gtk3-Themeable-Stock-Images.html#GtkIconSize" title="enum GtkIconSize"><span class="type">GtkIconSize</span></a> size</code></em>); -<span class="returnvalue">void</span> <a class="link" href="GtkStyleContext.html#gtk-render-icon" title="gtk_render_icon ()">gtk_render_icon</a> (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>); -<span class="returnvalue">void</span> <a class="link" href="GtkStyleContext.html#gtk-render-insertion-cursor" title="gtk_render_insertion_cursor ()">gtk_render_insertion_cursor</a> (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>, - <em class="parameter"><code><a href="/home/mclasen/gnome/share/gtk-doc/html/pango/pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>, - <em class="parameter"><code><span class="type">int</span> index</code></em>, - <em class="parameter"><code><a href="/home/mclasen/gnome/share/gtk-doc/html/pango/pango-Bidirectional-Text.html#PangoDirection"><span class="type">PangoDirection</span></a> direction</code></em>); -</pre> -</div> -<div class="refsect1"> -<a name="GtkStyleContext.object-hierarchy"></a><h2>Object Hierarchy</h2> -<pre class="synopsis"> - <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a> - +----GtkStyleContext -</pre> -<pre class="synopsis"> - GBoxed - +----GtkBorder -</pre> -</div> -<div class="refsect1"> -<a name="GtkStyleContext.properties"></a><h2>Properties</h2> -<pre class="synopsis"> - "<a class="link" href="GtkStyleContext.html#GtkStyleContext--direction" title='The "direction" property'>direction</a>" <a class="link" href="GtkWidget.html#GtkTextDirection" title="enum GtkTextDirection"><span class="type">GtkTextDirection</span></a> : Read / Write - "<a class="link" href="GtkStyleContext.html#GtkStyleContext--parent" title='The "parent" property'>parent</a>" <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a>* : Read / Write - "<a class="link" href="GtkStyleContext.html#GtkStyleContext--screen" title='The "screen" property'>screen</a>" <a href="http://developer.gnome.org/gdk/GdkScreen.html"><span class="type">GdkScreen</span></a>* : Read / Write -</pre> -</div> -<div class="refsect1"> -<a name="GtkStyleContext.signals"></a><h2>Signals</h2> -<pre class="synopsis"> - "<a class="link" href="GtkStyleContext.html#GtkStyleContext-changed" title='The "changed" signal'>changed</a>" : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-FIRST:CAPS"><code class="literal">Run First</code></a> -</pre> -</div> -<div class="refsect1"> -<a name="GtkStyleContext.description"></a><h2>Description</h2> -<p> -<a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> is an object that stores styling information affecting -a widget defined by <a class="link" href="gtk3-GtkWidgetPath.html#GtkWidgetPath" title="GtkWidgetPath"><span class="type">GtkWidgetPath</span></a>. -</p> -<p> -In order to construct the final style information, <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> -queries information from all attached <a href="GtkStyleProvider.html"><span class="type">GtkStyleProviders</span></a>. Style providers -can be either attached explicitly to the context through -<a class="link" href="GtkStyleContext.html#gtk-style-context-add-provider" title="gtk_style_context_add_provider ()"><code class="function">gtk_style_context_add_provider()</code></a>, or to the screen through -<a class="link" href="GtkStyleContext.html#gtk-style-context-add-provider-for-screen" title="gtk_style_context_add_provider_for_screen ()"><code class="function">gtk_style_context_add_provider_for_screen()</code></a>. The resulting style is a -combination of all providers' information in priority order. -</p> -<p> -For GTK+ widgets, any <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> returned by -<a class="link" href="GtkWidget.html#gtk-widget-get-style-context" title="gtk_widget_get_style_context ()"><code class="function">gtk_widget_get_style_context()</code></a> will already have a <a class="link" href="gtk3-GtkWidgetPath.html#GtkWidgetPath" title="GtkWidgetPath"><span class="type">GtkWidgetPath</span></a>, a -<a href="http://developer.gnome.org/gdk/GdkScreen.html"><span class="type">GdkScreen</span></a> and RTL/LTR information set. The style context will be also -updated automatically if any of these settings change on the widget. -</p> -<p> -If you are using the theming layer standalone, you will need to set a -widget path and a screen yourself to the created style context through -<a class="link" href="GtkStyleContext.html#gtk-style-context-set-path" title="gtk_style_context_set_path ()"><code class="function">gtk_style_context_set_path()</code></a> and <a class="link" href="GtkStyleContext.html#gtk-style-context-set-screen" title="gtk_style_context_set_screen ()"><code class="function">gtk_style_context_set_screen()</code></a>, as well -as updating the context yourself using <a class="link" href="GtkStyleContext.html#gtk-style-context-invalidate" title="gtk_style_context_invalidate ()"><code class="function">gtk_style_context_invalidate()</code></a> -whenever any of the conditions change, such as a change in the -<a class="link" href="GtkSettings.html#GtkSettings--gtk-theme-name" title='The "gtk-theme-name" property'><span class="type">"gtk-theme-name"</span></a> setting or a hierarchy change in the rendered -widget. -</p> -<p> -</p> -<div class="refsect2"> -<a name="gtkstylecontext-animations"></a><h3>Transition animations</h3> -<p> -<a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> has built-in support for state change transitions. -Note that these animations respect the <a class="link" href="GtkSettings.html#GtkSettings--gtk-enable-animations" title='The "gtk-enable-animations" property'><span class="type">"gtk-enable-animations"</span></a> -setting. -</p> -<p> -For simple widgets where state changes affect the whole widget area, -calling <a class="link" href="GtkStyleContext.html#gtk-style-context-notify-state-change" title="gtk_style_context_notify_state_change ()"><code class="function">gtk_style_context_notify_state_change()</code></a> with a <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> region -is sufficient to trigger the transition animation. And GTK+ already -does that when <a class="link" href="GtkWidget.html#gtk-widget-set-state" title="gtk_widget_set_state ()"><code class="function">gtk_widget_set_state()</code></a> or <a class="link" href="GtkWidget.html#gtk-widget-set-state-flags" title="gtk_widget_set_state_flags ()"><code class="function">gtk_widget_set_state_flags()</code></a> -are called. -</p> -<p> -If a widget needs to declare several animatable regions (i.e. not -affecting the whole widget area), its <a class="link" href="GtkWidget.html#GtkWidget-draw" title='The "draw" signal'><span class="type">"draw"</span></a> signal handler -needs to wrap the render operations for the different regions with -calls to <a class="link" href="GtkStyleContext.html#gtk-style-context-push-animatable-region" title="gtk_style_context_push_animatable_region ()"><code class="function">gtk_style_context_push_animatable_region()</code></a> and -<a class="link" href="GtkStyleContext.html#gtk-style-context-pop-animatable-region" title="gtk_style_context_pop_animatable_region ()"><code class="function">gtk_style_context_pop_animatable_region()</code></a>. These functions take an -identifier for the region which must be unique within the style context. -For simple widgets with a fixed set of animatable regions, using an -enumeration works well: -</p> -<div class="example"> -<a name="id635178"></a><p class="title"><b>Example 9. Using an enumeration to identify animatable regions</b></p> -<div class="example-contents"> - <table class="listing_frame" border="0" cellpadding="0" cellspacing="0"> - <tbody> - <tr> - <td class="listing_lines" align="right"><pre>1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26</pre></td> - <td class="listing_code"><pre class="programlisting"><span class="keyword">enum</span><span class="normal"> </span><span class="cbracket">{</span> -<span class="normal"> REGION_ENTRY</span><span class="symbol">,</span> -<span class="normal"> REGION_BUTTON_UP</span><span class="symbol">,</span> -<span class="normal"> REGION_BUTTON_DOWN</span> -<span class="cbracket">}</span><span class="symbol">;</span> - -<span class="symbol">...</span> - -<span class="normal"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean">gboolean</a></span> -<span class="function">spin_button_draw</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">widget</span><span class="symbol">,</span> -<span class="normal"> </span><span class="usertype">cairo_t</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">cr</span><span class="symbol">)</span> -<span class="cbracket">{</span> -<span class="normal"> </span><span class="usertype">GtkStyleContext</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">context</span><span class="symbol">;</span> - -<span class="normal"> context </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkWidget.html#gtk-widget-get-style-context">gtk_widget_get_style_context</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">widget</span><span class="symbol">);</span> - -<span class="normal"> </span><span class="function"><a href="GtkStyleContext.html#gtk-style-context-push-animatable-region">gtk_style_context_push_animatable_region</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">context</span><span class="symbol">,</span> -<span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-Type-Conversion-Macros.html#GUINT-TO-POINTER:CAPS">GUINT_TO_POINTER</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">REGION_ENTRY</span><span class="symbol">));</span> - -<span class="normal"> </span><span class="function"><a href="GtkStyleContext.html#gtk-render-background">gtk_render_background</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">,</span><span class="normal"> </span><span class="number">0</span><span class="symbol">,</span><span class="normal"> </span><span class="number">0</span><span class="symbol">,</span><span class="normal"> </span><span class="number">100</span><span class="symbol">,</span><span class="normal"> </span><span class="number">30</span><span class="symbol">);</span> -<span class="normal"> </span><span class="function"><a href="GtkStyleContext.html#gtk-render-frame">gtk_render_frame</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">,</span><span class="normal"> </span><span class="number">0</span><span class="symbol">,</span><span class="normal"> </span><span class="number">0</span><span class="symbol">,</span><span class="normal"> </span><span class="number">100</span><span class="symbol">,</span><span class="normal"> </span><span class="number">30</span><span class="symbol">);</span> - -<span class="normal"> </span><span class="function"><a href="GtkStyleContext.html#gtk-style-context-pop-animatable-region">gtk_style_context_pop_animatable_region</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">context</span><span class="symbol">);</span> - -<span class="normal"> </span><span class="symbol">...</span> -<span class="cbracket">}</span></pre></td> - </tr> - </tbody> - </table> -</div> - -</div> -<br class="example-break"><p> -For complex widgets with an arbitrary number of animatable regions, it -is up to the implementation to come up with a way to uniquely identify -each animatable region. Using pointers to internal structs is one way -to achieve this: -</p> -<div class="example"> -<a name="id635202"></a><p class="title"><b>Example 10. Using struct pointers to identify animatable regions</b></p> -<div class="example-contents"> - <table class="listing_frame" border="0" cellpadding="0" cellspacing="0"> - <tbody> - <tr> - <td class="listing_lines" align="right"><pre>1 -2 -3 -4 -5 -6 -7 -8 -9</pre></td> - <td class="listing_code"><pre class="programlisting"><span class="type">void</span> -<span class="function">notebook_draw_tab</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">widget</span><span class="symbol">,</span> -<span class="normal"> </span><span class="usertype">NotebookPage</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">page</span><span class="symbol">,</span> -<span class="normal"> </span><span class="usertype">cairo_t</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">cr</span><span class="symbol">)</span> -<span class="cbracket">{</span> -<span class="normal"> </span><span class="function"><a href="GtkStyleContext.html#gtk-style-context-push-animatable-region">gtk_style_context_push_animatable_region</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">context</span><span class="symbol">,</span><span class="normal"> page</span><span class="symbol">);</span> -<span class="normal"> </span><span class="function"><a href="GtkStyleContext.html#gtk-render-extension">gtk_render_extension</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">,</span><span class="normal"> page</span><span class="symbol">-></span><span class="normal">x</span><span class="symbol">,</span><span class="normal"> page</span><span class="symbol">-></span><span class="normal">y</span><span class="symbol">,</span><span class="normal"> page</span><span class="symbol">-></span><span class="normal">width</span><span class="symbol">,</span><span class="normal"> page</span><span class="symbol">-></span><span class="normal">height</span><span class="symbol">);</span> -<span class="normal"> </span><span class="function"><a href="GtkStyleContext.html#gtk-style-context-pop-animatable-region">gtk_style_context_pop_animatable_region</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">context</span><span class="symbol">);</span> -<span class="cbracket">}</span></pre></td> - </tr> - </tbody> - </table> -</div> - -</div> -<br class="example-break"><p> -The widget also needs to notify the style context about a state change -for a given animatable region so the animation is triggered. -</p> -<div class="example"> -<a name="id635225"></a><p class="title"><b>Example 11. Triggering a state change animation on a region</b></p> -<div class="example-contents"> - <table class="listing_frame" border="0" cellpadding="0" cellspacing="0"> - <tbody> - <tr> - <td class="listing_lines" align="right"><pre>1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16</pre></td> - <td class="listing_code"><pre class="programlisting"><span class="normal"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean">gboolean</a></span> -<span class="function">notebook_motion_notify</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">widget</span><span class="symbol">,</span> -<span class="normal"> </span><span class="usertype">GdkEventMotion</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">event</span><span class="symbol">)</span> -<span class="cbracket">{</span> -<span class="normal"> </span><span class="usertype">GtkStyleContext</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">context</span><span class="symbol">;</span> -<span class="normal"> </span><span class="usertype">NotebookPage</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">page</span><span class="symbol">;</span> - -<span class="normal"> context </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkWidget.html#gtk-widget-get-style-context">gtk_widget_get_style_context</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">widget</span><span class="symbol">);</span> -<span class="normal"> page </span><span class="symbol">=</span><span class="normal"> </span><span class="function">find_page_under_pointer</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">widget</span><span class="symbol">,</span><span class="normal"> event</span><span class="symbol">);</span> -<span class="normal"> </span><span class="function"><a href="GtkStyleContext.html#gtk-style-context-notify-state-change">gtk_style_context_notify_state_change</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">context</span><span class="symbol">,</span> -<span class="normal"> </span><span class="function"><a href="GtkWidget.html#gtk-widget-get-window">gtk_widget_get_window</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">widget</span><span class="symbol">),</span> -<span class="normal"> page</span><span class="symbol">,</span> -<span class="normal"> <a href="gtk3-Standard-Enumerations.html#GTK-STATE-PRELIGHT:CAPS">GTK_STATE_PRELIGHT</a></span><span class="symbol">,</span> -<span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS">TRUE</a></span><span class="symbol">);</span> -<span class="normal"> </span><span class="symbol">...</span> -<span class="cbracket">}</span></pre></td> - </tr> - </tbody> - </table> -</div> - -</div> -<br class="example-break"><p> -<a class="link" href="GtkStyleContext.html#gtk-style-context-notify-state-change" title="gtk_style_context_notify_state_change ()"><code class="function">gtk_style_context_notify_state_change()</code></a> accepts <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> region IDs as a -special value, in this case, the whole widget area will be updated -by the animation. -</p> -</div> -<p> -</p> -<hr> -<div class="refsect2"> -<a name="gtkstylecontext-classes"></a><h3>Style classes and regions</h3> -<p> -Widgets can add style classes to their context, which can be used -to associate different styles by class (see <a class="xref" href="GtkCssProvider.html#gtkcssprovider-selectors" title="Selectors">the section called “Selectors”</a>). Theme engines can also use style classes to vary their -rendering. GTK+ has a number of predefined style classes: -<a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-CELL:CAPS" title="GTK_STYLE_CLASS_CELL"><span class="type">GTK_STYLE_CLASS_CELL</span></a>, -<a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-ENTRY:CAPS" title="GTK_STYLE_CLASS_ENTRY"><span class="type">GTK_STYLE_CLASS_ENTRY</span></a>, -<a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-BUTTON:CAPS" title="GTK_STYLE_CLASS_BUTTON"><span class="type">GTK_STYLE_CLASS_BUTTON</span></a>, -<a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-COMBOBOX-ENTRY:CAPS" title="GTK_STYLE_CLASS_COMBOBOX_ENTRY"><span class="type">GTK_STYLE_CLASS_COMBOBOX_ENTRY</span></a>, -<a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-CALENDAR:CAPS" title="GTK_STYLE_CLASS_CALENDAR"><span class="type">GTK_STYLE_CLASS_CALENDAR</span></a>, -<a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-SLIDER:CAPS" title="GTK_STYLE_CLASS_SLIDER"><span class="type">GTK_STYLE_CLASS_SLIDER</span></a>, -<a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-BACKGROUND:CAPS" title="GTK_STYLE_CLASS_BACKGROUND"><span class="type">GTK_STYLE_CLASS_BACKGROUND</span></a>, -<a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-RUBBERBAND:CAPS" title="GTK_STYLE_CLASS_RUBBERBAND"><span class="type">GTK_STYLE_CLASS_RUBBERBAND</span></a>, -<a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-TOOLTIP:CAPS" title="GTK_STYLE_CLASS_TOOLTIP"><span class="type">GTK_STYLE_CLASS_TOOLTIP</span></a>, -<a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-MENU:CAPS" title="GTK_STYLE_CLASS_MENU"><span class="type">GTK_STYLE_CLASS_MENU</span></a>, -<a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-MENUBAR:CAPS" title="GTK_STYLE_CLASS_MENUBAR"><span class="type">GTK_STYLE_CLASS_MENUBAR</span></a>, -<a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-MENUITEM:CAPS" title="GTK_STYLE_CLASS_MENUITEM"><span class="type">GTK_STYLE_CLASS_MENUITEM</span></a>, -<a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-TOOLBAR:CAPS" title="GTK_STYLE_CLASS_TOOLBAR"><span class="type">GTK_STYLE_CLASS_TOOLBAR</span></a>, -<a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-PRIMARY-TOOLBAR:CAPS" title="GTK_STYLE_CLASS_PRIMARY_TOOLBAR"><span class="type">GTK_STYLE_CLASS_PRIMARY_TOOLBAR</span></a>, -<a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-INLINE-TOOLBAR:CAPS" title="GTK_STYLE_CLASS_INLINE_TOOLBAR"><span class="type">GTK_STYLE_CLASS_INLINE_TOOLBAR</span></a>, -<a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-RADIO:CAPS" title="GTK_STYLE_CLASS_RADIO"><span class="type">GTK_STYLE_CLASS_RADIO</span></a>, -<a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-CHECK:CAPS" title="GTK_STYLE_CLASS_CHECK"><span class="type">GTK_STYLE_CLASS_CHECK</span></a>, -<a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-TROUGH:CAPS" title="GTK_STYLE_CLASS_TROUGH"><span class="type">GTK_STYLE_CLASS_TROUGH</span></a>, -<a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-SCROLLBAR:CAPS" title="GTK_STYLE_CLASS_SCROLLBAR"><span class="type">GTK_STYLE_CLASS_SCROLLBAR</span></a>, -<a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-SCALE:CAPS" title="GTK_STYLE_CLASS_SCALE"><span class="type">GTK_STYLE_CLASS_SCALE</span></a>, -<a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-SCALE-HAS-MARKS-ABOVE:CAPS" title="GTK_STYLE_CLASS_SCALE_HAS_MARKS_ABOVE"><span class="type">GTK_STYLE_CLASS_SCALE_HAS_MARKS_ABOVE</span></a>, -<a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-SCALE-HAS-MARKS-BELOW:CAPS" title="GTK_STYLE_CLASS_SCALE_HAS_MARKS_BELOW"><span class="type">GTK_STYLE_CLASS_SCALE_HAS_MARKS_BELOW</span></a>, -<a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-HEADER:CAPS" title="GTK_STYLE_CLASS_HEADER"><span class="type">GTK_STYLE_CLASS_HEADER</span></a>, -<a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-ACCELERATOR:CAPS" title="GTK_STYLE_CLASS_ACCELERATOR"><span class="type">GTK_STYLE_CLASS_ACCELERATOR</span></a>, -<a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-GRIP:CAPS" title="GTK_STYLE_CLASS_GRIP"><span class="type">GTK_STYLE_CLASS_GRIP</span></a>, -<a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-DOCK:CAPS" title="GTK_STYLE_CLASS_DOCK"><span class="type">GTK_STYLE_CLASS_DOCK</span></a>, -<a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-PROGRESSBAR:CAPS" title="GTK_STYLE_CLASS_PROGRESSBAR"><span class="type">GTK_STYLE_CLASS_PROGRESSBAR</span></a>, -<a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-SPINNER:CAPS" title="GTK_STYLE_CLASS_SPINNER"><span class="type">GTK_STYLE_CLASS_SPINNER</span></a>, -<a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-EXPANDER:CAPS" title="GTK_STYLE_CLASS_EXPANDER"><span class="type">GTK_STYLE_CLASS_EXPANDER</span></a>, -<a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-SPINBUTTON:CAPS" title="GTK_STYLE_CLASS_SPINBUTTON"><span class="type">GTK_STYLE_CLASS_SPINBUTTON</span></a>, -<a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-NOTEBOOK:CAPS" title="GTK_STYLE_CLASS_NOTEBOOK"><span class="type">GTK_STYLE_CLASS_NOTEBOOK</span></a>, -<a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-VIEW:CAPS" title="GTK_STYLE_CLASS_VIEW"><span class="type">GTK_STYLE_CLASS_VIEW</span></a>, -<a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-SIDEBAR:CAPS" title="GTK_STYLE_CLASS_SIDEBAR"><span class="type">GTK_STYLE_CLASS_SIDEBAR</span></a>, -<a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-IMAGE:CAPS" title="GTK_STYLE_CLASS_IMAGE"><span class="type">GTK_STYLE_CLASS_IMAGE</span></a>, -<a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-HIGHLIGHT:CAPS" title="GTK_STYLE_CLASS_HIGHLIGHT"><span class="type">GTK_STYLE_CLASS_HIGHLIGHT</span></a>, -<a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-FRAME:CAPS" title="GTK_STYLE_CLASS_FRAME"><span class="type">GTK_STYLE_CLASS_FRAME</span></a>, -<a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-DND:CAPS" title="GTK_STYLE_CLASS_DND"><span class="type">GTK_STYLE_CLASS_DND</span></a>, -<a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-PANE-SEPARATOR:CAPS" title="GTK_STYLE_CLASS_PANE_SEPARATOR"><span class="type">GTK_STYLE_CLASS_PANE_SEPARATOR</span></a>, -<a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-SEPARATOR:CAPS" title="GTK_STYLE_CLASS_SEPARATOR"><span class="type">GTK_STYLE_CLASS_SEPARATOR</span></a>, -<a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-INFO:CAPS" title="GTK_STYLE_CLASS_INFO"><span class="type">GTK_STYLE_CLASS_INFO</span></a>, -<a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-WARNING:CAPS" title="GTK_STYLE_CLASS_WARNING"><span class="type">GTK_STYLE_CLASS_WARNING</span></a>, -<a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-QUESTION:CAPS" title="GTK_STYLE_CLASS_QUESTION"><span class="type">GTK_STYLE_CLASS_QUESTION</span></a>, -<a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-ERROR:CAPS" title="GTK_STYLE_CLASS_ERROR"><span class="type">GTK_STYLE_CLASS_ERROR</span></a>, -<a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-HORIZONTAL:CAPS" title="GTK_STYLE_CLASS_HORIZONTAL"><span class="type">GTK_STYLE_CLASS_HORIZONTAL</span></a>, -<a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-VERTICAL:CAPS" title="GTK_STYLE_CLASS_VERTICAL"><span class="type">GTK_STYLE_CLASS_VERTICAL</span></a>, -<a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-TOP:CAPS" title="GTK_STYLE_CLASS_TOP"><span class="type">GTK_STYLE_CLASS_TOP</span></a>, -<a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-BOTTOM:CAPS" title="GTK_STYLE_CLASS_BOTTOM"><span class="type">GTK_STYLE_CLASS_BOTTOM</span></a>, -<a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-LEFT:CAPS" title="GTK_STYLE_CLASS_LEFT"><span class="type">GTK_STYLE_CLASS_LEFT</span></a>, -<a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-RIGHT:CAPS" title="GTK_STYLE_CLASS_RIGHT"><span class="type">GTK_STYLE_CLASS_RIGHT</span></a>, -</p> -<p> -Widgets can also add regions with flags to their context. -The regions used by GTK+ widgets are: -</p> -<div class="informaltable"><table border="1"> -<colgroup> -<col> -<col> -<col> -<col> -</colgroup> -<thead><tr> -<th>Region</th> -<th>Flags</th> -<th>Macro</th> -<th>Used by</th> -</tr></thead> -<tbody> -<tr> -<td>row</td> -<td>even, odd</td> -<td>GTK_STYLE_REGION_ROW</td> -<td><a class="link" href="GtkTreeView.html" title="GtkTreeView"><span class="type">GtkTreeView</span></a></td> -</tr> -<tr> -<td>column</td> -<td>first, last, sorted</td> -<td>GTK_STYLE_REGION_COLUMN</td> -<td><a class="link" href="GtkTreeView.html" title="GtkTreeView"><span class="type">GtkTreeView</span></a></td> -</tr> -<tr> -<td>column-header</td> -<td> </td> -<td>GTK_STYLE_REGION_COLUMN_HEADER</td> -<td> </td> -</tr> -<tr> -<td>tab</td> -<td>even, odd, first, last</td> -<td>GTK_STYLE_REGION_TAB</td> -<td><a class="link" href="GtkNotebook.html" title="GtkNotebook"><span class="type">GtkNotebook</span></a></td> -</tr> -</tbody> -</table></div> -<p> -</p> -</div> -<p> -</p> -<hr> -<div class="refsect2"> -<a name="gtkstylecontext-custom-styling"></a><h3>Custom styling in UI libraries and applications</h3> -<p> -If you are developing a library with custom <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>s that -render differently than standard components, you may need to add a -<a class="link" href="GtkStyleProvider.html" title="GtkStyleProvider"><span class="type">GtkStyleProvider</span></a> yourself with the <a class="link" href="GtkStyleProvider.html#GTK-STYLE-PROVIDER-PRIORITY-FALLBACK:CAPS" title="GTK_STYLE_PROVIDER_PRIORITY_FALLBACK"><code class="literal">GTK_STYLE_PROVIDER_PRIORITY_FALLBACK</code></a> -priority, either a <a class="link" href="GtkCssProvider.html" title="GtkCssProvider"><span class="type">GtkCssProvider</span></a> or a custom object implementing the -<a class="link" href="GtkStyleProvider.html" title="GtkStyleProvider"><span class="type">GtkStyleProvider</span></a> interface. This way theming engines may still attempt -to style your UI elements in a different way if needed so. -</p> -<p> -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 <a class="link" href="GtkStyleProvider.html" title="GtkStyleProvider"><span class="type">GtkStyleProvider</span></a> with the <a class="link" href="GtkStyleProvider.html#GTK-STYLE-PROVIDER-PRIORITY-APPLICATION:CAPS" title="GTK_STYLE_PROVIDER_PRIORITY_APPLICATION"><code class="literal">GTK_STYLE_PROVIDER_PRIORITY_APPLICATION</code></a> -priority, keep in mind that the user settings in -<code class="filename"><em class="replaceable"><code>XDG_CONFIG_HOME</code></em>/gtk-3.0/gtk.css</code> will -still take precedence over your changes, as it uses the -<a class="link" href="GtkStyleProvider.html#GTK-STYLE-PROVIDER-PRIORITY-USER:CAPS" title="GTK_STYLE_PROVIDER_PRIORITY_USER"><code class="literal">GTK_STYLE_PROVIDER_PRIORITY_USER</code></a> priority. -</p> -<p> -If a custom theming engine is needed, you probably want to implement a -<a class="link" href="GtkStyleProvider.html" title="GtkStyleProvider"><span class="type">GtkStyleProvider</span></a> yourself so it points to your <a class="link" href="GtkThemingEngine.html" title="GtkThemingEngine"><span class="type">GtkThemingEngine</span></a> -implementation, as <a class="link" href="GtkCssProvider.html" title="GtkCssProvider"><span class="type">GtkCssProvider</span></a> uses <a class="link" href="GtkThemingEngine.html#gtk-theming-engine-load" title="gtk_theming_engine_load ()"><code class="function">gtk_theming_engine_load()</code></a> -which loads the theming engine module from the standard paths. -</p> -</div> -<p> -</p> -</div> -<div class="refsect1"> -<a name="GtkStyleContext.details"></a><h2>Details</h2> -<div class="refsect2"> -<a name="GTK-STYLE-PROPERTY-BACKGROUND-COLOR:CAPS"></a><h3>GTK_STYLE_PROPERTY_BACKGROUND_COLOR</h3> -<pre class="programlisting">#define GTK_STYLE_PROPERTY_BACKGROUND_COLOR "background-color" -</pre> -<p> -A property holding the background color of rendered elements as a <a href="http://developer.gnome.org/gdk/gdk3-RGBA-Colors.html#GdkRGBA"><span class="type">GdkRGBA</span></a>. -</p> -</div> -<hr> -<div class="refsect2"> -<a name="GTK-STYLE-PROPERTY-COLOR:CAPS"></a><h3>GTK_STYLE_PROPERTY_COLOR</h3> -<pre class="programlisting">#define GTK_STYLE_PROPERTY_COLOR "color" -</pre> -<p> -A property holding the foreground color of rendered elements as a <a href="http://developer.gnome.org/gdk/gdk3-RGBA-Colors.html#GdkRGBA"><span class="type">GdkRGBA</span></a>. -</p> -</div> -<hr> -<div class="refsect2"> -<a name="GTK-STYLE-PROPERTY-FONT:CAPS"></a><h3>GTK_STYLE_PROPERTY_FONT</h3> -<pre class="programlisting">#define GTK_STYLE_PROPERTY_FONT "font" -</pre> -<p> -A property holding the font properties used when rendering text -as a <a href="/home/mclasen/gnome/share/gtk-doc/html/pango/pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a>. -</p> -</div> -<hr> -<div class="refsect2"> -<a name="GTK-STYLE-PROPERTY-MARGIN:CAPS"></a><h3>GTK_STYLE_PROPERTY_MARGIN</h3> -<pre class="programlisting">#define GTK_STYLE_PROPERTY_MARGIN "margin" -</pre> -<p> -A property holding the rendered element's margin as a <a class="link" href="GtkStyleContext.html#GtkBorder"><span class="type">GtkBorder</span></a>. The -margin is defined as the spacing between the border of the element -and its surrounding elements. It is external to <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>s's -size allocations, and the most external spacing property of the -padding/border/margin series. -</p> -</div> -<hr> -<div class="refsect2"> -<a name="GTK-STYLE-PROPERTY-PADDING:CAPS"></a><h3>GTK_STYLE_PROPERTY_PADDING</h3> -<pre class="programlisting">#define GTK_STYLE_PROPERTY_PADDING "padding" -</pre> -<p> -A property holding the rendered element's padding as a <a class="link" href="GtkStyleContext.html#GtkBorder"><span class="type">GtkBorder</span></a>. The -padding is defined as the spacing between the inner part of the element border -and its child. It's the innermost spacing property of the padding/border/margin -series. -</p> -</div> -<hr> -<div class="refsect2"> -<a name="GTK-STYLE-PROPERTY-BORDER-WIDTH:CAPS"></a><h3>GTK_STYLE_PROPERTY_BORDER_WIDTH</h3> -<pre class="programlisting">#define GTK_STYLE_PROPERTY_BORDER_WIDTH "border-width" -</pre> -<p> -A property holding the rendered element's border width in pixels as -a <a class="link" href="GtkStyleContext.html#GtkBorder"><span class="type">GtkBorder</span></a>. The border is the intermediary spacing property of the -padding/border/margin series. -</p> -<p> -<a class="link" href="GtkStyleContext.html#gtk-render-frame" title="gtk_render_frame ()"><code class="function">gtk_render_frame()</code></a> uses this property to find out the frame line width, -so <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>s rendering frames may need to add up this padding when -requesting size -</p> -</div> -<hr> -<div class="refsect2"> -<a name="GTK-STYLE-PROPERTY-BORDER-RADIUS:CAPS"></a><h3>GTK_STYLE_PROPERTY_BORDER_RADIUS</h3> -<pre class="programlisting">#define GTK_STYLE_PROPERTY_BORDER_RADIUS "border-radius" -</pre> -<p> -A property holding the rendered element's border radius in pixels as a <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a>. -</p> -</div> -<hr> -<div class="refsect2"> -<a name="GTK-STYLE-PROPERTY-BORDER-STYLE:CAPS"></a><h3>GTK_STYLE_PROPERTY_BORDER_STYLE</h3> -<pre class="programlisting">#define GTK_STYLE_PROPERTY_BORDER_STYLE "border-style" -</pre> -<p> -A property holding the element's border style as a <a class="link" href="gtk3-Standard-Enumerations.html#GtkBorderStyle" title="enum GtkBorderStyle"><span class="type">GtkBorderStyle</span></a>. -</p> -</div> -<hr> -<div class="refsect2"> -<a name="GTK-STYLE-PROPERTY-BORDER-COLOR:CAPS"></a><h3>GTK_STYLE_PROPERTY_BORDER_COLOR</h3> -<pre class="programlisting">#define GTK_STYLE_PROPERTY_BORDER_COLOR "border-color" -</pre> -<p> -A property holding the element's border color as a <a href="http://developer.gnome.org/gdk/gdk3-RGBA-Colors.html#GdkRGBA"><span class="type">GdkRGBA</span></a>. -</p> -</div> -<hr> -<div class="refsect2"> -<a name="GTK-STYLE-PROPERTY-BACKGROUND-IMAGE:CAPS"></a><h3>GTK_STYLE_PROPERTY_BACKGROUND_IMAGE</h3> -<pre class="programlisting">#define GTK_STYLE_PROPERTY_BACKGROUND_IMAGE "background-image" -</pre> -<p> -A property holding the element's background as a <a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-pattern-t.html#cairo-pattern-t"><span class="type">cairo_pattern_t</span></a>. -</p> -</div> -<hr> -<div class="refsect2"> -<a name="GTK-STYLE-CLASS-BACKGROUND:CAPS"></a><h3>GTK_STYLE_CLASS_BACKGROUND</h3> -<pre class="programlisting">#define GTK_STYLE_CLASS_BACKGROUND "background" -</pre> -<p> -A CSS class to match the window background. -</p> -</div> -<hr> -<div class="refsect2"> -<a name="GTK-STYLE-CLASS-BUTTON:CAPS"></a><h3>GTK_STYLE_CLASS_BUTTON</h3> -<pre class="programlisting">#define GTK_STYLE_CLASS_BUTTON "button" -</pre> -<p> -A CSS class to match buttons. -</p> -<p> -This is used by <a class="link" href="GtkButton.html" title="GtkButton"><span class="type">GtkButton</span></a> and its subclasses, as well -as various other widget pieces that appear like buttons, -e.g. the arrows in a <a class="link" href="GtkCalendar.html" title="GtkCalendar"><span class="type">GtkCalendar</span></a>. -</p> -</div> -<hr> -<div class="refsect2"> -<a name="GTK-STYLE-CLASS-CALENDAR:CAPS"></a><h3>GTK_STYLE_CLASS_CALENDAR</h3> -<pre class="programlisting">#define GTK_STYLE_CLASS_CALENDAR "calendar" -</pre> -<p> -A CSS class to match calendars. -</p> -<p> -This is not used by GTK+ itself, currently. -</p> -</div> -<hr> -<div class="refsect2"> -<a name="GTK-STYLE-CLASS-CELL:CAPS"></a><h3>GTK_STYLE_CLASS_CELL</h3> -<pre class="programlisting">#define GTK_STYLE_CLASS_CELL "cell" -</pre> -<p> -A CSS class to match content rendered in cell views. -</p> -<p> -This is used by cell renderers, e.g. in <a class="link" href="GtkIconView.html" title="GtkIconView"><span class="type">GtkIconView</span></a> -and <a class="link" href="GtkTreeView.html" title="GtkTreeView"><span class="type">GtkTreeView</span></a>. -</p> -</div> -<hr> -<div class="refsect2"> -<a name="GTK-STYLE-CLASS-COMBOBOX-ENTRY:CAPS"></a><h3>GTK_STYLE_CLASS_COMBOBOX_ENTRY</h3> -<pre class="programlisting">#define GTK_STYLE_CLASS_COMBOBOX_ENTRY "combobox-entry" -</pre> -<p> -A CSS class to match combobox entries. -</p> -<p> -This is used by <a class="link" href="GtkComboBox.html" title="GtkComboBox"><span class="type">GtkComboBox</span></a>. -</p> -</div> -<hr> -<div class="refsect2"> -<a name="GTK-STYLE-CLASS-CHECK:CAPS"></a><h3>GTK_STYLE_CLASS_CHECK</h3> -<pre class="programlisting">#define GTK_STYLE_CLASS_CHECK "check" -</pre> -<p> -A CSS class to match check boxes. -</p> -<p> -This is used in <a class="link" href="GtkCheckButton.html" title="GtkCheckButton"><span class="type">GtkCheckButton</span></a>, <a class="link" href="GtkCheckMenuItem.html" title="GtkCheckMenuItem"><span class="type">GtkCheckMenuItem</span></a> and -<a class="link" href="GtkCellRendererToggle.html" title="GtkCellRendererToggle"><span class="type">GtkCellRendererToggle</span></a>. -</p> -</div> -<hr> -<div class="refsect2"> -<a name="GTK-STYLE-CLASS-DEFAULT:CAPS"></a><h3>GTK_STYLE_CLASS_DEFAULT</h3> -<pre class="programlisting">#define GTK_STYLE_CLASS_DEFAULT "default" -</pre> -<p> -A CSS class to match the default widget. -</p> -<p> -This is used by <a class="link" href="GtkButton.html" title="GtkButton"><span class="type">GtkButton</span></a>. -</p> -</div> -<hr> -<div class="refsect2"> -<a name="GTK-STYLE-CLASS-ENTRY:CAPS"></a><h3>GTK_STYLE_CLASS_ENTRY</h3> -<pre class="programlisting">#define GTK_STYLE_CLASS_ENTRY "entry" -</pre> -<p> -A CSS class to match text entries. -</p> -<p> -This is used by <a class="link" href="GtkEntry.html" title="GtkEntry"><span class="type">GtkEntry</span></a>. -</p> -</div> -<hr> -<div class="refsect2"> -<a name="GTK-STYLE-CLASS-HEADER:CAPS"></a><h3>GTK_STYLE_CLASS_HEADER</h3> -<pre class="programlisting">#define GTK_STYLE_CLASS_HEADER "header" -</pre> -<p> -A CSS class to match a header element. -</p> -<p> -This is used for the header in <a class="link" href="GtkCalendar.html" title="GtkCalendar"><span class="type">GtkCalendar</span></a>. -</p> -</div> -<hr> -<div class="refsect2"> -<a name="GTK-STYLE-CLASS-MENU:CAPS"></a><h3>GTK_STYLE_CLASS_MENU</h3> -<pre class="programlisting">#define GTK_STYLE_CLASS_MENU "menu" -</pre> -<p> -A CSS class to match popup menus. -</p> -<p> -This is used in <a class="link" href="GtkMenu.html" title="GtkMenu"><span class="type">GtkMenu</span></a>. -</p> -</div> -<hr> -<div class="refsect2"> -<a name="GTK-STYLE-CLASS-RADIO:CAPS"></a><h3>GTK_STYLE_CLASS_RADIO</h3> -<pre class="programlisting">#define GTK_STYLE_CLASS_RADIO "radio" -</pre> -<p> -A CSS class to match radio buttons. -</p> -<p> -This is used in <a class="link" href="GtkRadioButton.html" title="GtkRadioButton"><span class="type">GtkRadioButton</span></a>, <a class="link" href="GtkRadioMenuItem.html" title="GtkRadioMenuItem"><span class="type">GtkRadioMenuItem</span></a> and -<a class="link" href="GtkCellRendererToggle.html" title="GtkCellRendererToggle"><span class="type">GtkCellRendererToggle</span></a>. -</p> -</div> -<hr> -<div class="refsect2"> -<a name="GTK-STYLE-CLASS-RUBBERBAND:CAPS"></a><h3>GTK_STYLE_CLASS_RUBBERBAND</h3> -<pre class="programlisting">#define GTK_STYLE_CLASS_RUBBERBAND "rubberband" -</pre> -<p> -A CSS class to match the rubberband selection rectangle. -</p> -<p> -This is used in <a class="link" href="GtkIconView.html" title="GtkIconView"><span class="type">GtkIconView</span></a> and <a class="link" href="GtkTreeView.html" title="GtkTreeView"><span class="type">GtkTreeView</span></a>. -</p> -</div> -<hr> -<div class="refsect2"> -<a name="GTK-STYLE-CLASS-SCROLLBAR:CAPS"></a><h3>GTK_STYLE_CLASS_SCROLLBAR</h3> -<pre class="programlisting">#define GTK_STYLE_CLASS_SCROLLBAR "scrollbar" -</pre> -<p> -A CSS class to match scrollbars. -</p> -</div> -<hr> -<div class="refsect2"> -<a name="GTK-STYLE-CLASS-SCROLLBARS-JUNCTION:CAPS"></a><h3>GTK_STYLE_CLASS_SCROLLBARS_JUNCTION</h3> -<pre class="programlisting">#define GTK_STYLE_CLASS_SCROLLBARS_JUNCTION "scrollbars-junction" -</pre> -<p> -A CSS class to match the junction area between an horizontal -and vertical scrollbar, when they're both shown. -</p> -<p> -This is used in <a class="link" href="GtkScrolledWindow.html" title="GtkScrolledWindow"><span class="type">GtkScrolledWindow</span></a>. -</p> -</div> -<hr> -<div class="refsect2"> -<a name="GTK-STYLE-CLASS-SLIDER:CAPS"></a><h3>GTK_STYLE_CLASS_SLIDER</h3> -<pre class="programlisting">#define GTK_STYLE_CLASS_SLIDER "slider" -</pre> -<p> -A CSS class to match sliders. -</p> -<p> -This is used by <a class="link" href="GtkSwitch.html" title="GtkSwitch"><span class="type">GtkSwitch</span></a> and <a class="link" href="GtkRange.html" title="GtkRange"><span class="type">GtkRange</span></a> and its subclasses. -</p> -</div> -<hr> -<div class="refsect2"> -<a name="GTK-STYLE-CLASS-TOOLTIP:CAPS"></a><h3>GTK_STYLE_CLASS_TOOLTIP</h3> -<pre class="programlisting">#define GTK_STYLE_CLASS_TOOLTIP "tooltip" -</pre> -<p> -A CSS class to match tooltip windows. -</p> -</div> -<hr> -<div class="refsect2"> -<a name="GTK-STYLE-CLASS-TROUGH:CAPS"></a><h3>GTK_STYLE_CLASS_TROUGH</h3> -<pre class="programlisting">#define GTK_STYLE_CLASS_TROUGH "trough" -</pre> -<p> -A CSS class to match troughs, as in scrollbars and progressbars. -</p> -<p> -This is used in <a class="link" href="GtkRange.html" title="GtkRange"><span class="type">GtkRange</span></a> and its subclasses, <a class="link" href="GtkProgressBar.html" title="GtkProgressBar"><span class="type">GtkProgressBar</span></a> -and <a class="link" href="GtkSwitch.html" title="GtkSwitch"><span class="type">GtkSwitch</span></a>. -</p> -</div> -<hr> -<div class="refsect2"> -<a name="GTK-STYLE-CLASS-ACCELERATOR:CAPS"></a><h3>GTK_STYLE_CLASS_ACCELERATOR</h3> -<pre class="programlisting">#define GTK_STYLE_CLASS_ACCELERATOR "accelerator" -</pre> -<p> -A CSS class to match an accelerator. -</p> -<p> -This is used for the accelerator in <a class="link" href="GtkAccelLabel.html" title="GtkAccelLabel"><span class="type">GtkAccelLabel</span></a>. -</p> -</div> -<hr> -<div class="refsect2"> -<a name="GTK-STYLE-CLASS-DOCK:CAPS"></a><h3>GTK_STYLE_CLASS_DOCK</h3> -<pre class="programlisting">#define GTK_STYLE_CLASS_DOCK "dock" -</pre> -<p> -A CSS class defining a dock area. -</p> -<p> -This is used by <a class="link" href="GtkHandleBox.html" title="GtkHandleBox"><span class="type">GtkHandleBox</span></a>. -</p> -</div> -<hr> -<div class="refsect2"> -<a name="GTK-STYLE-CLASS-GRIP:CAPS"></a><h3>GTK_STYLE_CLASS_GRIP</h3> -<pre class="programlisting">#define GTK_STYLE_CLASS_GRIP "grip" -</pre> -<p> -A CSS class defining a resize grip. -</p> -<p> -This is used for the resize grip in <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>. -</p> -</div> -<hr> -<div class="refsect2"> -<a name="GTK-STYLE-CLASS-MENUBAR:CAPS"></a><h3>GTK_STYLE_CLASS_MENUBAR</h3> -<pre class="programlisting">#define GTK_STYLE_CLASS_MENUBAR "menubar" -</pre> -<p> -A CSS class to menubars. -</p> -<p> -This is used in <a class="link" href="GtkMenuBar.html" title="GtkMenuBar"><span class="type">GtkMenuBar</span></a>. -</p> -</div> -<hr> -<div class="refsect2"> -<a name="GTK-STYLE-CLASS-MENUITEM:CAPS"></a><h3>GTK_STYLE_CLASS_MENUITEM</h3> -<pre class="programlisting">#define GTK_STYLE_CLASS_MENUITEM "menuitem" -</pre> -<p> -A CSS class to match menu items. -</p> -<p> -This is used in <a class="link" href="GtkMenuItem.html" title="GtkMenuItem"><span class="type">GtkMenuItem</span></a> and its subclasses. -</p> -</div> -<hr> -<div class="refsect2"> -<a name="GTK-STYLE-CLASS-PROGRESSBAR:CAPS"></a><h3>GTK_STYLE_CLASS_PROGRESSBAR</h3> -<pre class="programlisting">#define GTK_STYLE_CLASS_PROGRESSBAR "progressbar" -</pre> -<p> -A CSS class to use when rendering activity as a progressbar. -</p> -<p> -This is used in <a class="link" href="GtkProgressBar.html" title="GtkProgressBar"><span class="type">GtkProgressBar</span></a> and when drawing progress -inside a <a class="link" href="GtkEntry.html" title="GtkEntry"><span class="type">GtkEntry</span></a> or in <a class="link" href="GtkCellRendererProgress.html" title="GtkCellRendererProgress"><span class="type">GtkCellRendererProgress</span></a>. -</p> -</div> -<hr> -<div class="refsect2"> -<a name="GTK-STYLE-CLASS-SPINNER:CAPS"></a><h3>GTK_STYLE_CLASS_SPINNER</h3> -<pre class="programlisting">#define GTK_STYLE_CLASS_SPINNER "spinner" -</pre> -<p> -A CSS class to use when rendering activity as a 'spinner'. -</p> -<p> -This is used by <a class="link" href="GtkSpinner.html" title="GtkSpinner"><span class="type">GtkSpinner</span></a> and <a class="link" href="GtkCellRendererSpinner.html" title="GtkCellRendererSpinner"><span class="type">GtkCellRendererSpinner</span></a>. -</p> -</div> -<hr> -<div class="refsect2"> -<a name="GTK-STYLE-CLASS-TOOLBAR:CAPS"></a><h3>GTK_STYLE_CLASS_TOOLBAR</h3> -<pre class="programlisting">#define GTK_STYLE_CLASS_TOOLBAR "toolbar" -</pre> -<p> -A CSS class to match toolbars. -</p> -<p> -This is used in <a class="link" href="GtkToolbar.html" title="GtkToolbar"><span class="type">GtkToolbar</span></a>. -</p> -</div> -<hr> -<div class="refsect2"> -<a name="GTK-STYLE-CLASS-PRIMARY-TOOLBAR:CAPS"></a><h3>GTK_STYLE_CLASS_PRIMARY_TOOLBAR</h3> -<pre class="programlisting">#define GTK_STYLE_CLASS_PRIMARY_TOOLBAR "primary-toolbar" -</pre> -<p> -A CSS class to match primary toolbars. -</p> -<p> -This should be used for the 'main' toolbar of an application, -right below its menubar. -</p> -</div> -<hr> -<div class="refsect2"> -<a name="GTK-STYLE-CLASS-INLINE-TOOLBAR:CAPS"></a><h3>GTK_STYLE_CLASS_INLINE_TOOLBAR</h3> -<pre class="programlisting">#define GTK_STYLE_CLASS_INLINE_TOOLBAR "inline-toolbar" -</pre> -<p> -A CSS class to match inline toolbars. -</p> -<p> -This should be used for toolbars that are used to hold -actions below lists, as seen e.g. in the left pane of the -file chooser. -</p> -</div> -<hr> -<div class="refsect2"> -<a name="GTK-STYLE-CLASS-PANE-SEPARATOR:CAPS"></a><h3>GTK_STYLE_CLASS_PANE_SEPARATOR</h3> -<pre class="programlisting">#define GTK_STYLE_CLASS_PANE_SEPARATOR "pane-separator" -</pre> -<p> -A CSS class for a pane separator, such as those in <a class="link" href="GtkPaned.html" title="GtkPaned"><span class="type">GtkPaned</span></a>. -</p> -<p> -Used in <a class="link" href="GtkPaned.html" title="GtkPaned"><span class="type">GtkPaned</span></a>. -</p> -</div> -<hr> -<div class="refsect2"> -<a name="GTK-STYLE-CLASS-SEPARATOR:CAPS"></a><h3>GTK_STYLE_CLASS_SEPARATOR</h3> -<pre class="programlisting">#define GTK_STYLE_CLASS_SEPARATOR "separator" -</pre> -<p> -A CSS class for a separator. -</p> -<p> -This is used in <a class="link" href="GtkSeparator.html" title="GtkSeparator"><span class="type">GtkSeparator</span></a>, <a class="link" href="GtkSeparatorMenuItem.html" title="GtkSeparatorMenuItem"><span class="type">GtkSeparatorMenuItem</span></a>, -<a class="link" href="GtkSeparatorToolItem.html" title="GtkSeparatorToolItem"><span class="type">GtkSeparatorToolItem</span></a>, and when drawing separators in <a class="link" href="GtkTreeView.html" title="GtkTreeView"><span class="type">GtkTreeView</span></a>. -</p> -</div> -<hr> -<div class="refsect2"> -<a name="GTK-STYLE-CLASS-SIDEBAR:CAPS"></a><h3>GTK_STYLE_CLASS_SIDEBAR</h3> -<pre class="programlisting">#define GTK_STYLE_CLASS_SIDEBAR "sidebar" -</pre> -<p> -A CSS class defining a sidebar, such as the left side in -a file chooser. -</p> -<p> -This is used in <a class="link" href="GtkFileChooser.html" title="GtkFileChooser"><span class="type">GtkFileChooser</span></a> and in <a class="link" href="GtkAssistant.html" title="GtkAssistant"><span class="type">GtkAssistant</span></a>. -</p> -</div> -<hr> -<div class="refsect2"> -<a name="GTK-STYLE-CLASS-DND:CAPS"></a><h3>GTK_STYLE_CLASS_DND</h3> -<pre class="programlisting">#define GTK_STYLE_CLASS_DND "dnd" -</pre> -<p> -A CSS class for a drag-and-drop indicator. -</p> -<p> -This is used when drawing an outline around a potential -drop target during DND. -</p> -</div> -<hr> -<div class="refsect2"> -<a name="GTK-STYLE-CLASS-ERROR:CAPS"></a><h3>GTK_STYLE_CLASS_ERROR</h3> -<pre class="programlisting">#define GTK_STYLE_CLASS_ERROR "error" -</pre> -<p> -A CSS class for an area displaying an error message, -such as those in infobars. -</p> -<p> -This is used by <a class="link" href="GtkInfoBar.html" title="GtkInfoBar"><span class="type">GtkInfoBar</span></a>. -</p> -</div> -<hr> -<div class="refsect2"> -<a name="GTK-STYLE-CLASS-EXPANDER:CAPS"></a><h3>GTK_STYLE_CLASS_EXPANDER</h3> -<pre class="programlisting">#define GTK_STYLE_CLASS_EXPANDER "expander" -</pre> -<p> -A CSS class defining an expander, such as those in treeviews. -</p> -<p> -Used for drawing expanders in <a class="link" href="GtkTreeView.html" title="GtkTreeView"><span class="type">GtkTreeView</span></a>, GtkExpander and -<a class="link" href="GtkToolItemGroup.html" title="GtkToolItemGroup"><span class="type">GtkToolItemGroup</span></a>. -</p> -</div> -<hr> -<div class="refsect2"> -<a name="GTK-STYLE-CLASS-FRAME:CAPS"></a><h3>GTK_STYLE_CLASS_FRAME</h3> -<pre class="programlisting">#define GTK_STYLE_CLASS_FRAME "frame" -</pre> -<p> -A CSS class defining a frame delimiting content, such as -<a class="link" href="GtkFrame.html" title="GtkFrame"><span class="type">GtkFrame</span></a> or the scrolled window frame around the -scrollable area. -</p> -<p> -This is used in <a class="link" href="GtkFrame.html" title="GtkFrame"><span class="type">GtkFrame</span></a> and <a class="link" href="GtkScrollbar.html" title="GtkScrollbar"><span class="type">GtkScrollbar</span></a>. -</p> -</div> -<hr> -<div class="refsect2"> -<a name="GTK-STYLE-CLASS-HIGHLIGHT:CAPS"></a><h3>GTK_STYLE_CLASS_HIGHLIGHT</h3> -<pre class="programlisting">#define GTK_STYLE_CLASS_HIGHLIGHT "highlight" -</pre> -<p> -A CSS class defining a highlighted area, such as headings in -assistants and calendars. -</p> -<p> -This is used in <a class="link" href="GtkAssistant.html" title="GtkAssistant"><span class="type">GtkAssistant</span></a> and <a class="link" href="GtkCalendar.html" title="GtkCalendar"><span class="type">GtkCalendar</span></a>. -</p> -</div> -<hr> -<div class="refsect2"> -<a name="GTK-STYLE-CLASS-IMAGE:CAPS"></a><h3>GTK_STYLE_CLASS_IMAGE</h3> -<pre class="programlisting">#define GTK_STYLE_CLASS_IMAGE "image" -</pre> -<p> -A CSS class defining an image, such as the icon in an entry. -</p> -<p> -This is used when rendering icons in <a class="link" href="GtkEntry.html" title="GtkEntry"><span class="type">GtkEntry</span></a>. -</p> -</div> -<hr> -<div class="refsect2"> -<a name="GTK-STYLE-CLASS-INFO:CAPS"></a><h3>GTK_STYLE_CLASS_INFO</h3> -<pre class="programlisting">#define GTK_STYLE_CLASS_INFO "info" -</pre> -<p> -A CSS class for an area displaying an informational message, -such as those in infobars. -</p> -<p> -This is used by <a class="link" href="GtkInfoBar.html" title="GtkInfoBar"><span class="type">GtkInfoBar</span></a>. -</p> -</div> -<hr> -<div class="refsect2"> -<a name="GTK-STYLE-CLASS-MARK:CAPS"></a><h3>GTK_STYLE_CLASS_MARK</h3> -<pre class="programlisting">#define GTK_STYLE_CLASS_MARK "mark" -</pre> -<p> -A CSS class defining marks in a widget, such as in scales. -</p> -<p> -Used in <a class="link" href="GtkScale.html" title="GtkScale"><span class="type">GtkScale</span></a>. -</p> -</div> -<hr> -<div class="refsect2"> -<a name="GTK-STYLE-CLASS-NOTEBOOK:CAPS"></a><h3>GTK_STYLE_CLASS_NOTEBOOK</h3> -<pre class="programlisting">#define GTK_STYLE_CLASS_NOTEBOOK "notebook" -</pre> -<p> -A CSS class defining a notebook. -</p> -<p> -Used in <a class="link" href="GtkNotebook.html" title="GtkNotebook"><span class="type">GtkNotebook</span></a>. -</p> -</div> -<hr> -<div class="refsect2"> -<a name="GTK-STYLE-CLASS-QUESTION:CAPS"></a><h3>GTK_STYLE_CLASS_QUESTION</h3> -<pre class="programlisting">#define GTK_STYLE_CLASS_QUESTION "question" -</pre> -<p> -A CSS class for an area displaying a question to the user, -such as those in infobars. -</p> -<p> -This is used by <a class="link" href="GtkInfoBar.html" title="GtkInfoBar"><span class="type">GtkInfoBar</span></a>. -</p> -</div> -<hr> -<div class="refsect2"> -<a name="GTK-STYLE-CLASS-SCALE:CAPS"></a><h3>GTK_STYLE_CLASS_SCALE</h3> -<pre class="programlisting">#define GTK_STYLE_CLASS_SCALE "scale" -</pre> -<p> -A CSS class to match scale widgets. -</p> -<p> -This is used in <a class="link" href="GtkScale.html" title="GtkScale"><span class="type">GtkScale</span></a>. -</p> -</div> -<hr> -<div class="refsect2"> -<a name="GTK-STYLE-CLASS-SCALE-HAS-MARKS-ABOVE:CAPS"></a><h3>GTK_STYLE_CLASS_SCALE_HAS_MARKS_ABOVE</h3> -<pre class="programlisting">#define GTK_STYLE_CLASS_SCALE_HAS_MARKS_ABOVE "scale-has-marks-above" -</pre> -<p> -A CSS class to match scale widgets with marks attached, -all the marks are above for horizontal <a class="link" href="GtkScale.html" title="GtkScale"><span class="type">GtkScale</span></a>. -left for vertical <a class="link" href="GtkScale.html" title="GtkScale"><span class="type">GtkScale</span></a>. -</p> -</div> -<hr> -<div class="refsect2"> -<a name="GTK-STYLE-CLASS-SCALE-HAS-MARKS-BELOW:CAPS"></a><h3>GTK_STYLE_CLASS_SCALE_HAS_MARKS_BELOW</h3> -<pre class="programlisting">#define GTK_STYLE_CLASS_SCALE_HAS_MARKS_BELOW "scale-has-marks-below" -</pre> -<p> -A CSS class to match scale widgets with marks attached, -all the marks are below for horizontal <a class="link" href="GtkScale.html" title="GtkScale"><span class="type">GtkScale</span></a>, -right for vertical <a class="link" href="GtkScale.html" title="GtkScale"><span class="type">GtkScale</span></a>. -</p> -</div> -<hr> -<div class="refsect2"> -<a name="GTK-STYLE-CLASS-SPINBUTTON:CAPS"></a><h3>GTK_STYLE_CLASS_SPINBUTTON</h3> -<pre class="programlisting">#define GTK_STYLE_CLASS_SPINBUTTON "spinbutton" -</pre> -<p> -A CSS class defining an spinbutton. -</p> -<p> -This is used in <a class="link" href="GtkSpinButton.html" title="GtkSpinButton"><span class="type">GtkSpinButton</span></a>. -</p> -</div> -<hr> -<div class="refsect2"> -<a name="GTK-STYLE-CLASS-VIEW:CAPS"></a><h3>GTK_STYLE_CLASS_VIEW</h3> -<pre class="programlisting">#define GTK_STYLE_CLASS_VIEW "view" -</pre> -<p> -A CSS class defining a view, such as iconviews or treeviews. -</p> -<p> -This is used in <a class="link" href="GtkTreeView.html" title="GtkTreeView"><span class="type">GtkTreeView</span></a>, <a class="link" href="GtkIconView.html" title="GtkIconView"><span class="type">GtkIconView</span></a>, <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>, -as well as <a class="link" href="GtkCalendar.html" title="GtkCalendar"><span class="type">GtkCalendar</span></a>. -</p> -</div> -<hr> -<div class="refsect2"> -<a name="GTK-STYLE-CLASS-WARNING:CAPS"></a><h3>GTK_STYLE_CLASS_WARNING</h3> -<pre class="programlisting">#define GTK_STYLE_CLASS_WARNING "warning" -</pre> -<p> -A CSS class for an area displaying a warning message, -such as those in infobars. -</p> -<p> -This is used by <a class="link" href="GtkInfoBar.html" title="GtkInfoBar"><span class="type">GtkInfoBar</span></a>. -</p> -</div> -<hr> -<div class="refsect2"> -<a name="GTK-STYLE-CLASS-HORIZONTAL:CAPS"></a><h3>GTK_STYLE_CLASS_HORIZONTAL</h3> -<pre class="programlisting">#define GTK_STYLE_CLASS_HORIZONTAL "horizontal" -</pre> -<p> -A CSS class for horizontally layered widgets. -</p> -<p> -This is used by widgets implementing <a class="link" href="gtk3-Orientable.html#GtkOrientable"><span class="type">GtkOrientable</span></a>. -</p> -</div> -<hr> -<div class="refsect2"> -<a name="GTK-STYLE-CLASS-VERTICAL:CAPS"></a><h3>GTK_STYLE_CLASS_VERTICAL</h3> -<pre class="programlisting">#define GTK_STYLE_CLASS_VERTICAL "vertical" -</pre> -<p> -A CSS class for vertically layered widgets. -</p> -<p> -This is used by widgets implementing <a class="link" href="gtk3-Orientable.html#GtkOrientable"><span class="type">GtkOrientable</span></a>. -</p> -</div> -<hr> -<div class="refsect2"> -<a name="GTK-STYLE-CLASS-TOP:CAPS"></a><h3>GTK_STYLE_CLASS_TOP</h3> -<pre class="programlisting">#define GTK_STYLE_CLASS_TOP "top" -</pre> -<p> -A CSS class to indicate an area at the top of a widget. -</p> -<p> -This is used by widgets that can render an area in different -positions, such as tabs in a <a class="link" href="GtkNotebook.html" title="GtkNotebook"><span class="type">GtkNotebook</span></a>. -</p> -</div> -<hr> -<div class="refsect2"> -<a name="GTK-STYLE-CLASS-BOTTOM:CAPS"></a><h3>GTK_STYLE_CLASS_BOTTOM</h3> -<pre class="programlisting">#define GTK_STYLE_CLASS_BOTTOM "bottom" -</pre> -<p> -A CSS class to indicate an area at the bottom of a widget. -</p> -<p> -This is used by widgets that can render an area in different -positions, such as tabs in a <a class="link" href="GtkNotebook.html" title="GtkNotebook"><span class="type">GtkNotebook</span></a>. -</p> -</div> -<hr> -<div class="refsect2"> -<a name="GTK-STYLE-CLASS-LEFT:CAPS"></a><h3>GTK_STYLE_CLASS_LEFT</h3> -<pre class="programlisting">#define GTK_STYLE_CLASS_LEFT "left" -</pre> -<p> -A CSS class to indicate an area at the left of a widget. -</p> -<p> -This is used by widgets that can render an area in different -positions, such as tabs in a <a class="link" href="GtkNotebook.html" title="GtkNotebook"><span class="type">GtkNotebook</span></a>. -</p> -</div> -<hr> -<div class="refsect2"> -<a name="GTK-STYLE-CLASS-RIGHT:CAPS"></a><h3>GTK_STYLE_CLASS_RIGHT</h3> -<pre class="programlisting">#define GTK_STYLE_CLASS_RIGHT "right" -</pre> -<p> -A CSS class to indicate an area at the right of a widget. -</p> -<p> -This is used by widgets that can render an area in different -positions, such as tabs in a <a class="link" href="GtkNotebook.html" title="GtkNotebook"><span class="type">GtkNotebook</span></a>. -</p> -</div> -<hr> -<div class="refsect2"> -<a name="GTK-STYLE-CLASS-LINKED:CAPS"></a><h3>GTK_STYLE_CLASS_LINKED</h3> -<pre class="programlisting">#define GTK_STYLE_CLASS_LINKED "linked" -</pre> -<p> -A CSS class to match a linked area, such as a box containing buttons -belonging to the same control. -</p> -</div> -<hr> -<div class="refsect2"> -<a name="GTK-STYLE-CLASS-ARROW:CAPS"></a><h3>GTK_STYLE_CLASS_ARROW</h3> -<pre class="programlisting">#define GTK_STYLE_CLASS_ARROW "arrow" -</pre> -<p> -A CSS class used when rendering an arrow element. -</p> -<p> -Note that <a class="link" href="GtkStyleContext.html#gtk-render-arrow" title="gtk_render_arrow ()"><span class="type">gtk_render_arrow</span></a> automatically adds this style class -to the style context when rendering an arrow element. -</p> -</div> -<hr> -<div class="refsect2"> -<a name="GTK-STYLE-CLASS-OSD:CAPS"></a><h3>GTK_STYLE_CLASS_OSD</h3> -<pre class="programlisting">#define GTK_STYLE_CLASS_OSD "osd" -</pre> -<p> -A CSS class used when rendering an OSD (On Screen Display) element, -on top of another container. -</p> -</div> -<hr> -<div class="refsect2"> -<a name="GTK-STYLE-REGION-COLUMN:CAPS"></a><h3>GTK_STYLE_REGION_COLUMN</h3> -<pre class="programlisting">#define GTK_STYLE_REGION_COLUMN "column" -</pre> -<p> -A widget region name to define a treeview column. -</p> -</div> -<hr> -<div class="refsect2"> -<a name="GTK-STYLE-REGION-COLUMN-HEADER:CAPS"></a><h3>GTK_STYLE_REGION_COLUMN_HEADER</h3> -<pre class="programlisting">#define GTK_STYLE_REGION_COLUMN_HEADER "column-header" -</pre> -<p> -A widget region name to define a treeview column header. -</p> -</div> -<hr> -<div class="refsect2"> -<a name="GTK-STYLE-REGION-ROW:CAPS"></a><h3>GTK_STYLE_REGION_ROW</h3> -<pre class="programlisting">#define GTK_STYLE_REGION_ROW "row" -</pre> -<p> -A widget region name to define a treeview row. -</p> -</div> -<hr> -<div class="refsect2"> -<a name="GTK-STYLE-REGION-TAB:CAPS"></a><h3>GTK_STYLE_REGION_TAB</h3> -<pre class="programlisting">#define GTK_STYLE_REGION_TAB "tab" -</pre> -<p> -A widget region name to define a notebook tab. -</p> -</div> -<hr> -<div class="refsect2"> -<a name="GtkStyleContext-struct"></a><h3>GtkStyleContext</h3> -<pre class="programlisting">typedef struct _GtkStyleContext GtkStyleContext;</pre> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-style-context-new"></a><h3>gtk_style_context_new ()</h3> -<pre class="programlisting"><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="returnvalue">GtkStyleContext</span></a> * gtk_style_context_new (<em class="parameter"><code><span class="type">void</span></code></em>);</pre> -<p> -Creates a standalone <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a>, this style context -won't be attached to any widget, so you may want -to call <a class="link" href="GtkStyleContext.html#gtk-style-context-set-path" title="gtk_style_context_set_path ()"><code class="function">gtk_style_context_set_path()</code></a> yourself. -</p> -<p> -</p> -<div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"> -<h3 class="title">Note</h3> -This function is only useful when using the theming layer -separated from GTK+, if you are using <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> to -theme <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>s, use <a class="link" href="GtkWidget.html#gtk-widget-get-style-context" title="gtk_widget_get_style_context ()"><code class="function">gtk_widget_get_style_context()</code></a> -in order to get a style context ready to theme the widget. -</div> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td>A newly created <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a>.</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-style-context-add-provider"></a><h3>gtk_style_context_add_provider ()</h3> -<pre class="programlisting"><span class="returnvalue">void</span> gtk_style_context_add_provider (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a class="link" href="GtkStyleProvider.html" title="GtkStyleProvider"><span class="type">GtkStyleProvider</span></a> *provider</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> priority</code></em>);</pre> -<p> -Adds a style provider to <em class="parameter"><code>context</code></em>, to be used in style construction. -Note that a style provider added by this function only affects -the style of the widget to which <em class="parameter"><code>context</code></em> belongs. If you want -to affect the style of all widgets, use -<a class="link" href="GtkStyleContext.html#gtk-style-context-add-provider-for-screen" title="gtk_style_context_add_provider_for_screen ()"><code class="function">gtk_style_context_add_provider_for_screen()</code></a>. -</p> -<p> -</p> -<div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"> -<h3 class="title">Note</h3> -<p>If both priorities are the same, A <a class="link" href="GtkStyleProvider.html" title="GtkStyleProvider"><span class="type">GtkStyleProvider</span></a> -added through this function takes precedence over another added -through <a class="link" href="GtkStyleContext.html#gtk-style-context-add-provider-for-screen" title="gtk_style_context_add_provider_for_screen ()"><code class="function">gtk_style_context_add_provider_for_screen()</code></a>.</p> -</div> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>provider</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleProvider.html" title="GtkStyleProvider"><span class="type">GtkStyleProvider</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>priority</code></em> :</span></p></td> -<td>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 <a class="link" href="GtkStyleProvider.html#GTK-STYLE-PROVIDER-PRIORITY-FALLBACK:CAPS" title="GTK_STYLE_PROVIDER_PRIORITY_FALLBACK"><code class="literal">GTK_STYLE_PROVIDER_PRIORITY_FALLBACK</code></a> and -<a class="link" href="GtkStyleProvider.html#GTK-STYLE-PROVIDER-PRIORITY-USER:CAPS" title="GTK_STYLE_PROVIDER_PRIORITY_USER"><code class="literal">GTK_STYLE_PROVIDER_PRIORITY_USER</code></a> -</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-style-context-add-provider-for-screen"></a><h3>gtk_style_context_add_provider_for_screen ()</h3> -<pre class="programlisting"><span class="returnvalue">void</span> gtk_style_context_add_provider_for_screen - (<em class="parameter"><code><a href="http://developer.gnome.org/gdk/GdkScreen.html"><span class="type">GdkScreen</span></a> *screen</code></em>, - <em class="parameter"><code><a class="link" href="GtkStyleProvider.html" title="GtkStyleProvider"><span class="type">GtkStyleProvider</span></a> *provider</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> priority</code></em>);</pre> -<p> -Adds a global style provider to <em class="parameter"><code>screen</code></em>, which will be used -in style construction for all <a href="GtkStyleContext.html"><span class="type">GtkStyleContexts</span></a> under <em class="parameter"><code>screen</code></em>. -</p> -<p> -GTK+ uses this to make styling information from <a class="link" href="GtkSettings.html" title="Settings"><span class="type">GtkSettings</span></a> -available. -</p> -<p> -</p> -<div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"> -<h3 class="title">Note</h3> -<p>If both priorities are the same, A <a class="link" href="GtkStyleProvider.html" title="GtkStyleProvider"><span class="type">GtkStyleProvider</span></a> -added through <a class="link" href="GtkStyleContext.html#gtk-style-context-add-provider" title="gtk_style_context_add_provider ()"><code class="function">gtk_style_context_add_provider()</code></a> takes precedence -over another added through this function.</p> -</div> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>screen</code></em> :</span></p></td> -<td>a <a href="http://developer.gnome.org/gdk/GdkScreen.html"><span class="type">GdkScreen</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>provider</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleProvider.html" title="GtkStyleProvider"><span class="type">GtkStyleProvider</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>priority</code></em> :</span></p></td> -<td>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 <a class="link" href="GtkStyleProvider.html#GTK-STYLE-PROVIDER-PRIORITY-FALLBACK:CAPS" title="GTK_STYLE_PROVIDER_PRIORITY_FALLBACK"><code class="literal">GTK_STYLE_PROVIDER_PRIORITY_FALLBACK</code></a> and -<a class="link" href="GtkStyleProvider.html#GTK-STYLE-PROVIDER-PRIORITY-USER:CAPS" title="GTK_STYLE_PROVIDER_PRIORITY_USER"><code class="literal">GTK_STYLE_PROVIDER_PRIORITY_USER</code></a> -</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-style-context-get"></a><h3>gtk_style_context_get ()</h3> -<pre class="programlisting"><span class="returnvalue">void</span> gtk_style_context_get (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkStateFlags" title="enum GtkStateFlags"><span class="type">GtkStateFlags</span></a> state</code></em>, - <em class="parameter"><code>...</code></em>);</pre> -<p> -Retrieves several style property values from <em class="parameter"><code>context</code></em> for a -given state. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>state</code></em> :</span></p></td> -<td>state to retrieve the property values for</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td> -<td>property name /return value pairs, followed by <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> -</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-style-context-get-direction"></a><h3>gtk_style_context_get_direction ()</h3> -<pre class="programlisting"><a class="link" href="GtkWidget.html#GtkTextDirection" title="enum GtkTextDirection"><span class="returnvalue">GtkTextDirection</span></a> gtk_style_context_get_direction (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>);</pre> -<p> -Returns the widget direction used for rendering. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td>the widget direction</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-style-context-get-junction-sides"></a><h3>gtk_style_context_get_junction_sides ()</h3> -<pre class="programlisting"><a class="link" href="gtk3-Standard-Enumerations.html#GtkJunctionSides" title="enum GtkJunctionSides"><span class="returnvalue">GtkJunctionSides</span></a> gtk_style_context_get_junction_sides - (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>);</pre> -<p> -Returns the sides where rendered elements connect visually with others. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td>the junction sides</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-style-context-get-parent"></a><h3>gtk_style_context_get_parent ()</h3> -<pre class="programlisting"><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="returnvalue">GtkStyleContext</span></a> * gtk_style_context_get_parent (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>);</pre> -<p> -Gets the parent context set via <a class="link" href="GtkStyleContext.html#gtk-style-context-set-parent" title="gtk_style_context_set_parent ()"><code class="function">gtk_style_context_set_parent()</code></a>. -See that function for details. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td>the parent context or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span> -</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.4</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-style-context-get-path"></a><h3>gtk_style_context_get_path ()</h3> -<pre class="programlisting">const <a class="link" href="gtk3-GtkWidgetPath.html#GtkWidgetPath" title="GtkWidgetPath"><span class="returnvalue">GtkWidgetPath</span></a> * gtk_style_context_get_path (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>);</pre> -<p> -Returns the widget path used for style matching. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td>A <a class="link" href="gtk3-GtkWidgetPath.html#GtkWidgetPath" title="GtkWidgetPath"><span class="type">GtkWidgetPath</span></a>. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span> -</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-style-context-get-property"></a><h3>gtk_style_context_get_property ()</h3> -<pre class="programlisting"><span class="returnvalue">void</span> gtk_style_context_get_property (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *property</code></em>, - <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkStateFlags" title="enum GtkStateFlags"><span class="type">GtkStateFlags</span></a> state</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> *value</code></em>);</pre> -<p> -Gets a style property from <em class="parameter"><code>context</code></em> for the given state. -</p> -<p> -When <em class="parameter"><code>value</code></em> is no longer needed, <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Generic-values.html#g-value-unset"><code class="function">g_value_unset()</code></a> must be called -to free any allocated memory. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>property</code></em> :</span></p></td> -<td>style property name</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>state</code></em> :</span></p></td> -<td>state to retrieve the property value for</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td> -<td>return location for the style property value. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span> -</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-style-context-get-screen"></a><h3>gtk_style_context_get_screen ()</h3> -<pre class="programlisting"><a href="http://developer.gnome.org/gdk/GdkScreen.html"><span class="returnvalue">GdkScreen</span></a> * gtk_style_context_get_screen (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>);</pre> -<p> -Returns the <a href="http://developer.gnome.org/gdk/GdkScreen.html"><span class="type">GdkScreen</span></a> to which <em class="parameter"><code>context</code></em> is attached. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td>a <a href="http://developer.gnome.org/gdk/GdkScreen.html"><span class="type">GdkScreen</span></a>. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span> -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-style-context-get-state"></a><h3>gtk_style_context_get_state ()</h3> -<pre class="programlisting"><a class="link" href="gtk3-Standard-Enumerations.html#GtkStateFlags" title="enum GtkStateFlags"><span class="returnvalue">GtkStateFlags</span></a> gtk_style_context_get_state (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>);</pre> -<p> -Returns the state used when rendering. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td>the state flags</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-style-context-get-style"></a><h3>gtk_style_context_get_style ()</h3> -<pre class="programlisting"><span class="returnvalue">void</span> gtk_style_context_get_style (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code>...</code></em>);</pre> -<p> -Retrieves several widget style properties from <em class="parameter"><code>context</code></em> according to the -current style. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td> -<td>property name /return value pairs, followed by <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> -</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-style-context-get-style-property"></a><h3>gtk_style_context_get_style_property ()</h3> -<pre class="programlisting"><span class="returnvalue">void</span> gtk_style_context_get_style_property - (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *property_name</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> *value</code></em>);</pre> -<p> -Gets the value for a widget style property. -</p> -<p> -When <em class="parameter"><code>value</code></em> is no longer needed, <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Generic-values.html#g-value-unset"><code class="function">g_value_unset()</code></a> must be called -to free any allocated memory. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>property_name</code></em> :</span></p></td> -<td>the name of the widget style property</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td> -<td>Return location for the property value</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-style-context-get-style-valist"></a><h3>gtk_style_context_get_style_valist ()</h3> -<pre class="programlisting"><span class="returnvalue">void</span> gtk_style_context_get_style_valist (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><span class="type">va_list</span> args</code></em>);</pre> -<p> -Retrieves several widget style properties from <em class="parameter"><code>context</code></em> according to the -current style. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>args</code></em> :</span></p></td> -<td>va_list of property name/return location pairs, followed by <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> -</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-style-context-get-valist"></a><h3>gtk_style_context_get_valist ()</h3> -<pre class="programlisting"><span class="returnvalue">void</span> gtk_style_context_get_valist (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkStateFlags" title="enum GtkStateFlags"><span class="type">GtkStateFlags</span></a> state</code></em>, - <em class="parameter"><code><span class="type">va_list</span> args</code></em>);</pre> -<p> -Retrieves several style property values from <em class="parameter"><code>context</code></em> for a given state. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>state</code></em> :</span></p></td> -<td>state to retrieve the property values for</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>args</code></em> :</span></p></td> -<td>va_list of property name/return location pairs, followed by <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> -</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-style-context-get-section"></a><h3>gtk_style_context_get_section ()</h3> -<pre class="programlisting"><a class="link" href="GtkCssProvider.html#GtkCssSection"><span class="returnvalue">GtkCssSection</span></a> * gtk_style_context_get_section (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *property</code></em>);</pre> -<p> -Queries the location in the CSS where <em class="parameter"><code>property</code></em> was defined for the -current <em class="parameter"><code>context</code></em>. Note that the state to be queried is taken from -<a class="link" href="GtkStyleContext.html#gtk-style-context-get-state" title="gtk_style_context_get_state ()"><code class="function">gtk_style_context_get_state()</code></a>. -</p> -<p> -If the location is not available, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> will be returned. The -location might not be available for various reasons, such as the -property being overridden, <em class="parameter"><code>property</code></em> not naming a supported CSS -property or tracking of definitions being disabled for performance -reasons. -</p> -<p> -Shorthand CSS properties cannot be queried for a location and will -always return <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>property</code></em> :</span></p></td> -<td>style property name</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> or the section where value was defined</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-style-context-get-color"></a><h3>gtk_style_context_get_color ()</h3> -<pre class="programlisting"><span class="returnvalue">void</span> gtk_style_context_get_color (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkStateFlags" title="enum GtkStateFlags"><span class="type">GtkStateFlags</span></a> state</code></em>, - <em class="parameter"><code><a href="http://developer.gnome.org/gdk/gdk3-RGBA-Colors.html#GdkRGBA"><span class="type">GdkRGBA</span></a> *color</code></em>);</pre> -<p> -Gets the foreground color for a given state. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>state</code></em> :</span></p></td> -<td>state to retrieve the color for</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>color</code></em> :</span></p></td> -<td>return value for the foreground color. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span> -</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-style-context-get-background-color"></a><h3>gtk_style_context_get_background_color ()</h3> -<pre class="programlisting"><span class="returnvalue">void</span> gtk_style_context_get_background_color - (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkStateFlags" title="enum GtkStateFlags"><span class="type">GtkStateFlags</span></a> state</code></em>, - <em class="parameter"><code><a href="http://developer.gnome.org/gdk/gdk3-RGBA-Colors.html#GdkRGBA"><span class="type">GdkRGBA</span></a> *color</code></em>);</pre> -<p> -Gets the background color for a given state. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>state</code></em> :</span></p></td> -<td>state to retrieve the color for</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>color</code></em> :</span></p></td> -<td>return value for the background color. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span> -</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-style-context-get-border-color"></a><h3>gtk_style_context_get_border_color ()</h3> -<pre class="programlisting"><span class="returnvalue">void</span> gtk_style_context_get_border_color (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkStateFlags" title="enum GtkStateFlags"><span class="type">GtkStateFlags</span></a> state</code></em>, - <em class="parameter"><code><a href="http://developer.gnome.org/gdk/gdk3-RGBA-Colors.html#GdkRGBA"><span class="type">GdkRGBA</span></a> *color</code></em>);</pre> -<p> -Gets the border color for a given state. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>state</code></em> :</span></p></td> -<td>state to retrieve the color for</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>color</code></em> :</span></p></td> -<td>return value for the border color. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span> -</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-style-context-get-border"></a><h3>gtk_style_context_get_border ()</h3> -<pre class="programlisting"><span class="returnvalue">void</span> gtk_style_context_get_border (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkStateFlags" title="enum GtkStateFlags"><span class="type">GtkStateFlags</span></a> state</code></em>, - <em class="parameter"><code><a class="link" href="GtkStyleContext.html#GtkBorder"><span class="type">GtkBorder</span></a> *border</code></em>);</pre> -<p> -Gets the border for a given state as a <a class="link" href="GtkStyleContext.html#GtkBorder"><span class="type">GtkBorder</span></a>. -See <a class="link" href="GtkStyleContext.html#GTK-STYLE-PROPERTY-BORDER-WIDTH:CAPS" title="GTK_STYLE_PROPERTY_BORDER_WIDTH"><code class="literal">GTK_STYLE_PROPERTY_BORDER_WIDTH</code></a>. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>state</code></em> :</span></p></td> -<td>state to retrieve the border for</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>border</code></em> :</span></p></td> -<td>return value for the border settings. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span> -</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-style-context-get-padding"></a><h3>gtk_style_context_get_padding ()</h3> -<pre class="programlisting"><span class="returnvalue">void</span> gtk_style_context_get_padding (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkStateFlags" title="enum GtkStateFlags"><span class="type">GtkStateFlags</span></a> state</code></em>, - <em class="parameter"><code><a class="link" href="GtkStyleContext.html#GtkBorder"><span class="type">GtkBorder</span></a> *padding</code></em>);</pre> -<p> -Gets the padding for a given state as a <a class="link" href="GtkStyleContext.html#GtkBorder"><span class="type">GtkBorder</span></a>. -See <a class="link" href="GtkStyleContext.html#GTK-STYLE-PROPERTY-PADDING:CAPS" title="GTK_STYLE_PROPERTY_PADDING"><code class="literal">GTK_STYLE_PROPERTY_PADDING</code></a>. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>state</code></em> :</span></p></td> -<td>state to retrieve the padding for</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>padding</code></em> :</span></p></td> -<td>return value for the padding settings. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span> -</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-style-context-get-margin"></a><h3>gtk_style_context_get_margin ()</h3> -<pre class="programlisting"><span class="returnvalue">void</span> gtk_style_context_get_margin (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkStateFlags" title="enum GtkStateFlags"><span class="type">GtkStateFlags</span></a> state</code></em>, - <em class="parameter"><code><a class="link" href="GtkStyleContext.html#GtkBorder"><span class="type">GtkBorder</span></a> *margin</code></em>);</pre> -<p> -Gets the margin for a given state as a <a class="link" href="GtkStyleContext.html#GtkBorder"><span class="type">GtkBorder</span></a>. -See <a class="link" href="GtkStyleContext.html#GTK-STYLE-PROPERTY-MARGIN:CAPS" title="GTK_STYLE_PROPERTY_MARGIN"><code class="literal">GTK_STYLE_PROPERTY_MARGIN</code></a>. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>state</code></em> :</span></p></td> -<td>state to retrieve the border for</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>margin</code></em> :</span></p></td> -<td>return value for the margin settings. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span> -</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-style-context-get-font"></a><h3>gtk_style_context_get_font ()</h3> -<pre class="programlisting">const <a href="/home/mclasen/gnome/share/gtk-doc/html/pango/pango-Fonts.html#PangoFontDescription"><span class="returnvalue">PangoFontDescription</span></a> * gtk_style_context_get_font (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkStateFlags" title="enum GtkStateFlags"><span class="type">GtkStateFlags</span></a> state</code></em>);</pre> -<p> -Returns the font description for a given state. The returned -object is const and will remain valid until the -<a class="link" href="GtkStyleContext.html#GtkStyleContext-changed" title='The "changed" signal'><span class="type">"changed"</span></a> signal happens. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>state</code></em> :</span></p></td> -<td>state to retrieve the font for</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td>the <a href="/home/mclasen/gnome/share/gtk-doc/html/pango/pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> for the given -state. This object is owned by GTK+ and should not be -freed. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span> -</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-style-context-invalidate"></a><h3>gtk_style_context_invalidate ()</h3> -<pre class="programlisting"><span class="returnvalue">void</span> gtk_style_context_invalidate (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>);</pre> -<p> -Invalidates <em class="parameter"><code>context</code></em> style information, so it will be reconstructed -again. -</p> -<p> -If you're using a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> returned from -<a class="link" href="GtkWidget.html#gtk-widget-get-style-context" title="gtk_widget_get_style_context ()"><code class="function">gtk_widget_get_style_context()</code></a>, you do not need to -call this yourself. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a>.</td> -</tr></tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-style-context-state-is-running"></a><h3>gtk_style_context_state_is_running ()</h3> -<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gtk_style_context_state_is_running (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkStateType" title="enum GtkStateType"><span class="type">GtkStateType</span></a> state</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> *progress</code></em>);</pre> -<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"> -<h3 class="title">Warning</h3> -<p><code class="literal">gtk_style_context_state_is_running</code> has been deprecated since version 3.6 and should not be used in newly-written code. This function always returns <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a></p> -</div> -<p> -Returns <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if there is a transition animation running for the -current region (see <a class="link" href="GtkStyleContext.html#gtk-style-context-push-animatable-region" title="gtk_style_context_push_animatable_region ()"><code class="function">gtk_style_context_push_animatable_region()</code></a>). -</p> -<p> -If <em class="parameter"><code>progress</code></em> is not <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, the animation progress will be returned -there, 0.0 means the state is closest to being unset, while 1.0 means -it's closest to being set. This means transition animation will -run from 0 to 1 when <em class="parameter"><code>state</code></em> is being set and from 1 to 0 when -it's being unset. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>state</code></em> :</span></p></td> -<td>a widget state</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>progress</code></em> :</span></p></td> -<td>return location for the transition progress. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if there is a running transition animation for <em class="parameter"><code>state</code></em>.</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-style-context-lookup-color"></a><h3>gtk_style_context_lookup_color ()</h3> -<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gtk_style_context_lookup_color (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *color_name</code></em>, - <em class="parameter"><code><a href="http://developer.gnome.org/gdk/gdk3-RGBA-Colors.html#GdkRGBA"><span class="type">GdkRGBA</span></a> *color</code></em>);</pre> -<p> -Looks up and resolves a color name in the <em class="parameter"><code>context</code></em> color map. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>color_name</code></em> :</span></p></td> -<td>color name to lookup</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>color</code></em> :</span></p></td> -<td>Return location for the looked up color. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>color_name</code></em> was found and resolved, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-style-context-lookup-icon-set"></a><h3>gtk_style_context_lookup_icon_set ()</h3> -<pre class="programlisting"><a class="link" href="gtk3-Themeable-Stock-Images.html#GtkIconSet"><span class="returnvalue">GtkIconSet</span></a> * gtk_style_context_lookup_icon_set (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *stock_id</code></em>);</pre> -<p> -Looks up <em class="parameter"><code>stock_id</code></em> in the icon factories associated to <em class="parameter"><code>context</code></em> and -the default icon factory, returning an icon set if found, otherwise -<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>stock_id</code></em> :</span></p></td> -<td>an icon name</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td>The looked up <a class="link" href="gtk3-Themeable-Stock-Images.html#GtkIconSet"><code class="literal">GtkIconSet</code></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span> -</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-style-context-notify-state-change"></a><h3>gtk_style_context_notify_state_change ()</h3> -<pre class="programlisting"><span class="returnvalue">void</span> gtk_style_context_notify_state_change - (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a href="http://developer.gnome.org/gdk/gdk3-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> *window</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> region_id</code></em>, - <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkStateType" title="enum GtkStateType"><span class="type">GtkStateType</span></a> state</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> state_value</code></em>);</pre> -<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"> -<h3 class="title">Warning</h3> -<p><code class="literal">gtk_style_context_notify_state_change</code> has been deprecated since version 3.6 and should not be used in newly-written code. This function does nothing.</p> -</div> -<p> -Notifies a state change on <em class="parameter"><code>context</code></em>, so if the current style makes use -of transition animations, one will be started so all rendered elements -under <em class="parameter"><code>region_id</code></em> are animated for state <em class="parameter"><code>state</code></em> being set to value -<em class="parameter"><code>state_value</code></em>. -</p> -<p> -The <em class="parameter"><code>window</code></em> parameter is used in order to invalidate the rendered area -as the animation runs, so make sure it is the same window that is being -rendered on by the gtk_render_*() functions. -</p> -<p> -If <em class="parameter"><code>region_id</code></em> is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, all rendered elements using <em class="parameter"><code>context</code></em> will be -affected by this state transition. -</p> -<p> -As a practical example, a <a class="link" href="GtkButton.html" title="GtkButton"><span class="type">GtkButton</span></a> notifying a state transition on -the prelight state: -</p> -<pre class="programlisting"> -gtk_style_context_notify_state_change (context, - gtk_widget_get_window (widget), - NULL, - GTK_STATE_PRELIGHT, - button->in_button); -</pre> -<p> -</p> -<p> -Can be handled in the CSS file like this: -</p> -<pre class="programlisting"> -GtkButton { - background-color: #f00 -} - -GtkButton:hover { - background-color: #fff; - transition: 200ms linear -} -</pre> -<p> -</p> -<p> -This combination will animate the button background from red to white -if a pointer enters the button, and back to red if the pointer leaves -the button. -</p> -<p> -Note that <em class="parameter"><code>state</code></em> is used when finding the transition parameters, which -is why the style places the transition under the :hover pseudo-class. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a href="http://developer.gnome.org/gdk/gdk3-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>region_id</code></em> :</span></p></td> -<td>animatable region to notify on, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. -See <a class="link" href="GtkStyleContext.html#gtk-style-context-push-animatable-region" title="gtk_style_context_push_animatable_region ()"><code class="function">gtk_style_context_push_animatable_region()</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>state</code></em> :</span></p></td> -<td>state to trigger transition for</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>state_value</code></em> :</span></p></td> -<td> -<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>state</code></em> is the state we are changing to, -<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if we are changing away from it</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-style-context-pop-animatable-region"></a><h3>gtk_style_context_pop_animatable_region ()</h3> -<pre class="programlisting"><span class="returnvalue">void</span> gtk_style_context_pop_animatable_region - (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>);</pre> -<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"> -<h3 class="title">Warning</h3> -<p><code class="literal">gtk_style_context_pop_animatable_region</code> has been deprecated since version 3.6 and should not be used in newly-written code. This function does nothing.</p> -</div> -<p> -Pops an animatable region from <em class="parameter"><code>context</code></em>. -See <a class="link" href="GtkStyleContext.html#gtk-style-context-push-animatable-region" title="gtk_style_context_push_animatable_region ()"><code class="function">gtk_style_context_push_animatable_region()</code></a>. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> -</td> -</tr></tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-style-context-push-animatable-region"></a><h3>gtk_style_context_push_animatable_region ()</h3> -<pre class="programlisting"><span class="returnvalue">void</span> gtk_style_context_push_animatable_region - (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> region_id</code></em>);</pre> -<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"> -<h3 class="title">Warning</h3> -<p><code class="literal">gtk_style_context_push_animatable_region</code> has been deprecated since version 3.6 and should not be used in newly-written code. This function does nothing.</p> -</div> -<p> -Pushes an animatable region, so all further gtk_render_*() calls between -this call and the following <a class="link" href="GtkStyleContext.html#gtk-style-context-pop-animatable-region" title="gtk_style_context_pop_animatable_region ()"><code class="function">gtk_style_context_pop_animatable_region()</code></a> -will potentially show transition animations for this region if -<a class="link" href="GtkStyleContext.html#gtk-style-context-notify-state-change" title="gtk_style_context_notify_state_change ()"><code class="function">gtk_style_context_notify_state_change()</code></a> is called for a given state, -and the current theme/style defines transition animations for state -changes. -</p> -<p> -The <em class="parameter"><code>region_id</code></em> used must be unique in <em class="parameter"><code>context</code></em> so the theming engine -can uniquely identify rendered elements subject to a state transition. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>region_id</code></em> :</span></p></td> -<td>unique identifier for the animatable region</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-style-context-cancel-animations"></a><h3>gtk_style_context_cancel_animations ()</h3> -<pre class="programlisting"><span class="returnvalue">void</span> gtk_style_context_cancel_animations (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> region_id</code></em>);</pre> -<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"> -<h3 class="title">Warning</h3> -<p><code class="literal">gtk_style_context_cancel_animations</code> has been deprecated since version 3.6 and should not be used in newly-written code. This function does nothing.</p> -</div> -<p> -Stops all running animations for <em class="parameter"><code>region_id</code></em> and all animatable -regions underneath. -</p> -<p> -A <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> <em class="parameter"><code>region_id</code></em> will stop all ongoing animations in <em class="parameter"><code>context</code></em>, -when dealing with a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> obtained through -<a class="link" href="GtkWidget.html#gtk-widget-get-style-context" title="gtk_widget_get_style_context ()"><code class="function">gtk_widget_get_style_context()</code></a>, this is normally done for you -in all circumstances you would expect all widget to be stopped, -so this should be only used in complex widgets with different -animatable regions. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>region_id</code></em> :</span></p></td> -<td>animatable region to stop, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. -See <a class="link" href="GtkStyleContext.html#gtk-style-context-push-animatable-region" title="gtk_style_context_push_animatable_region ()"><code class="function">gtk_style_context_push_animatable_region()</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span> -</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-style-context-scroll-animations"></a><h3>gtk_style_context_scroll_animations ()</h3> -<pre class="programlisting"><span class="returnvalue">void</span> gtk_style_context_scroll_animations (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a href="http://developer.gnome.org/gdk/gdk3-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> *window</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> dx</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> dy</code></em>);</pre> -<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"> -<h3 class="title">Warning</h3> -<p><code class="literal">gtk_style_context_scroll_animations</code> has been deprecated since version 3.6 and should not be used in newly-written code. This function does nothing.</p> -</div> -<p> -This function is analogous to <a href="http://developer.gnome.org/gdk/gdk3-Windows.html#gdk-window-scroll"><code class="function">gdk_window_scroll()</code></a>, and -should be called together with it so the invalidation -areas for any ongoing animation are scrolled together -with it. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a href="http://developer.gnome.org/gdk/gdk3-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> used previously in -<a class="link" href="GtkStyleContext.html#gtk-style-context-notify-state-change" title="gtk_style_context_notify_state_change ()"><code class="function">gtk_style_context_notify_state_change()</code></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>dx</code></em> :</span></p></td> -<td>Amount to scroll in the X axis</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>dy</code></em> :</span></p></td> -<td>Amount to scroll in the Y axis</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-style-context-remove-provider"></a><h3>gtk_style_context_remove_provider ()</h3> -<pre class="programlisting"><span class="returnvalue">void</span> gtk_style_context_remove_provider (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a class="link" href="GtkStyleProvider.html" title="GtkStyleProvider"><span class="type">GtkStyleProvider</span></a> *provider</code></em>);</pre> -<p> -Removes <em class="parameter"><code>provider</code></em> from the style providers list in <em class="parameter"><code>context</code></em>. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>provider</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleProvider.html" title="GtkStyleProvider"><span class="type">GtkStyleProvider</span></a> -</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-style-context-remove-provider-for-screen"></a><h3>gtk_style_context_remove_provider_for_screen ()</h3> -<pre class="programlisting"><span class="returnvalue">void</span> gtk_style_context_remove_provider_for_screen - (<em class="parameter"><code><a href="http://developer.gnome.org/gdk/GdkScreen.html"><span class="type">GdkScreen</span></a> *screen</code></em>, - <em class="parameter"><code><a class="link" href="GtkStyleProvider.html" title="GtkStyleProvider"><span class="type">GtkStyleProvider</span></a> *provider</code></em>);</pre> -<p> -Removes <em class="parameter"><code>provider</code></em> from the global style providers list in <em class="parameter"><code>screen</code></em>. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>screen</code></em> :</span></p></td> -<td>a <a href="http://developer.gnome.org/gdk/GdkScreen.html"><span class="type">GdkScreen</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>provider</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleProvider.html" title="GtkStyleProvider"><span class="type">GtkStyleProvider</span></a> -</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-style-context-reset-widgets"></a><h3>gtk_style_context_reset_widgets ()</h3> -<pre class="programlisting"><span class="returnvalue">void</span> gtk_style_context_reset_widgets (<em class="parameter"><code><a href="http://developer.gnome.org/gdk/GdkScreen.html"><span class="type">GdkScreen</span></a> *screen</code></em>);</pre> -<p> -This function recomputes the styles for all widgets under a particular -<a href="http://developer.gnome.org/gdk/GdkScreen.html"><span class="type">GdkScreen</span></a>. This is useful when some global parameter has changed that -affects the appearance of all widgets, because when a widget gets a new -style, it will both redraw and recompute any cached information about -its appearance. As an example, it is used when the color scheme changes -in the related <a class="link" href="GtkSettings.html" title="Settings"><span class="type">GtkSettings</span></a> object. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><em class="parameter"><code>screen</code></em> :</span></p></td> -<td>a <a href="http://developer.gnome.org/gdk/GdkScreen.html"><span class="type">GdkScreen</span></a> -</td> -</tr></tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-style-context-set-background"></a><h3>gtk_style_context_set_background ()</h3> -<pre class="programlisting"><span class="returnvalue">void</span> gtk_style_context_set_background (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a href="http://developer.gnome.org/gdk/gdk3-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> *window</code></em>);</pre> -<p> -Sets the background of <em class="parameter"><code>window</code></em> to the background pattern or -color specified in <em class="parameter"><code>context</code></em> for its current state. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td> -<td>a <a href="http://developer.gnome.org/gdk/gdk3-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> -</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-style-context-restore"></a><h3>gtk_style_context_restore ()</h3> -<pre class="programlisting"><span class="returnvalue">void</span> gtk_style_context_restore (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>);</pre> -<p> -Restores <em class="parameter"><code>context</code></em> state to a previous stage. -See <a class="link" href="GtkStyleContext.html#gtk-style-context-save" title="gtk_style_context_save ()"><code class="function">gtk_style_context_save()</code></a>. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> -</td> -</tr></tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-style-context-save"></a><h3>gtk_style_context_save ()</h3> -<pre class="programlisting"><span class="returnvalue">void</span> gtk_style_context_save (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>);</pre> -<p> -Saves the <em class="parameter"><code>context</code></em> state, so all modifications done through -<a class="link" href="GtkStyleContext.html#gtk-style-context-add-class" title="gtk_style_context_add_class ()"><code class="function">gtk_style_context_add_class()</code></a>, <a class="link" href="GtkStyleContext.html#gtk-style-context-remove-class" title="gtk_style_context_remove_class ()"><code class="function">gtk_style_context_remove_class()</code></a>, -<a class="link" href="GtkStyleContext.html#gtk-style-context-add-region" title="gtk_style_context_add_region ()"><code class="function">gtk_style_context_add_region()</code></a>, <a class="link" href="GtkStyleContext.html#gtk-style-context-remove-region" title="gtk_style_context_remove_region ()"><code class="function">gtk_style_context_remove_region()</code></a> -or <a class="link" href="GtkStyleContext.html#gtk-style-context-set-junction-sides" title="gtk_style_context_set_junction_sides ()"><code class="function">gtk_style_context_set_junction_sides()</code></a> can be reverted in one -go through <a class="link" href="GtkStyleContext.html#gtk-style-context-restore" title="gtk_style_context_restore ()"><code class="function">gtk_style_context_restore()</code></a>. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> -</td> -</tr></tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-style-context-set-direction"></a><h3>gtk_style_context_set_direction ()</h3> -<pre class="programlisting"><span class="returnvalue">void</span> gtk_style_context_set_direction (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a class="link" href="GtkWidget.html#GtkTextDirection" title="enum GtkTextDirection"><span class="type">GtkTextDirection</span></a> direction</code></em>);</pre> -<p> -Sets the reading direction for rendering purposes. -</p> -<p> -If you are using a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> returned from -<a class="link" href="GtkWidget.html#gtk-widget-get-style-context" title="gtk_widget_get_style_context ()"><code class="function">gtk_widget_get_style_context()</code></a>, you do not need to -call this yourself. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>direction</code></em> :</span></p></td> -<td>the new direction.</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-style-context-set-junction-sides"></a><h3>gtk_style_context_set_junction_sides ()</h3> -<pre class="programlisting"><span class="returnvalue">void</span> gtk_style_context_set_junction_sides - (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkJunctionSides" title="enum GtkJunctionSides"><span class="type">GtkJunctionSides</span></a> sides</code></em>);</pre> -<p> -Sets the sides where rendered elements (mostly through -<a class="link" href="GtkStyleContext.html#gtk-render-frame" title="gtk_render_frame ()"><code class="function">gtk_render_frame()</code></a>) will visually connect with other visual elements. -</p> -<p> -This is merely a hint that may or may not be honored -by theming engines. -</p> -<p> -Container widgets are expected to set junction hints as appropriate -for their children, so it should not normally be necessary to call -this function manually. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>sides</code></em> :</span></p></td> -<td>sides where rendered elements are visually connected to -other elements</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-style-context-set-parent"></a><h3>gtk_style_context_set_parent ()</h3> -<pre class="programlisting"><span class="returnvalue">void</span> gtk_style_context_set_parent (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *parent</code></em>);</pre> -<p> -Sets the parent style context for <em class="parameter"><code>context</code></em>. The parent style -context is used to implement -<a class="ulink" href="http://www.w3.org/TR/css3-cascade/#inheritance" target="_top">inheritance</a> -of properties. -</p> -<p> -If you are using a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> returned from -<a class="link" href="GtkWidget.html#gtk-widget-get-style-context" title="gtk_widget_get_style_context ()"><code class="function">gtk_widget_get_style_context()</code></a>, the parent will be set for you. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>parent</code></em> :</span></p></td> -<td>the new parent or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span> -</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.4</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-style-context-set-path"></a><h3>gtk_style_context_set_path ()</h3> -<pre class="programlisting"><span class="returnvalue">void</span> gtk_style_context_set_path (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a class="link" href="gtk3-GtkWidgetPath.html#GtkWidgetPath" title="GtkWidgetPath"><span class="type">GtkWidgetPath</span></a> *path</code></em>);</pre> -<p> -Sets the <a class="link" href="gtk3-GtkWidgetPath.html#GtkWidgetPath" title="GtkWidgetPath"><span class="type">GtkWidgetPath</span></a> used for style matching. As a -consequence, the style will be regenerated to match -the new given path. -</p> -<p> -If you are using a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> returned from -<a class="link" href="GtkWidget.html#gtk-widget-get-style-context" title="gtk_widget_get_style_context ()"><code class="function">gtk_widget_get_style_context()</code></a>, you do not need to call -this yourself. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>path</code></em> :</span></p></td> -<td>a <a class="link" href="gtk3-GtkWidgetPath.html#GtkWidgetPath" title="GtkWidgetPath"><span class="type">GtkWidgetPath</span></a> -</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-style-context-add-class"></a><h3>gtk_style_context_add_class ()</h3> -<pre class="programlisting"><span class="returnvalue">void</span> gtk_style_context_add_class (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *class_name</code></em>);</pre> -<p> -Adds a style class to <em class="parameter"><code>context</code></em>, so posterior calls to -<a class="link" href="GtkStyleContext.html#gtk-style-context-get" title="gtk_style_context_get ()"><code class="function">gtk_style_context_get()</code></a> or any of the gtk_render_*() -functions will make use of this new class for styling. -</p> -<p> -In the CSS file format, a <a class="link" href="GtkEntry.html" title="GtkEntry"><span class="type">GtkEntry</span></a> defining an "entry" -class, would be matched by: -</p> -<p> -</p> -<pre class="programlisting"> -GtkEntry.entry { ... } -</pre> -<p> -</p> -<p> -While any widget defining an "entry" class would be -matched by: -</p> -<pre class="programlisting"> -.entry { ... } -</pre> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>class_name</code></em> :</span></p></td> -<td>class name to use in styling</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-style-context-remove-class"></a><h3>gtk_style_context_remove_class ()</h3> -<pre class="programlisting"><span class="returnvalue">void</span> gtk_style_context_remove_class (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *class_name</code></em>);</pre> -<p> -Removes <em class="parameter"><code>class_name</code></em> from <em class="parameter"><code>context</code></em>. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>class_name</code></em> :</span></p></td> -<td>class name to remove</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-style-context-has-class"></a><h3>gtk_style_context_has_class ()</h3> -<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gtk_style_context_has_class (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *class_name</code></em>);</pre> -<p> -Returns <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>context</code></em> currently has defined the -given class name -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>class_name</code></em> :</span></p></td> -<td>a class name</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>context</code></em> has <em class="parameter"><code>class_name</code></em> defined</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-style-context-list-classes"></a><h3>gtk_style_context_list_classes ()</h3> -<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> * gtk_style_context_list_classes (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>);</pre> -<p> -Returns the list of classes currently defined in <em class="parameter"><code>context</code></em>. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td>a <a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> of -strings with the currently defined classes. The contents -of the list are owned by GTK+, but you must free the list -itself with <a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#g-list-free"><code class="function">g_list_free()</code></a> when you are done with it. <span class="annotation">[<acronym title="Free data container after the code is done."><span class="acronym">transfer container</span></acronym>][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> utf8]</span> -</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-style-context-add-region"></a><h3>gtk_style_context_add_region ()</h3> -<pre class="programlisting"><span class="returnvalue">void</span> gtk_style_context_add_region (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *region_name</code></em>, - <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkRegionFlags" title="enum GtkRegionFlags"><span class="type">GtkRegionFlags</span></a> flags</code></em>);</pre> -<p> -Adds a region to <em class="parameter"><code>context</code></em>, so posterior calls to -<a class="link" href="GtkStyleContext.html#gtk-style-context-get" title="gtk_style_context_get ()"><code class="function">gtk_style_context_get()</code></a> or any of the gtk_render_*() -functions will make use of this new region for styling. -</p> -<p> -In the CSS file format, a <a class="link" href="GtkTreeView.html" title="GtkTreeView"><span class="type">GtkTreeView</span></a> defining a "row" -region, would be matched by: -</p> -<p> -</p> -<pre class="programlisting"> -GtkTreeView row { ... } -</pre> -<p> -</p> -<p> -Pseudo-classes are used for matching <em class="parameter"><code>flags</code></em>, so the two -following rules: -</p> -<pre class="programlisting"> -GtkTreeView row:nth-child(even) { ... } -GtkTreeView row:nth-child(odd) { ... } -</pre> -<p> -</p> -<p> -would apply to even and odd rows, respectively. -</p> -<p> -</p> -<div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"> -<h3 class="title">Note</h3> -<p>Region names must only contain lowercase letters -and '-', starting always with a lowercase letter.</p> -</div> -<p> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>region_name</code></em> :</span></p></td> -<td>region name to use in styling</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td> -<td>flags that apply to the region</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-style-context-remove-region"></a><h3>gtk_style_context_remove_region ()</h3> -<pre class="programlisting"><span class="returnvalue">void</span> gtk_style_context_remove_region (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *region_name</code></em>);</pre> -<p> -Removes a region from <em class="parameter"><code>context</code></em>. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>region_name</code></em> :</span></p></td> -<td>region name to unset</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-style-context-has-region"></a><h3>gtk_style_context_has_region ()</h3> -<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gtk_style_context_has_region (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *region_name</code></em>, - <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkRegionFlags" title="enum GtkRegionFlags"><span class="type">GtkRegionFlags</span></a> *flags_return</code></em>);</pre> -<p> -Returns <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>context</code></em> has the region defined. -If <em class="parameter"><code>flags_return</code></em> is not <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, it is set to the flags -affecting the region. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>region_name</code></em> :</span></p></td> -<td>a region name</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>flags_return</code></em> :</span></p></td> -<td>return location for region flags. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td> -<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if region is defined</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-style-context-list-regions"></a><h3>gtk_style_context_list_regions ()</h3> -<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> * gtk_style_context_list_regions (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>);</pre> -<p> -Returns the list of regions currently defined in <em class="parameter"><code>context</code></em>. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td>a <a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> of -strings with the currently defined regions. The contents -of the list are owned by GTK+, but you must free the list -itself with <a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#g-list-free"><code class="function">g_list_free()</code></a> when you are done with it. <span class="annotation">[<acronym title="Free data container after the code is done."><span class="acronym">transfer container</span></acronym>][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> utf8]</span> -</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-style-context-set-screen"></a><h3>gtk_style_context_set_screen ()</h3> -<pre class="programlisting"><span class="returnvalue">void</span> gtk_style_context_set_screen (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a href="http://developer.gnome.org/gdk/GdkScreen.html"><span class="type">GdkScreen</span></a> *screen</code></em>);</pre> -<p> -Attaches <em class="parameter"><code>context</code></em> to the given screen. -</p> -<p> -The screen is used to add style information from 'global' style -providers, such as the screens <a class="link" href="GtkSettings.html" title="Settings"><span class="type">GtkSettings</span></a> instance. -</p> -<p> -If you are using a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> returned from -<a class="link" href="GtkWidget.html#gtk-widget-get-style-context" title="gtk_widget_get_style_context ()"><code class="function">gtk_widget_get_style_context()</code></a>, you do not need to -call this yourself. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>screen</code></em> :</span></p></td> -<td>a <a href="http://developer.gnome.org/gdk/GdkScreen.html"><span class="type">GdkScreen</span></a> -</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-style-context-set-state"></a><h3>gtk_style_context_set_state ()</h3> -<pre class="programlisting"><span class="returnvalue">void</span> gtk_style_context_set_state (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkStateFlags" title="enum GtkStateFlags"><span class="type">GtkStateFlags</span></a> flags</code></em>);</pre> -<p> -Sets the state to be used when rendering with any -of the gtk_render_*() functions. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td> -<td>state to represent</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="GtkBorder-struct"></a><h3>struct GtkBorder</h3> -<pre class="programlisting">struct GtkBorder { - gint16 left; - gint16 right; - gint16 top; - gint16 bottom; -}; -</pre> -<p> -A struct that specifies a border around a rectangular area -that can be of different width on each side. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint16"><span class="type">gint16</span></a> <em class="structfield"><code><a name="GtkBorder-struct.left"></a>left</code></em>;</span></p></td> -<td>The width of the left border</td> -</tr> -<tr> -<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint16"><span class="type">gint16</span></a> <em class="structfield"><code><a name="GtkBorder-struct.right"></a>right</code></em>;</span></p></td> -<td>The width of the right border</td> -</tr> -<tr> -<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint16"><span class="type">gint16</span></a> <em class="structfield"><code><a name="GtkBorder-struct.top"></a>top</code></em>;</span></p></td> -<td>The width of the top border</td> -</tr> -<tr> -<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint16"><span class="type">gint16</span></a> <em class="structfield"><code><a name="GtkBorder-struct.bottom"></a>bottom</code></em>;</span></p></td> -<td>The width of the bottom border</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-border-new"></a><h3>gtk_border_new ()</h3> -<pre class="programlisting"><a class="link" href="GtkStyleContext.html#GtkBorder"><span class="returnvalue">GtkBorder</span></a> * gtk_border_new (<em class="parameter"><code><span class="type">void</span></code></em>);</pre> -<p> -Allocates a new <a class="link" href="GtkStyleContext.html#GtkBorder"><span class="type">GtkBorder</span></a> structure and initializes its elements to zero. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td>a newly allocated <a class="link" href="GtkStyleContext.html#GtkBorder"><span class="type">GtkBorder</span></a>. Free with <a class="link" href="GtkStyleContext.html#gtk-border-free" title="gtk_border_free ()"><code class="function">gtk_border_free()</code></a> -</td> -</tr></tbody> -</table></div> -<p class="since">Since 2.14</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-border-copy"></a><h3>gtk_border_copy ()</h3> -<pre class="programlisting"><a class="link" href="GtkStyleContext.html#GtkBorder"><span class="returnvalue">GtkBorder</span></a> * gtk_border_copy (<em class="parameter"><code>const <a class="link" href="GtkStyleContext.html#GtkBorder"><span class="type">GtkBorder</span></a> *border_</code></em>);</pre> -<p> -Copies a <a class="link" href="GtkStyleContext.html#GtkBorder"><span class="type">GtkBorder</span></a> structure. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>border_</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleContext.html#GtkBorder"><span class="type">GtkBorder</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td>a copy of <em class="parameter"><code>border_</code></em>.</td> -</tr> -</tbody> -</table></div> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-border-free"></a><h3>gtk_border_free ()</h3> -<pre class="programlisting"><span class="returnvalue">void</span> gtk_border_free (<em class="parameter"><code><a class="link" href="GtkStyleContext.html#GtkBorder"><span class="type">GtkBorder</span></a> *border_</code></em>);</pre> -<p> -Frees a <a class="link" href="GtkStyleContext.html#GtkBorder"><span class="type">GtkBorder</span></a> structure. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody><tr> -<td><p><span class="term"><em class="parameter"><code>border_</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleContext.html#GtkBorder"><span class="type">GtkBorder</span></a> -</td> -</tr></tbody> -</table></div> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-render-arrow"></a><h3>gtk_render_arrow ()</h3> -<pre class="programlisting"><span class="returnvalue">void</span> gtk_render_arrow (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> angle</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> size</code></em>);</pre> -<p> -Renders an arrow pointing to <em class="parameter"><code>angle</code></em>. -</p> -<p> -</p> -<div class="example"> -<a name="id648415"></a><p class="title"><b>Example 12. Typical arrow rendering at 0, 1⁄2 π, π and 3⁄2 π</b></p> -<div class="example-contents"><img src="arrows.png"></div> -</div> -<p><br class="example-break"> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td> -<td>a <a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>angle</code></em> :</span></p></td> -<td>arrow angle from 0 to 2 * <a href="http://library.gnome.org/devel/glib/unstable/glib-Numerical-Definitions.html#G-PI:CAPS"><code class="literal">G_PI</code></a>, being 0 the arrow pointing to the north</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td> -<td>X origin of the render area</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td> -<td>Y origin of the render area</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td> -<td>square side for render area</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-render-background"></a><h3>gtk_render_background ()</h3> -<pre class="programlisting"><span class="returnvalue">void</span> gtk_render_background (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> width</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> height</code></em>);</pre> -<p> -Renders the background of an element. -</p> -<p> -</p> -<div class="example"> -<a name="id648684"></a><p class="title"><b>Example 13. Typical background rendering, showing the effect of -<em class="parameter"><code>background-image</code></em>, -<em class="parameter"><code>border-width</code></em> and -<em class="parameter"><code>border-radius</code></em></b></p> -<div class="example-contents"><img src="background.png"></div> -</div> -<p><br class="example-break"> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td> -<td>a <a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td> -<td>X origin of the rectangle</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td> -<td>Y origin of the rectangle</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td> -<td>rectangle width</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td> -<td>rectangle height</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0.</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-render-check"></a><h3>gtk_render_check ()</h3> -<pre class="programlisting"><span class="returnvalue">void</span> gtk_render_check (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> width</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> height</code></em>);</pre> -<p> -Renders a checkmark (as in a <a class="link" href="GtkCheckButton.html" title="GtkCheckButton"><span class="type">GtkCheckButton</span></a>). -</p> -<p> -The <a class="link" href="gtk3-Standard-Enumerations.html#GTK-STATE-FLAG-ACTIVE:CAPS"><code class="literal">GTK_STATE_FLAG_ACTIVE</code></a> state determines whether the check is -on or off, and <a class="link" href="gtk3-Standard-Enumerations.html#GTK-STATE-FLAG-INCONSISTENT:CAPS"><code class="literal">GTK_STATE_FLAG_INCONSISTENT</code></a> determines whether it -should be marked as undefined. -</p> -<p> -</p> -<div class="example"> -<a name="id648994"></a><p class="title"><b>Example 14. Typical checkmark rendering</b></p> -<div class="example-contents"><img src="checks.png"></div> -</div> -<p><br class="example-break"> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td> -<td>a <a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td> -<td>X origin of the rectangle</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td> -<td>Y origin of the rectangle</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td> -<td>rectangle width</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td> -<td>rectangle height</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-render-expander"></a><h3>gtk_render_expander ()</h3> -<pre class="programlisting"><span class="returnvalue">void</span> gtk_render_expander (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> width</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> height</code></em>);</pre> -<p> -Renders an expander (as used in <a class="link" href="GtkTreeView.html" title="GtkTreeView"><span class="type">GtkTreeView</span></a> and <a class="link" href="GtkExpander.html" title="GtkExpander"><span class="type">GtkExpander</span></a>) in the area -defined by <em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em>, <em class="parameter"><code>width</code></em>, <em class="parameter"><code>height</code></em>. The state <a class="link" href="gtk3-Standard-Enumerations.html#GTK-STATE-FLAG-ACTIVE:CAPS"><code class="literal">GTK_STATE_FLAG_ACTIVE</code></a> -determines whether the expander is collapsed or expanded. -</p> -<p> -</p> -<div class="example"> -<a name="id649307"></a><p class="title"><b>Example 15. Typical expander rendering</b></p> -<div class="example-contents"><img src="expanders.png"></div> -</div> -<p><br class="example-break"> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td> -<td>a <a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td> -<td>X origin of the rectangle</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td> -<td>Y origin of the rectangle</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td> -<td>rectangle width</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td> -<td>rectangle height</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-render-extension"></a><h3>gtk_render_extension ()</h3> -<pre class="programlisting"><span class="returnvalue">void</span> gtk_render_extension (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> width</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> height</code></em>, - <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkPositionType" title="enum GtkPositionType"><span class="type">GtkPositionType</span></a> gap_side</code></em>);</pre> -<p> -Renders a extension (as in a <a class="link" href="GtkNotebook.html" title="GtkNotebook"><span class="type">GtkNotebook</span></a> tab) in the rectangle -defined by <em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em>, <em class="parameter"><code>width</code></em>, <em class="parameter"><code>height</code></em>. The side where the extension -connects to is defined by <em class="parameter"><code>gap_side</code></em>. -</p> -<p> -</p> -<div class="example"> -<a name="id649621"></a><p class="title"><b>Example 16. Typical extension rendering</b></p> -<div class="example-contents"><img src="extensions.png"></div> -</div> -<p><br class="example-break"> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td> -<td>a <a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td> -<td>X origin of the rectangle</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td> -<td>Y origin of the rectangle</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td> -<td>rectangle width</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td> -<td>rectangle height</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>gap_side</code></em> :</span></p></td> -<td>side where the gap is</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-render-focus"></a><h3>gtk_render_focus ()</h3> -<pre class="programlisting"><span class="returnvalue">void</span> gtk_render_focus (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> width</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> height</code></em>);</pre> -<p> -Renders a focus indicator on the rectangle determined by <em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em>, <em class="parameter"><code>width</code></em>, <em class="parameter"><code>height</code></em>. -</p> -<div class="example"> -<a name="id649920"></a><p class="title"><b>Example 17. Typical focus rendering</b></p> -<div class="example-contents"><img src="focus.png"></div> -</div> -<p><br class="example-break"> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td> -<td>a <a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td> -<td>X origin of the rectangle</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td> -<td>Y origin of the rectangle</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td> -<td>rectangle width</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td> -<td>rectangle height</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-render-frame"></a><h3>gtk_render_frame ()</h3> -<pre class="programlisting"><span class="returnvalue">void</span> gtk_render_frame (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> width</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> height</code></em>);</pre> -<p> -Renders a frame around the rectangle defined by <em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em>, <em class="parameter"><code>width</code></em>, <em class="parameter"><code>height</code></em>. -</p> -<p> -</p> -<div class="example"> -<a name="id650206"></a><p class="title"><b>Example 18. Examples of frame rendering, showing the effect of -<em class="parameter"><code>border-image</code></em>, -<em class="parameter"><code>border-color</code></em>, -<em class="parameter"><code>border-width</code></em>, -<em class="parameter"><code>border-radius</code></em> and -junctions</b></p> -<div class="example-contents"><img src="frames.png"></div> -</div> -<p><br class="example-break"> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td> -<td>a <a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td> -<td>X origin of the rectangle</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td> -<td>Y origin of the rectangle</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td> -<td>rectangle width</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td> -<td>rectangle height</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-render-frame-gap"></a><h3>gtk_render_frame_gap ()</h3> -<pre class="programlisting"><span class="returnvalue">void</span> gtk_render_frame_gap (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> width</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> height</code></em>, - <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkPositionType" title="enum GtkPositionType"><span class="type">GtkPositionType</span></a> gap_side</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> xy0_gap</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> xy1_gap</code></em>);</pre> -<p> -Renders a frame around the rectangle defined by (<em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em>, <em class="parameter"><code>width</code></em>, <em class="parameter"><code>height</code></em>), -leaving a gap on one side. <em class="parameter"><code>xy0_gap</code></em> and <em class="parameter"><code>xy1_gap</code></em> will mean X coordinates -for <a class="link" href="gtk3-Standard-Enumerations.html#GTK-POS-TOP:CAPS"><code class="literal">GTK_POS_TOP</code></a> and <a class="link" href="gtk3-Standard-Enumerations.html#GTK-POS-BOTTOM:CAPS"><code class="literal">GTK_POS_BOTTOM</code></a> gap sides, and Y coordinates for -<a class="link" href="gtk3-Standard-Enumerations.html#GTK-POS-LEFT:CAPS"><code class="literal">GTK_POS_LEFT</code></a> and <a class="link" href="gtk3-Standard-Enumerations.html#GTK-POS-RIGHT:CAPS"><code class="literal">GTK_POS_RIGHT</code></a>. -</p> -<p> -</p> -<div class="example"> -<a name="id650618"></a><p class="title"><b>Example 19. Typical rendering of a frame with a gap</b></p> -<div class="example-contents"><img src="frame-gap.png"></div> -</div> -<p><br class="example-break"> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td> -<td>a <a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td> -<td>X origin of the rectangle</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td> -<td>Y origin of the rectangle</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td> -<td>rectangle width</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td> -<td>rectangle height</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>gap_side</code></em> :</span></p></td> -<td>side where the gap is</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>xy0_gap</code></em> :</span></p></td> -<td>initial coordinate (X or Y depending on <em class="parameter"><code>gap_side</code></em>) for the gap</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>xy1_gap</code></em> :</span></p></td> -<td>end coordinate (X or Y depending on <em class="parameter"><code>gap_side</code></em>) for the gap</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-render-handle"></a><h3>gtk_render_handle ()</h3> -<pre class="programlisting"><span class="returnvalue">void</span> gtk_render_handle (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> width</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> height</code></em>);</pre> -<p> -Renders a handle (as in <a class="link" href="GtkHandleBox.html" title="GtkHandleBox"><span class="type">GtkHandleBox</span></a>, <a class="link" href="GtkPaned.html" title="GtkPaned"><span class="type">GtkPaned</span></a> and -<a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>'s resize grip), in the rectangle -determined by <em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em>, <em class="parameter"><code>width</code></em>, <em class="parameter"><code>height</code></em>. -</p> -<p> -</p> -<div class="example"> -<a name="id650989"></a><p class="title"><b>Example 20. Handles rendered for the paned and grip classes</b></p> -<div class="example-contents"><img src="handles.png"></div> -</div> -<p><br class="example-break"> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td> -<td>a <a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td> -<td>X origin of the rectangle</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td> -<td>Y origin of the rectangle</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td> -<td>rectangle width</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td> -<td>rectangle height</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-render-layout"></a><h3>gtk_render_layout ()</h3> -<pre class="programlisting"><span class="returnvalue">void</span> gtk_render_layout (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>, - <em class="parameter"><code><a href="/home/mclasen/gnome/share/gtk-doc/html/pango/pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>);</pre> -<p> -Renders <em class="parameter"><code>layout</code></em> on the coordinates <em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td> -<td>a <a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td> -<td>X origin</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td> -<td>Y origin</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>layout</code></em> :</span></p></td> -<td>the <a href="/home/mclasen/gnome/share/gtk-doc/html/pango/pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> to render</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-render-line"></a><h3>gtk_render_line ()</h3> -<pre class="programlisting"><span class="returnvalue">void</span> gtk_render_line (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x0</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y0</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x1</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y1</code></em>);</pre> -<p> -Renders a line from (x0, y0) to (x1, y1). -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td> -<td>a <a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>x0</code></em> :</span></p></td> -<td>X coordinate for the origin of the line</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>y0</code></em> :</span></p></td> -<td>Y coordinate for the origin of the line</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>x1</code></em> :</span></p></td> -<td>X coordinate for the end of the line</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>y1</code></em> :</span></p></td> -<td>Y coordinate for the end of the line</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-render-option"></a><h3>gtk_render_option ()</h3> -<pre class="programlisting"><span class="returnvalue">void</span> gtk_render_option (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> width</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> height</code></em>);</pre> -<p> -Renders an option mark (as in a <a class="link" href="GtkRadioButton.html" title="GtkRadioButton"><span class="type">GtkRadioButton</span></a>), the <a class="link" href="gtk3-Standard-Enumerations.html#GTK-STATE-FLAG-ACTIVE:CAPS"><code class="literal">GTK_STATE_FLAG_ACTIVE</code></a> -state will determine whether the option is on or off, and -<a class="link" href="gtk3-Standard-Enumerations.html#GTK-STATE-FLAG-INCONSISTENT:CAPS"><code class="literal">GTK_STATE_FLAG_INCONSISTENT</code></a> whether it should be marked as undefined. -</p> -<p> -</p> -<div class="example"> -<a name="id651755"></a><p class="title"><b>Example 21. Typical option mark rendering</b></p> -<div class="example-contents"><img src="options.png"></div> -</div> -<p><br class="example-break"> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td> -<td>a <a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td> -<td>X origin of the rectangle</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td> -<td>Y origin of the rectangle</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td> -<td>rectangle width</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td> -<td>rectangle height</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-render-slider"></a><h3>gtk_render_slider ()</h3> -<pre class="programlisting"><span class="returnvalue">void</span> gtk_render_slider (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> width</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> height</code></em>, - <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkOrientation" title="enum GtkOrientation"><span class="type">GtkOrientation</span></a> orientation</code></em>);</pre> -<p> -Renders a slider (as in <a class="link" href="GtkScale.html" title="GtkScale"><span class="type">GtkScale</span></a>) in the rectangle defined by <em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em>, -<em class="parameter"><code>width</code></em>, <em class="parameter"><code>height</code></em>. <em class="parameter"><code>orientation</code></em> defines whether the slider is vertical -or horizontal. -</p> -<p> -</p> -<div class="example"> -<a name="id652070"></a><p class="title"><b>Example 22. Typical slider rendering</b></p> -<div class="example-contents"><img src="sliders.png"></div> -</div> -<p><br class="example-break"> -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td> -<td>a <a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td> -<td>X origin of the rectangle</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td> -<td>Y origin of the rectangle</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td> -<td>rectangle width</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td> -<td>rectangle height</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>orientation</code></em> :</span></p></td> -<td>orientation of the slider</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-render-activity"></a><h3>gtk_render_activity ()</h3> -<pre class="programlisting"><span class="returnvalue">void</span> gtk_render_activity (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> width</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> height</code></em>);</pre> -<p> -Renders an activity area (Such as in <a class="link" href="GtkSpinner.html" title="GtkSpinner"><span class="type">GtkSpinner</span></a> or the -fill line in <a class="link" href="GtkRange.html" title="GtkRange"><span class="type">GtkRange</span></a>), the state <a class="link" href="gtk3-Standard-Enumerations.html#GTK-STATE-FLAG-ACTIVE:CAPS"><code class="literal">GTK_STATE_FLAG_ACTIVE</code></a> -determines whether there is activity going on. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td> -<td>a <a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td> -<td>X origin of the rectangle</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td> -<td>Y origin of the rectangle</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td> -<td>rectangle width</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td> -<td>rectangle height</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-render-icon-pixbuf"></a><h3>gtk_render_icon_pixbuf ()</h3> -<pre class="programlisting"><a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> * gtk_render_icon_pixbuf (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code>const <a class="link" href="gtk3-Themeable-Stock-Images.html#GtkIconSource" title="GtkIconSource"><span class="type">GtkIconSource</span></a> *source</code></em>, - <em class="parameter"><code><a class="link" href="gtk3-Themeable-Stock-Images.html#GtkIconSize" title="enum GtkIconSize"><span class="type">GtkIconSize</span></a> size</code></em>);</pre> -<p> -Renders the icon specified by <em class="parameter"><code>source</code></em> at the given <em class="parameter"><code>size</code></em>, returning the result -in a pixbuf. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>source</code></em> :</span></p></td> -<td>the <a class="link" href="gtk3-Themeable-Stock-Images.html#GtkIconSource" title="GtkIconSource"><span class="type">GtkIconSource</span></a> specifying the icon to render</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td> -<td>the size to render the icon at. A size of (GtkIconSize) -1 -means render at the size of the source and don't scale. <span class="annotation">[<acronym title="Override the parsed C type with given type."><span class="acronym">type</span></acronym> int]</span> -</td> -</tr> -<tr> -<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> -<td>a newly-created <a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> containing the rendered icon. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span> -</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.0</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-render-icon"></a><h3>gtk_render_icon ()</h3> -<pre class="programlisting"><span class="returnvalue">void</span> gtk_render_icon (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>);</pre> -<p> -Renders the icon in <em class="parameter"><code>pixbuf</code></em> at the specified <em class="parameter"><code>x</code></em> and <em class="parameter"><code>y</code></em> coordinates. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td> -<td>a <a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>pixbuf</code></em> :</span></p></td> -<td>a <a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> containing the icon to draw</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td> -<td>X position for the <em class="parameter"><code>pixbuf</code></em> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td> -<td>Y position for the <em class="parameter"><code>pixbuf</code></em> -</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.2</p> -</div> -<hr> -<div class="refsect2"> -<a name="gtk-render-insertion-cursor"></a><h3>gtk_render_insertion_cursor ()</h3> -<pre class="programlisting"><span class="returnvalue">void</span> gtk_render_insertion_cursor (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>, - <em class="parameter"><code><a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>, - <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>, - <em class="parameter"><code><a href="/home/mclasen/gnome/share/gtk-doc/html/pango/pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>, - <em class="parameter"><code><span class="type">int</span> index</code></em>, - <em class="parameter"><code><a href="/home/mclasen/gnome/share/gtk-doc/html/pango/pango-Bidirectional-Text.html#PangoDirection"><span class="type">PangoDirection</span></a> direction</code></em>);</pre> -<p> -Draws a text caret on <em class="parameter"><code>cr</code></em> at the specified index of <em class="parameter"><code>layout</code></em>. -</p> -<div class="variablelist"><table border="0"> -<col align="left" valign="top"> -<tbody> -<tr> -<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td> -<td>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td> -<td>a <a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td> -<td>X origin</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td> -<td>Y origin</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>layout</code></em> :</span></p></td> -<td>the <a href="/home/mclasen/gnome/share/gtk-doc/html/pango/pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> of the text</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>index</code></em> :</span></p></td> -<td>the index in the <a href="/home/mclasen/gnome/share/gtk-doc/html/pango/pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> -</td> -</tr> -<tr> -<td><p><span class="term"><em class="parameter"><code>direction</code></em> :</span></p></td> -<td>the <a href="/home/mclasen/gnome/share/gtk-doc/html/pango/pango-Bidirectional-Text.html#PangoDirection"><span class="type">PangoDirection</span></a> of the text</td> -</tr> -</tbody> -</table></div> -<p class="since">Since 3.4</p> -</div> -</div> -<div class="refsect1"> -<a name="GtkStyleContext.property-details"></a><h2>Property Details</h2> -<div class="refsect2"> -<a name="GtkStyleContext--direction"></a><h3>The <code class="literal">"direction"</code> property</h3> -<pre class="programlisting"> "direction" <a class="link" href="GtkWidget.html#GtkTextDirection" title="enum GtkTextDirection"><span class="type">GtkTextDirection</span></a> : Read / Write</pre> -<p>Text direction.</p> -<p>Default value: GTK_TEXT_DIR_LTR</p> -</div> -<hr> -<div class="refsect2"> -<a name="GtkStyleContext--parent"></a><h3>The <code class="literal">"parent"</code> property</h3> -<pre class="programlisting"> "parent" <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a>* : Read / Write</pre> -<p> -Sets or gets the style context's parent. See <a class="link" href="GtkStyleContext.html#gtk-style-context-set-parent" title="gtk_style_context_set_parent ()"><code class="function">gtk_style_context_set_parent()</code></a> -for details. -</p> -<p class="since">Since 3.4</p> -</div> -<hr> -<div class="refsect2"> -<a name="GtkStyleContext--screen"></a><h3>The <code class="literal">"screen"</code> property</h3> -<pre class="programlisting"> "screen" <a href="http://developer.gnome.org/gdk/GdkScreen.html"><span class="type">GdkScreen</span></a>* : Read / Write</pre> -<p>The associated GdkScreen.</p> -</div> -</div> -<div class="refsect1"> -<a name="GtkStyleContext.signal-details"></a><h2>Signal Details</h2> -<div class="refsect2"> -<a name="GtkStyleContext-changed"></a><h3>The <code class="literal">"changed"</code> signal</h3> -<pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *stylecontext, - <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-FIRST:CAPS"><code class="literal">Run First</code></a></pre> -</div> -</div> -</div> -<div class="footer"> -<hr> - Generated by GTK-Doc V1.18.1</div> -</body> -</html>
\ No newline at end of file |