gtk3/docs/reference/gtk/html/GtkStyleContext.html
2022-11-23 15:09:27 +00:00

6012 lines
301 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!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: GTK+ 3 Reference Manual</title>
<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot">
<link rel="home" href="index.html" title="GTK+ 3 Reference Manual">
<link rel="up" href="theming.html" title="Part IV. Theming in GTK+">
<link rel="prev" href="chap-css-properties.html" title="GTK+ CSS Properties">
<link rel="next" href="GtkCssProvider.html" title="GtkCssProvider">
<meta name="generator" content="GTK-Doc V1.33.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="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts">
<a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
<a href="#GtkStyleContext.description" class="shortcut">Description</a></span><span id="nav_hierarchy">  <span class="dim">|</span> 
<a href="#GtkStyleContext.object-hierarchy" class="shortcut">Object Hierarchy</a></span><span id="nav_properties">  <span class="dim">|</span> 
<a href="#GtkStyleContext.properties" class="shortcut">Properties</a></span><span id="nav_signals">  <span class="dim">|</span> 
<a href="#GtkStyleContext.signals" class="shortcut">Signals</a></span>
</td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><a accesskey="u" href="theming.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="chap-css-properties.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="GtkCssProvider.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></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 class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="GtkStyleContext.functions"></a><h2>Functions</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="functions_proto_type">
<col class="functions_proto_name">
</colgroup>
<tbody>
<tr>
<td class="function_type">
<a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="returnvalue">GtkStyleContext</span></a> *
</td>
<td class="function_name">
<a class="link" href="GtkStyleContext.html#gtk-style-context-new" title="gtk_style_context_new ()">gtk_style_context_new</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GtkStyleContext.html#gtk-style-context-add-provider" title="gtk_style_context_add_provider ()">gtk_style_context_add_provider</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<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> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GtkStyleContext.html#gtk-style-context-get" title="gtk_style_context_get ()">gtk_style_context_get</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="GtkWidget.html#GtkTextDirection" title="enum GtkTextDirection"><span class="returnvalue">GtkTextDirection</span></a>
</td>
<td class="function_name">
<a class="link" href="GtkStyleContext.html#gtk-style-context-get-direction" title="gtk_style_context_get_direction ()">gtk_style_context_get_direction</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="GtkStyleContext.html#GtkJunctionSides" title="enum GtkJunctionSides"><span class="returnvalue">GtkJunctionSides</span></a>
</td>
<td class="function_name">
<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> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="returnvalue">GtkStyleContext</span></a> *
</td>
<td class="function_name">
<a class="link" href="GtkStyleContext.html#gtk-style-context-get-parent" title="gtk_style_context_get_parent ()">gtk_style_context_get_parent</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">const <a class="link" href="gtk3-GtkWidgetPath.html#GtkWidgetPath" title="GtkWidgetPath"><span class="returnvalue">GtkWidgetPath</span></a> *
</td>
<td class="function_name">
<a class="link" href="GtkStyleContext.html#gtk-style-context-get-path" title="gtk_style_context_get_path ()">gtk_style_context_get_path</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GtkStyleContext.html#gtk-style-context-get-property" title="gtk_style_context_get_property ()">gtk_style_context_get_property</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">GdkScreen</span> *
</td>
<td class="function_name">
<a class="link" href="GtkStyleContext.html#gtk-style-context-get-screen" title="gtk_style_context_get_screen ()">gtk_style_context_get_screen</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">GdkFrameClock</span> *
</td>
<td class="function_name">
<a class="link" href="GtkStyleContext.html#gtk-style-context-get-frame-clock" title="gtk_style_context_get_frame_clock ()">gtk_style_context_get_frame_clock</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="gtk3-Standard-Enumerations.html#GtkStateFlags" title="enum GtkStateFlags"><span class="returnvalue">GtkStateFlags</span></a>
</td>
<td class="function_name">
<a class="link" href="GtkStyleContext.html#gtk-style-context-get-state" title="gtk_style_context_get_state ()">gtk_style_context_get_state</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GtkStyleContext.html#gtk-style-context-get-style" title="gtk_style_context_get_style ()">gtk_style_context_get_style</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<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> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<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> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GtkStyleContext.html#gtk-style-context-get-valist" title="gtk_style_context_get_valist ()">gtk_style_context_get_valist</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="GtkCssProvider.html#GtkCssSection"><span class="returnvalue">GtkCssSection</span></a> *
</td>
<td class="function_name">
<a class="link" href="GtkStyleContext.html#gtk-style-context-get-section" title="gtk_style_context_get_section ()">gtk_style_context_get_section</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GtkStyleContext.html#gtk-style-context-get-color" title="gtk_style_context_get_color ()">gtk_style_context_get_color</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<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> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<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> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GtkStyleContext.html#gtk-style-context-get-border" title="gtk_style_context_get_border ()">gtk_style_context_get_border</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GtkStyleContext.html#gtk-style-context-get-padding" title="gtk_style_context_get_padding ()">gtk_style_context_get_padding</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GtkStyleContext.html#gtk-style-context-get-margin" title="gtk_style_context_get_margin ()">gtk_style_context_get_margin</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">const <span class="returnvalue">PangoFontDescription</span> *
</td>
<td class="function_name">
<a class="link" href="GtkStyleContext.html#gtk-style-context-get-font" title="gtk_style_context_get_font ()">gtk_style_context_get_font</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GtkStyleContext.html#gtk-style-context-invalidate" title="gtk_style_context_invalidate ()">gtk_style_context_invalidate</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<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> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="GtkStyleContext.html#gtk-style-context-lookup-color" title="gtk_style_context_lookup_color ()">gtk_style_context_lookup_color</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="gtk3-Themeable-Stock-Images.html#GtkIconSet"><span class="returnvalue">GtkIconSet</span></a> *
</td>
<td class="function_name">
<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> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<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> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<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> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<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> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GtkStyleContext.html#gtk-style-context-cancel-animations" title="gtk_style_context_cancel_animations ()">gtk_style_context_cancel_animations</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GtkStyleContext.html#gtk-style-context-scroll-animations" title="gtk_style_context_scroll_animations ()">gtk_style_context_scroll_animations</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GtkStyleContext.html#gtk-style-context-remove-provider" title="gtk_style_context_remove_provider ()">gtk_style_context_remove_provider</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<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> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GtkStyleContext.html#gtk-style-context-reset-widgets" title="gtk_style_context_reset_widgets ()">gtk_style_context_reset_widgets</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GtkStyleContext.html#gtk-style-context-set-background" title="gtk_style_context_set_background ()">gtk_style_context_set_background</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GtkStyleContext.html#gtk-style-context-restore" title="gtk_style_context_restore ()">gtk_style_context_restore</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GtkStyleContext.html#gtk-style-context-save" title="gtk_style_context_save ()">gtk_style_context_save</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GtkStyleContext.html#gtk-style-context-set-direction" title="gtk_style_context_set_direction ()">gtk_style_context_set_direction</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<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> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GtkStyleContext.html#gtk-style-context-set-parent" title="gtk_style_context_set_parent ()">gtk_style_context_set_parent</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GtkStyleContext.html#gtk-style-context-set-path" title="gtk_style_context_set_path ()">gtk_style_context_set_path</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GtkStyleContext.html#gtk-style-context-add-class" title="gtk_style_context_add_class ()">gtk_style_context_add_class</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GtkStyleContext.html#gtk-style-context-remove-class" title="gtk_style_context_remove_class ()">gtk_style_context_remove_class</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="GtkStyleContext.html#gtk-style-context-has-class" title="gtk_style_context_has_class ()">gtk_style_context_has_class</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">GList</span> *
</td>
<td class="function_name">
<a class="link" href="GtkStyleContext.html#gtk-style-context-list-classes" title="gtk_style_context_list_classes ()">gtk_style_context_list_classes</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GtkStyleContext.html#gtk-style-context-add-region" title="gtk_style_context_add_region ()">gtk_style_context_add_region</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GtkStyleContext.html#gtk-style-context-remove-region" title="gtk_style_context_remove_region ()">gtk_style_context_remove_region</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="GtkStyleContext.html#gtk-style-context-has-region" title="gtk_style_context_has_region ()">gtk_style_context_has_region</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">GList</span> *
</td>
<td class="function_name">
<a class="link" href="GtkStyleContext.html#gtk-style-context-list-regions" title="gtk_style_context_list_regions ()">gtk_style_context_list_regions</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GtkStyleContext.html#gtk-style-context-set-screen" title="gtk_style_context_set_screen ()">gtk_style_context_set_screen</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GtkStyleContext.html#gtk-style-context-set-frame-clock" title="gtk_style_context_set_frame_clock ()">gtk_style_context_set_frame_clock</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GtkStyleContext.html#gtk-style-context-set-state" title="gtk_style_context_set_state ()">gtk_style_context_set_state</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GtkStyleContext.html#gtk-style-context-set-scale" title="gtk_style_context_set_scale ()">gtk_style_context_set_scale</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gint</span>
</td>
<td class="function_name">
<a class="link" href="GtkStyleContext.html#gtk-style-context-get-scale" title="gtk_style_context_get_scale ()">gtk_style_context_get_scale</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">char</span> *
</td>
<td class="function_name">
<a class="link" href="GtkStyleContext.html#gtk-style-context-to-string" title="gtk_style_context_to_string ()">gtk_style_context_to_string</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="GtkStyleContext.html#GtkBorder"><span class="returnvalue">GtkBorder</span></a> *
</td>
<td class="function_name">
<a class="link" href="GtkStyleContext.html#gtk-border-new" title="gtk_border_new ()">gtk_border_new</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="GtkStyleContext.html#GtkBorder"><span class="returnvalue">GtkBorder</span></a> *
</td>
<td class="function_name">
<a class="link" href="GtkStyleContext.html#gtk-border-copy" title="gtk_border_copy ()">gtk_border_copy</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GtkStyleContext.html#gtk-border-free" title="gtk_border_free ()">gtk_border_free</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GtkStyleContext.html#gtk-render-arrow" title="gtk_render_arrow ()">gtk_render_arrow</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GtkStyleContext.html#gtk-render-background" title="gtk_render_background ()">gtk_render_background</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GtkStyleContext.html#gtk-render-background-get-clip" title="gtk_render_background_get_clip ()">gtk_render_background_get_clip</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GtkStyleContext.html#gtk-render-check" title="gtk_render_check ()">gtk_render_check</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GtkStyleContext.html#gtk-render-expander" title="gtk_render_expander ()">gtk_render_expander</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GtkStyleContext.html#gtk-render-extension" title="gtk_render_extension ()">gtk_render_extension</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GtkStyleContext.html#gtk-render-focus" title="gtk_render_focus ()">gtk_render_focus</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GtkStyleContext.html#gtk-render-frame" title="gtk_render_frame ()">gtk_render_frame</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GtkStyleContext.html#gtk-render-frame-gap" title="gtk_render_frame_gap ()">gtk_render_frame_gap</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GtkStyleContext.html#gtk-render-handle" title="gtk_render_handle ()">gtk_render_handle</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GtkStyleContext.html#gtk-render-layout" title="gtk_render_layout ()">gtk_render_layout</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GtkStyleContext.html#gtk-render-line" title="gtk_render_line ()">gtk_render_line</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GtkStyleContext.html#gtk-render-option" title="gtk_render_option ()">gtk_render_option</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GtkStyleContext.html#gtk-render-slider" title="gtk_render_slider ()">gtk_render_slider</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GtkStyleContext.html#gtk-render-activity" title="gtk_render_activity ()">gtk_render_activity</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">GdkPixbuf</span> *
</td>
<td class="function_name">
<a class="link" href="GtkStyleContext.html#gtk-render-icon-pixbuf" title="gtk_render_icon_pixbuf ()">gtk_render_icon_pixbuf</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GtkStyleContext.html#gtk-render-icon-surface" title="gtk_render_icon_surface ()">gtk_render_icon_surface</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GtkStyleContext.html#gtk-render-icon" title="gtk_render_icon ()">gtk_render_icon</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GtkStyleContext.html#gtk-render-insertion-cursor" title="gtk_render_insertion_cursor ()">gtk_render_insertion_cursor</a> <span class="c_punctuation">()</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="GtkStyleContext.properties"></a><h2>Properties</h2>
<div class="informaltable"><table class="informaltable" border="0">
<colgroup>
<col width="150px" class="properties_type">
<col width="300px" class="properties_name">
<col width="200px" class="properties_flags">
</colgroup>
<tbody>
<tr>
<td class="property_type"><a class="link" href="GtkWidget.html#GtkTextDirection" title="enum GtkTextDirection"><span class="type">GtkTextDirection</span></a></td>
<td class="property_name"><a class="link" href="GtkStyleContext.html#GtkStyleContext--direction" title="The “direction” property">direction</a></td>
<td class="property_flags">Read / Write</td>
</tr>
<tr>
<td class="property_type">
<span class="type">GdkFrameClock</span> *</td>
<td class="property_name"><a class="link" href="GtkStyleContext.html#GtkStyleContext--paint-clock" title="The “paint-clock” property">paint-clock</a></td>
<td class="property_flags">Read / Write</td>
</tr>
<tr>
<td class="property_type">
<a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *</td>
<td class="property_name"><a class="link" href="GtkStyleContext.html#GtkStyleContext--parent" title="The “parent” property">parent</a></td>
<td class="property_flags">Read / Write</td>
</tr>
<tr>
<td class="property_type">
<span class="type">GdkScreen</span> *</td>
<td class="property_name"><a class="link" href="GtkStyleContext.html#GtkStyleContext--screen" title="The “screen” property">screen</a></td>
<td class="property_flags">Read / Write</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="GtkStyleContext.signals"></a><h2>Signals</h2>
<div class="informaltable"><table class="informaltable" border="0">
<colgroup>
<col width="150px" class="signal_proto_type">
<col width="300px" class="signal_proto_name">
<col width="200px" class="signal_proto_flags">
</colgroup>
<tbody><tr>
<td class="signal_type"><span class="returnvalue">void</span></td>
<td class="signal_name"><a class="link" href="GtkStyleContext.html#GtkStyleContext-changed" title="The “changed” signal">changed</a></td>
<td class="signal_flags">Run First</td>
</tr></tbody>
</table></div>
</div>
<a name="GtkBorder"></a><div class="refsect1">
<a name="GtkStyleContext.other"></a><h2>Types and Values</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="other_proto_type">
<col class="other_proto_name">
</colgroup>
<tbody>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-PROPERTY-BACKGROUND-COLOR:CAPS" title="GTK_STYLE_PROPERTY_BACKGROUND_COLOR">GTK_STYLE_PROPERTY_BACKGROUND_COLOR</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-PROPERTY-COLOR:CAPS" title="GTK_STYLE_PROPERTY_COLOR">GTK_STYLE_PROPERTY_COLOR</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-PROPERTY-FONT:CAPS" title="GTK_STYLE_PROPERTY_FONT">GTK_STYLE_PROPERTY_FONT</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-PROPERTY-MARGIN:CAPS" title="GTK_STYLE_PROPERTY_MARGIN">GTK_STYLE_PROPERTY_MARGIN</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-PROPERTY-PADDING:CAPS" title="GTK_STYLE_PROPERTY_PADDING">GTK_STYLE_PROPERTY_PADDING</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-PROPERTY-BORDER-WIDTH:CAPS" title="GTK_STYLE_PROPERTY_BORDER_WIDTH">GTK_STYLE_PROPERTY_BORDER_WIDTH</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-PROPERTY-BORDER-RADIUS:CAPS" title="GTK_STYLE_PROPERTY_BORDER_RADIUS">GTK_STYLE_PROPERTY_BORDER_RADIUS</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-PROPERTY-BORDER-STYLE:CAPS" title="GTK_STYLE_PROPERTY_BORDER_STYLE">GTK_STYLE_PROPERTY_BORDER_STYLE</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-PROPERTY-BORDER-COLOR:CAPS" title="GTK_STYLE_PROPERTY_BORDER_COLOR">GTK_STYLE_PROPERTY_BORDER_COLOR</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-PROPERTY-BACKGROUND-IMAGE:CAPS" title="GTK_STYLE_PROPERTY_BACKGROUND_IMAGE">GTK_STYLE_PROPERTY_BACKGROUND_IMAGE</a></td>
</tr>
<tr>
<td class="datatype_keyword">enum</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GtkBorderStyle" title="enum GtkBorderStyle">GtkBorderStyle</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-ACCELERATOR:CAPS" title="GTK_STYLE_CLASS_ACCELERATOR">GTK_STYLE_CLASS_ACCELERATOR</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-ARROW:CAPS" title="GTK_STYLE_CLASS_ARROW">GTK_STYLE_CLASS_ARROW</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-BACKGROUND:CAPS" title="GTK_STYLE_CLASS_BACKGROUND">GTK_STYLE_CLASS_BACKGROUND</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-BOTTOM:CAPS" title="GTK_STYLE_CLASS_BOTTOM">GTK_STYLE_CLASS_BOTTOM</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-BUTTON:CAPS" title="GTK_STYLE_CLASS_BUTTON">GTK_STYLE_CLASS_BUTTON</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-CALENDAR:CAPS" title="GTK_STYLE_CLASS_CALENDAR">GTK_STYLE_CLASS_CALENDAR</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-CELL:CAPS" title="GTK_STYLE_CLASS_CELL">GTK_STYLE_CLASS_CELL</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-COMBOBOX-ENTRY:CAPS" title="GTK_STYLE_CLASS_COMBOBOX_ENTRY">GTK_STYLE_CLASS_COMBOBOX_ENTRY</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-CONTEXT-MENU:CAPS" title="GTK_STYLE_CLASS_CONTEXT_MENU">GTK_STYLE_CLASS_CONTEXT_MENU</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-CHECK:CAPS" title="GTK_STYLE_CLASS_CHECK">GTK_STYLE_CLASS_CHECK</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-CSD:CAPS" title="GTK_STYLE_CLASS_CSD">GTK_STYLE_CLASS_CSD</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-CURSOR-HANDLE:CAPS" title="GTK_STYLE_CLASS_CURSOR_HANDLE">GTK_STYLE_CLASS_CURSOR_HANDLE</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-DEFAULT:CAPS" title="GTK_STYLE_CLASS_DEFAULT">GTK_STYLE_CLASS_DEFAULT</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-DESTRUCTIVE-ACTION:CAPS" title="GTK_STYLE_CLASS_DESTRUCTIVE_ACTION">GTK_STYLE_CLASS_DESTRUCTIVE_ACTION</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-DIM-LABEL:CAPS" title="GTK_STYLE_CLASS_DIM_LABEL">GTK_STYLE_CLASS_DIM_LABEL</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-DND:CAPS" title="GTK_STYLE_CLASS_DND">GTK_STYLE_CLASS_DND</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-DOCK:CAPS" title="GTK_STYLE_CLASS_DOCK">GTK_STYLE_CLASS_DOCK</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-ENTRY:CAPS" title="GTK_STYLE_CLASS_ENTRY">GTK_STYLE_CLASS_ENTRY</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-ERROR:CAPS" title="GTK_STYLE_CLASS_ERROR">GTK_STYLE_CLASS_ERROR</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-EXPANDER:CAPS" title="GTK_STYLE_CLASS_EXPANDER">GTK_STYLE_CLASS_EXPANDER</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-FRAME:CAPS" title="GTK_STYLE_CLASS_FRAME">GTK_STYLE_CLASS_FRAME</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-FLAT:CAPS" title="GTK_STYLE_CLASS_FLAT">GTK_STYLE_CLASS_FLAT</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-GRIP:CAPS" title="GTK_STYLE_CLASS_GRIP">GTK_STYLE_CLASS_GRIP</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-HEADER:CAPS" title="GTK_STYLE_CLASS_HEADER">GTK_STYLE_CLASS_HEADER</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-HIGHLIGHT:CAPS" title="GTK_STYLE_CLASS_HIGHLIGHT">GTK_STYLE_CLASS_HIGHLIGHT</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-HORIZONTAL:CAPS" title="GTK_STYLE_CLASS_HORIZONTAL">GTK_STYLE_CLASS_HORIZONTAL</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-IMAGE:CAPS" title="GTK_STYLE_CLASS_IMAGE">GTK_STYLE_CLASS_IMAGE</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-INFO:CAPS" title="GTK_STYLE_CLASS_INFO">GTK_STYLE_CLASS_INFO</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-INLINE-TOOLBAR:CAPS" title="GTK_STYLE_CLASS_INLINE_TOOLBAR">GTK_STYLE_CLASS_INLINE_TOOLBAR</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-INSERTION-CURSOR:CAPS" title="GTK_STYLE_CLASS_INSERTION_CURSOR">GTK_STYLE_CLASS_INSERTION_CURSOR</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-LABEL:CAPS" title="GTK_STYLE_CLASS_LABEL">GTK_STYLE_CLASS_LABEL</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-LEFT:CAPS" title="GTK_STYLE_CLASS_LEFT">GTK_STYLE_CLASS_LEFT</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-LEVEL-BAR:CAPS" title="GTK_STYLE_CLASS_LEVEL_BAR">GTK_STYLE_CLASS_LEVEL_BAR</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-LINKED:CAPS" title="GTK_STYLE_CLASS_LINKED">GTK_STYLE_CLASS_LINKED</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-LIST:CAPS" title="GTK_STYLE_CLASS_LIST">GTK_STYLE_CLASS_LIST</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-LIST-ROW:CAPS" title="GTK_STYLE_CLASS_LIST_ROW">GTK_STYLE_CLASS_LIST_ROW</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-MARK:CAPS" title="GTK_STYLE_CLASS_MARK">GTK_STYLE_CLASS_MARK</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-MENU:CAPS" title="GTK_STYLE_CLASS_MENU">GTK_STYLE_CLASS_MENU</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-MENUBAR:CAPS" title="GTK_STYLE_CLASS_MENUBAR">GTK_STYLE_CLASS_MENUBAR</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-MENUITEM:CAPS" title="GTK_STYLE_CLASS_MENUITEM">GTK_STYLE_CLASS_MENUITEM</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-MESSAGE-DIALOG:CAPS" title="GTK_STYLE_CLASS_MESSAGE_DIALOG">GTK_STYLE_CLASS_MESSAGE_DIALOG</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-MONOSPACE:CAPS" title="GTK_STYLE_CLASS_MONOSPACE">GTK_STYLE_CLASS_MONOSPACE</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-NEEDS-ATTENTION:CAPS" title="GTK_STYLE_CLASS_NEEDS_ATTENTION">GTK_STYLE_CLASS_NEEDS_ATTENTION</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-NOTEBOOK:CAPS" title="GTK_STYLE_CLASS_NOTEBOOK">GTK_STYLE_CLASS_NOTEBOOK</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-OSD:CAPS" title="GTK_STYLE_CLASS_OSD">GTK_STYLE_CLASS_OSD</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-OVERSHOOT:CAPS" title="GTK_STYLE_CLASS_OVERSHOOT">GTK_STYLE_CLASS_OVERSHOOT</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-PANE-SEPARATOR:CAPS" title="GTK_STYLE_CLASS_PANE_SEPARATOR">GTK_STYLE_CLASS_PANE_SEPARATOR</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-PAPER:CAPS" title="GTK_STYLE_CLASS_PAPER">GTK_STYLE_CLASS_PAPER</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-POPUP:CAPS" title="GTK_STYLE_CLASS_POPUP">GTK_STYLE_CLASS_POPUP</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-POPOVER:CAPS" title="GTK_STYLE_CLASS_POPOVER">GTK_STYLE_CLASS_POPOVER</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-PRIMARY-TOOLBAR:CAPS" title="GTK_STYLE_CLASS_PRIMARY_TOOLBAR">GTK_STYLE_CLASS_PRIMARY_TOOLBAR</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-PROGRESSBAR:CAPS" title="GTK_STYLE_CLASS_PROGRESSBAR">GTK_STYLE_CLASS_PROGRESSBAR</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-PULSE:CAPS" title="GTK_STYLE_CLASS_PULSE">GTK_STYLE_CLASS_PULSE</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-QUESTION:CAPS" title="GTK_STYLE_CLASS_QUESTION">GTK_STYLE_CLASS_QUESTION</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-RADIO:CAPS" title="GTK_STYLE_CLASS_RADIO">GTK_STYLE_CLASS_RADIO</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-RAISED:CAPS" title="GTK_STYLE_CLASS_RAISED">GTK_STYLE_CLASS_RAISED</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-READ-ONLY:CAPS" title="GTK_STYLE_CLASS_READ_ONLY">GTK_STYLE_CLASS_READ_ONLY</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-RIGHT:CAPS" title="GTK_STYLE_CLASS_RIGHT">GTK_STYLE_CLASS_RIGHT</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-RUBBERBAND:CAPS" title="GTK_STYLE_CLASS_RUBBERBAND">GTK_STYLE_CLASS_RUBBERBAND</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-SCALE:CAPS" title="GTK_STYLE_CLASS_SCALE">GTK_STYLE_CLASS_SCALE</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><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></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><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></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-SCROLLBAR:CAPS" title="GTK_STYLE_CLASS_SCROLLBAR">GTK_STYLE_CLASS_SCROLLBAR</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-SCROLLBARS-JUNCTION:CAPS" title="GTK_STYLE_CLASS_SCROLLBARS_JUNCTION">GTK_STYLE_CLASS_SCROLLBARS_JUNCTION</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-SEPARATOR:CAPS" title="GTK_STYLE_CLASS_SEPARATOR">GTK_STYLE_CLASS_SEPARATOR</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-SIDEBAR:CAPS" title="GTK_STYLE_CLASS_SIDEBAR">GTK_STYLE_CLASS_SIDEBAR</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-SLIDER:CAPS" title="GTK_STYLE_CLASS_SLIDER">GTK_STYLE_CLASS_SLIDER</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-SPINBUTTON:CAPS" title="GTK_STYLE_CLASS_SPINBUTTON">GTK_STYLE_CLASS_SPINBUTTON</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-SPINNER:CAPS" title="GTK_STYLE_CLASS_SPINNER">GTK_STYLE_CLASS_SPINNER</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-STATUSBAR:CAPS" title="GTK_STYLE_CLASS_STATUSBAR">GTK_STYLE_CLASS_STATUSBAR</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-SUBTITLE:CAPS" title="GTK_STYLE_CLASS_SUBTITLE">GTK_STYLE_CLASS_SUBTITLE</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-SUGGESTED-ACTION:CAPS" title="GTK_STYLE_CLASS_SUGGESTED_ACTION">GTK_STYLE_CLASS_SUGGESTED_ACTION</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-TITLE:CAPS" title="GTK_STYLE_CLASS_TITLE">GTK_STYLE_CLASS_TITLE</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-TITLEBAR:CAPS" title="GTK_STYLE_CLASS_TITLEBAR">GTK_STYLE_CLASS_TITLEBAR</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-TOOLBAR:CAPS" title="GTK_STYLE_CLASS_TOOLBAR">GTK_STYLE_CLASS_TOOLBAR</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-TOOLTIP:CAPS" title="GTK_STYLE_CLASS_TOOLTIP">GTK_STYLE_CLASS_TOOLTIP</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-TOUCH-SELECTION:CAPS" title="GTK_STYLE_CLASS_TOUCH_SELECTION">GTK_STYLE_CLASS_TOUCH_SELECTION</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-TOP:CAPS" title="GTK_STYLE_CLASS_TOP">GTK_STYLE_CLASS_TOP</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-TROUGH:CAPS" title="GTK_STYLE_CLASS_TROUGH">GTK_STYLE_CLASS_TROUGH</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-UNDERSHOOT:CAPS" title="GTK_STYLE_CLASS_UNDERSHOOT">GTK_STYLE_CLASS_UNDERSHOOT</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-VERTICAL:CAPS" title="GTK_STYLE_CLASS_VERTICAL">GTK_STYLE_CLASS_VERTICAL</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-VIEW:CAPS" title="GTK_STYLE_CLASS_VIEW">GTK_STYLE_CLASS_VIEW</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-WARNING:CAPS" title="GTK_STYLE_CLASS_WARNING">GTK_STYLE_CLASS_WARNING</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-CLASS-WIDE:CAPS" title="GTK_STYLE_CLASS_WIDE">GTK_STYLE_CLASS_WIDE</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-REGION-COLUMN:CAPS" title="GTK_STYLE_REGION_COLUMN">GTK_STYLE_REGION_COLUMN</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-REGION-COLUMN-HEADER:CAPS" title="GTK_STYLE_REGION_COLUMN_HEADER">GTK_STYLE_REGION_COLUMN_HEADER</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-REGION-ROW:CAPS" title="GTK_STYLE_REGION_ROW">GTK_STYLE_REGION_ROW</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GTK-STYLE-REGION-TAB:CAPS" title="GTK_STYLE_REGION_TAB">GTK_STYLE_REGION_TAB</a></td>
</tr>
<tr>
<td class="datatype_keyword"> </td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GtkStyleContext-struct" title="GtkStyleContext">GtkStyleContext</a></td>
</tr>
<tr>
<td class="datatype_keyword">enum</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GtkJunctionSides" title="enum GtkJunctionSides">GtkJunctionSides</a></td>
</tr>
<tr>
<td class="datatype_keyword">enum</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GtkRegionFlags" title="enum GtkRegionFlags">GtkRegionFlags</a></td>
</tr>
<tr>
<td class="datatype_keyword">enum</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GtkStyleContextPrintFlags" title="enum GtkStyleContextPrintFlags">GtkStyleContextPrintFlags</a></td>
</tr>
<tr>
<td class="datatype_keyword">struct</td>
<td class="function_name"><a class="link" href="GtkStyleContext.html#GtkBorder-struct" title="struct GtkBorder">GtkBorder</a></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="GtkStyleContext.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="screen"> <a href="/usr/share/gtk-doc/html/gobject/gobject-Boxed-Types.html">GBoxed</a>
<span class="lineart">╰──</span> GtkBorder
GObject
<span class="lineart">╰──</span> GtkStyleContext
</pre>
</div>
<div class="refsect1">
<a name="GtkStyleContext.includes"></a><h2>Includes</h2>
<pre class="synopsis">#include &lt;gtk/gtk.h&gt;
</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#GtkStyleProvider-struct"><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
<span class="type">GdkScreen</span> and RTL/LTR information set. The style context will also be
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 possibly <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>. See
the “Foreign drawing“ example in gtk3-demo.</p>
<div class="refsect2">
<a name="gtkstylecontext-classes"></a><h3>Style Classes</h3>
<p>Widgets can add style classes to their context, which can be used to associate
different styles by class. The documentation for individual widgets lists
which style classes it uses itself, and which style classes may be added by
applications to affect their appearance.</p>
<p>GTK+ defines macros for a number of style classes.</p>
</div>
<hr>
<div class="refsect2">
<a name="id-1.5.4.10.7"></a><h3>Style Regions</h3>
<p>Widgets can also add regions with flags to their context. This feature is
deprecated and will be removed in a future GTK+ update. Please use style
classes instead.</p>
<p>GTK+ defines macros for a number of style regions.</p>
</div>
<hr>
<div class="refsect2">
<a name="id-1.5.4.10.8"></a><h3>Custom styling in UI libraries and applications</h3>
<p>If you are developing a library with custom <a href="GtkWidget.html#GtkWidget-struct"><span class="type">GtkWidgets</span></a> 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 themes 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 themes, 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="literal">XDG_CONFIG_HOME/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>
</div>
</div>
<div class="refsect1">
<a name="GtkStyleContext.functions_details"></a><h2>Functions</h2>
<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
wont 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>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 href="GtkWidget.html#GtkWidget-struct"><span class="type">GtkWidgets</span></a>, 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.</p>
<div class="refsect3">
<a name="gtk-style-context-new.returns"></a><h4>Returns</h4>
<p> A newly created <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a>.</p>
</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><span class="type">guint</span> 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>Note: 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 class="refsect3">
<a name="gtk-style-context-add-provider.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>provider</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleProvider.html" title="GtkStyleProvider"><span class="type">GtkStyleProvider</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>priority</p></td>
<td class="parameter_description"><p>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></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-3-0.html#api-index-3.0">3.0</a></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><span class="type">GdkScreen</span> *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><span class="type">guint</span> 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#GtkStyleContext-struct"><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>Note: 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 class="refsect3">
<a name="gtk-style-context-add-provider-for-screen.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>screen</p></td>
<td class="parameter_description"><p>a <span class="type">GdkScreen</span></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>provider</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleProvider.html" title="GtkStyleProvider"><span class="type">GtkStyleProvider</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>priority</p></td>
<td class="parameter_description"><p>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></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-3-0.html#api-index-3.0">3.0</a></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>
<p>See <a class="link" href="GtkStyleContext.html#gtk-style-context-get-property" title="gtk_style_context_get_property ()"><code class="function">gtk_style_context_get_property()</code></a> for details.</p>
<p>For the property name / return value pairs, it works similarly as
<code class="function">g_object_get()</code>. Example:</p>
<div class="informalexample">
<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</pre></td>
<td class="listing_code"><pre class="programlisting"><span class="n">GdkRGBA</span><span class="w"> </span><span class="o">*</span><span class="n">background_color</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"></span>
<span class="n">PangoFontDescription</span><span class="w"> </span><span class="o">*</span><span class="n">font_desc</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"></span>
<span class="n">gint</span><span class="w"> </span><span class="n">border_radius</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"></span>
<span class="n">gtk_style_context_get</span><span class="w"> </span><span class="p">(</span><span class="n">style_context</span><span class="p">,</span><span class="w"></span>
<span class="w"> </span><span class="n">gtk_style_context_get_state</span><span class="w"> </span><span class="p">(</span><span class="n">style_context</span><span class="p">),</span><span class="w"></span>
<span class="w"> </span><span class="n">GTK_STYLE_PROPERTY_BACKGROUND_COLOR</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">background_color</span><span class="p">,</span><span class="w"></span>
<span class="w"> </span><span class="n">GTK_STYLE_PROPERTY_FONT</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">font_desc</span><span class="p">,</span><span class="w"></span>
<span class="w"> </span><span class="n">GTK_STYLE_PROPERTY_BORDER_RADIUS</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">border_radius</span><span class="p">,</span><span class="w"></span>
<span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><span class="w"></span>
<span class="c1">// Do something with the property values.</span>
<span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">background_color</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"></span>
<span class="w"> </span><span class="n">gdk_rgba_free</span><span class="w"> </span><span class="p">(</span><span class="n">background_color</span><span class="p">);</span><span class="w"></span>
<span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">font_desc</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"></span>
<span class="w"> </span><span class="n">pango_font_description_free</span><span class="w"> </span><span class="p">(</span><span class="n">font_desc</span><span class="p">);</span><span class="w"></span></pre></td>
</tr>
</tbody>
</table>
</div>
<p></p>
<div class="refsect3">
<a name="gtk-style-context-get.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>state</p></td>
<td class="parameter_description"><p>state to retrieve the property values for</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>...</p></td>
<td class="parameter_description"><p>property name / return value pairs, followed by <code class="literal">NULL</code></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-3-0.html#api-index-3.0">3.0</a></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>
<div class="warning">
<p><code class="literal">gtk_style_context_get_direction</code> has been deprecated since version 3.8 and should not be used in newly-written code.</p>
<p>Use <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> and
check for <a class="link" href="gtk3-Standard-Enumerations.html#GTK-STATE-FLAG-DIR-LTR:CAPS"><span class="type">GTK_STATE_FLAG_DIR_LTR</span></a> and
<a class="link" href="gtk3-Standard-Enumerations.html#GTK-STATE-FLAG-DIR-RTL:CAPS"><span class="type">GTK_STATE_FLAG_DIR_RTL</span></a> instead.</p>
</div>
<p>Returns the widget direction used for rendering.</p>
<div class="refsect3">
<a name="gtk-style-context-get-direction.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gtk-style-context-get-direction.returns"></a><h4>Returns</h4>
<p> the widget direction</p>
</div>
<p class="since">Since: <a class="link" href="api-index-3-0.html#api-index-3.0">3.0</a></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="GtkStyleContext.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="refsect3">
<a name="gtk-style-context-get-junction-sides.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gtk-style-context-get-junction-sides.returns"></a><h4>Returns</h4>
<p> the junction sides</p>
</div>
<p class="since">Since: <a class="link" href="api-index-3-0.html#api-index-3.0">3.0</a></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="refsect3">
<a name="gtk-style-context-get-parent.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gtk-style-context-get-parent.returns"></a><h4>Returns</h4>
<p>the parent context or <code class="literal">NULL</code>. </p>
<p><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>][<acronym title="The data is owned by the callee, which is responsible of freeing it."><span class="acronym">transfer none</span></acronym>]</span></p>
</div>
<p class="since">Since: <a class="link" href="api-index-3-4.html#api-index-3.4">3.4</a></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="refsect3">
<a name="gtk-style-context-get-path.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gtk-style-context-get-path.returns"></a><h4>Returns</h4>
<p>A <a class="link" href="gtk3-GtkWidgetPath.html#GtkWidgetPath" title="GtkWidgetPath"><span class="type">GtkWidgetPath</span></a>. </p>
<p><span class="annotation">[<acronym title="The data is owned by the callee, which is responsible of freeing it."><span class="acronym">transfer none</span></acronym>]</span></p>
</div>
<p class="since">Since: <a class="link" href="api-index-3-0.html#api-index-3.0">3.0</a></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 <span class="type">gchar</span> *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><span class="type">GValue</span> *value</code></em>);</pre>
<p>Gets a style property from <em class="parameter"><code>context</code></em>
for the given state.</p>
<p>Note that not all CSS properties that are supported by GTK+ can be
retrieved in this way, since they may not be representable as <span class="type">GValue</span>.
GTK+ defines macros for a number of properties that can be used
with this function.</p>
<p>Note that passing a state other than the current state of <em class="parameter"><code>context</code></em>
is not recommended unless the style context has been saved with
<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>
<p>When <em class="parameter"><code>value</code></em>
is no longer needed, <code class="function">g_value_unset()</code> must be called
to free any allocated memory.</p>
<div class="refsect3">
<a name="gtk-style-context-get-property.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>property</p></td>
<td class="parameter_description"><p>style property name</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>state</p></td>
<td class="parameter_description"><p>state to retrieve the property value for</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>value</p></td>
<td class="parameter_description"><p>return location for the style property value. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="The caller owns the data, and is responsible for free it."><span class="acronym">transfer full</span></acronym>]</span></td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-3-0.html#api-index-3.0">3.0</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-style-context-get-screen"></a><h3>gtk_style_context_get_screen ()</h3>
<pre class="programlisting"><span class="returnvalue">GdkScreen</span> *
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 <span class="type">GdkScreen</span> to which <em class="parameter"><code>context</code></em>
is attached.</p>
<div class="refsect3">
<a name="gtk-style-context-get-screen.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gtk-style-context-get-screen.returns"></a><h4>Returns</h4>
<p>a <span class="type">GdkScreen</span>. </p>
<p><span class="annotation">[<acronym title="The data is owned by the callee, which is responsible of freeing it."><span class="acronym">transfer none</span></acronym>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-style-context-get-frame-clock"></a><h3>gtk_style_context_get_frame_clock ()</h3>
<pre class="programlisting"><span class="returnvalue">GdkFrameClock</span> *
gtk_style_context_get_frame_clock (<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 <span class="type">GdkFrameClock</span> to which <em class="parameter"><code>context</code></em>
is attached.</p>
<div class="refsect3">
<a name="gtk-style-context-get-frame-clock.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gtk-style-context-get-frame-clock.returns"></a><h4>Returns</h4>
<p>a <span class="type">GdkFrameClock</span>, or <code class="literal">NULL</code>
if <em class="parameter"><code>context</code></em>
does not have an attached frame clock. </p>
<p><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>][<acronym title="The data is owned by the callee, which is responsible of freeing it."><span class="acronym">transfer none</span></acronym>]</span></p>
</div>
<p class="since">Since: <a class="link" href="api-index-3-8.html#api-index-3.8">3.8</a></p>
</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 for style matching.</p>
<p>This method should only be used to retrieve the <a class="link" href="gtk3-Standard-Enumerations.html#GtkStateFlags" title="enum GtkStateFlags"><span class="type">GtkStateFlags</span></a>
to pass to <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> methods, like <a class="link" href="GtkStyleContext.html#gtk-style-context-get-padding" title="gtk_style_context_get_padding ()"><code class="function">gtk_style_context_get_padding()</code></a>.
If you need to retrieve the current state of a <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>, use
<a class="link" href="GtkWidget.html#gtk-widget-get-state-flags" title="gtk_widget_get_state_flags ()"><code class="function">gtk_widget_get_state_flags()</code></a>.</p>
<div class="refsect3">
<a name="gtk-style-context-get-state.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gtk-style-context-get-state.returns"></a><h4>Returns</h4>
<p> the state flags</p>
</div>
<p class="since">Since: <a class="link" href="api-index-3-0.html#api-index-3.0">3.0</a></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="refsect3">
<a name="gtk-style-context-get-style.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>...</p></td>
<td class="parameter_description"><p>property name /return value pairs, followed by <code class="literal">NULL</code></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-3-0.html#api-index-3.0">3.0</a></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 <span class="type">gchar</span> *property_name</code></em>,
<em class="parameter"><code><span class="type">GValue</span> *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, <code class="function">g_value_unset()</code> must be called
to free any allocated memory.</p>
<div class="refsect3">
<a name="gtk-style-context-get-style-property.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>property_name</p></td>
<td class="parameter_description"><p>the name of the widget style property</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>value</p></td>
<td class="parameter_description"><p>Return location for the property value</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</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="refsect3">
<a name="gtk-style-context-get-style-valist.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>args</p></td>
<td class="parameter_description"><p>va_list of property name/return location pairs, followed by <code class="literal">NULL</code></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-3-0.html#api-index-3.0">3.0</a></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>
<p>See <a class="link" href="GtkStyleContext.html#gtk-style-context-get-property" title="gtk_style_context_get_property ()"><code class="function">gtk_style_context_get_property()</code></a> for details.</p>
<div class="refsect3">
<a name="gtk-style-context-get-valist.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>state</p></td>
<td class="parameter_description"><p>state to retrieve the property values for</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>args</p></td>
<td class="parameter_description"><p>va_list of property name/return location pairs, followed by <code class="literal">NULL</code></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-3-0.html#api-index-3.0">3.0</a></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 <span class="type">gchar</span> *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, <code class="literal">NULL</code> 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 <code class="literal">NULL</code>.</p>
<div class="refsect3">
<a name="gtk-style-context-get-section.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>property</p></td>
<td class="parameter_description"><p>style property name</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gtk-style-context-get-section.returns"></a><h4>Returns</h4>
<p><code class="literal">NULL</code> or the section where a value
for <em class="parameter"><code>property</code></em>
was defined. </p>
<p><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>][<acronym title="The data is owned by the callee, which is responsible of freeing it."><span class="acronym">transfer none</span></acronym>]</span></p>
</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><span class="type">GdkRGBA</span> *color</code></em>);</pre>
<p>Gets the foreground color for a given state.</p>
<p>See <a class="link" href="GtkStyleContext.html#gtk-style-context-get-property" title="gtk_style_context_get_property ()"><code class="function">gtk_style_context_get_property()</code></a> and
<a class="link" href="GtkStyleContext.html#GTK-STYLE-PROPERTY-COLOR:CAPS" title="GTK_STYLE_PROPERTY_COLOR"><span class="type">GTK_STYLE_PROPERTY_COLOR</span></a> for details.</p>
<div class="refsect3">
<a name="gtk-style-context-get-color.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>state</p></td>
<td class="parameter_description"><p>state to retrieve the color for</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>color</p></td>
<td class="parameter_description"><p>return value for the foreground color. </p></td>
<td class="parameter_annotations"><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>
</div>
<p class="since">Since: <a class="link" href="api-index-3-0.html#api-index-3.0">3.0</a></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><span class="type">GdkRGBA</span> *color</code></em>);</pre>
<div class="warning">
<p><code class="literal">gtk_style_context_get_background_color</code> has been deprecated since version 3.16 and should not be used in newly-written code.</p>
<p>Use <a class="link" href="GtkStyleContext.html#gtk-render-background" title="gtk_render_background ()"><code class="function">gtk_render_background()</code></a> instead.</p>
</div>
<p>Gets the background color for a given state.</p>
<p>This function is far less useful than it seems, and it should not be used in
newly written code. CSS has no concept of "background color", as a background
can be an image, or a gradient, or any other pattern including solid colors.</p>
<p>The only reason why you would call <a class="link" href="GtkStyleContext.html#gtk-style-context-get-background-color" title="gtk_style_context_get_background_color ()"><code class="function">gtk_style_context_get_background_color()</code></a> is
to use the returned value to draw the background with it; the correct way to
achieve this result is to use <a class="link" href="GtkStyleContext.html#gtk-render-background" title="gtk_render_background ()"><code class="function">gtk_render_background()</code></a> instead, along with CSS
style classes to modify the color to be rendered.</p>
<div class="refsect3">
<a name="gtk-style-context-get-background-color.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>state</p></td>
<td class="parameter_description"><p>state to retrieve the color for</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>color</p></td>
<td class="parameter_description"><p>return value for the background color. </p></td>
<td class="parameter_annotations"><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>
</div>
<p class="since">Since: <a class="link" href="api-index-3-0.html#api-index-3.0">3.0</a></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><span class="type">GdkRGBA</span> *color</code></em>);</pre>
<div class="warning">
<p><code class="literal">gtk_style_context_get_border_color</code> has been deprecated since version 3.16 and should not be used in newly-written code.</p>
<p>Use <a class="link" href="GtkStyleContext.html#gtk-render-frame" title="gtk_render_frame ()"><code class="function">gtk_render_frame()</code></a> instead.</p>
</div>
<p>Gets the border color for a given state.</p>
<div class="refsect3">
<a name="gtk-style-context-get-border-color.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>state</p></td>
<td class="parameter_description"><p>state to retrieve the color for</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>color</p></td>
<td class="parameter_description"><p>return value for the border color. </p></td>
<td class="parameter_annotations"><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>
</div>
<p class="since">Since: <a class="link" href="api-index-3-0.html#api-index-3.0">3.0</a></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>.</p>
<p>See <a class="link" href="GtkStyleContext.html#gtk-style-context-get-property" title="gtk_style_context_get_property ()"><code class="function">gtk_style_context_get_property()</code></a> and
<a class="link" href="GtkStyleContext.html#GTK-STYLE-PROPERTY-BORDER-WIDTH:CAPS" title="GTK_STYLE_PROPERTY_BORDER_WIDTH"><span class="type">GTK_STYLE_PROPERTY_BORDER_WIDTH</span></a> for details.</p>
<div class="refsect3">
<a name="gtk-style-context-get-border.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>state</p></td>
<td class="parameter_description"><p>state to retrieve the border for</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>border</p></td>
<td class="parameter_description"><p>return value for the border settings. </p></td>
<td class="parameter_annotations"><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>
</div>
<p class="since">Since: <a class="link" href="api-index-3-0.html#api-index-3.0">3.0</a></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-context-get" title="gtk_style_context_get ()"><code class="function">gtk_style_context_get()</code></a> and <a class="link" href="GtkStyleContext.html#GTK-STYLE-PROPERTY-PADDING:CAPS" title="GTK_STYLE_PROPERTY_PADDING"><span class="type">GTK_STYLE_PROPERTY_PADDING</span></a>
for details.</p>
<div class="refsect3">
<a name="gtk-style-context-get-padding.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>state</p></td>
<td class="parameter_description"><p>state to retrieve the padding for</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>padding</p></td>
<td class="parameter_description"><p>return value for the padding settings. </p></td>
<td class="parameter_annotations"><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>
</div>
<p class="since">Since: <a class="link" href="api-index-3-0.html#api-index-3.0">3.0</a></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 <code class="function">gtk_style_property_get()</code> and <a class="link" href="GtkStyleContext.html#GTK-STYLE-PROPERTY-MARGIN:CAPS" title="GTK_STYLE_PROPERTY_MARGIN"><span class="type">GTK_STYLE_PROPERTY_MARGIN</span></a>
for details.</p>
<div class="refsect3">
<a name="gtk-style-context-get-margin.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>state</p></td>
<td class="parameter_description"><p>state to retrieve the border for</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>margin</p></td>
<td class="parameter_description"><p>return value for the margin settings. </p></td>
<td class="parameter_annotations"><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>
</div>
<p class="since">Since: <a class="link" href="api-index-3-0.html#api-index-3.0">3.0</a></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 <span class="returnvalue">PangoFontDescription</span> *
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>
<div class="warning">
<p><code class="literal">gtk_style_context_get_font</code> has been deprecated since version 3.8 and should not be used in newly-written code.</p>
<p>Use <a class="link" href="GtkStyleContext.html#gtk-style-context-get" title="gtk_style_context_get ()"><code class="function">gtk_style_context_get()</code></a> for "font" or
subproperties instead.</p>
</div>
<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="refsect3">
<a name="gtk-style-context-get-font.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>state</p></td>
<td class="parameter_description"><p>state to retrieve the font for</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gtk-style-context-get-font.returns"></a><h4>Returns</h4>
<p>the <span class="type">PangoFontDescription</span> for the given
state. This object is owned by GTK+ and should not be
freed. </p>
<p><span class="annotation">[<acronym title="The data is owned by the callee, which is responsible of freeing it."><span class="acronym">transfer none</span></acronym>]</span></p>
</div>
<p class="since">Since: <a class="link" href="api-index-3-0.html#api-index-3.0">3.0</a></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>
<div class="warning">
<p><code class="literal">gtk_style_context_invalidate</code> has been deprecated since version 3.12 and should not be used in newly-written code.</p>
<p>Style contexts are invalidated automatically.</p>
</div>
<p>Invalidates <em class="parameter"><code>context</code></em>
style information, so it will be reconstructed
again. It is useful if you modify the <em class="parameter"><code>context</code></em>
and need the new
information immediately.</p>
<div class="refsect3">
<a name="gtk-style-context-invalidate.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-3-0.html#api-index-3.0">3.0</a></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"><span class="returnvalue">gboolean</span>
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="GtkWidget.html#GtkStateType" title="enum GtkStateType"><span class="type">GtkStateType</span></a> state</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> *progress</code></em>);</pre>
<div class="warning">
<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.</p>
<p>This function always returns <code class="literal">FALSE</code></p>
</div>
<p>Returns <code class="literal">TRUE</code> 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 <code class="literal">NULL</code>, the animation progress will be returned
there, 0.0 means the state is closest to being unset, while 1.0 means
its 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
its being unset.</p>
<div class="refsect3">
<a name="gtk-style-context-state-is-running.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>state</p></td>
<td class="parameter_description"><p>a widget state</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>progress</p></td>
<td class="parameter_description"><p>return location for the transition progress. </p></td>
<td class="parameter_annotations"><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>
</div>
<div class="refsect3">
<a name="gtk-style-context-state-is-running.returns"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code> if there is a running transition animation for <em class="parameter"><code>state</code></em>
.</p>
</div>
<p class="since">Since: <a class="link" href="api-index-3-0.html#api-index-3.0">3.0</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-style-context-lookup-color"></a><h3>gtk_style_context_lookup_color ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
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 <span class="type">gchar</span> *color_name</code></em>,
<em class="parameter"><code><span class="type">GdkRGBA</span> *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="refsect3">
<a name="gtk-style-context-lookup-color.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>color_name</p></td>
<td class="parameter_description"><p>color name to lookup</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>color</p></td>
<td class="parameter_description"><p>Return location for the looked up color. </p></td>
<td class="parameter_annotations"><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>
</div>
<div class="refsect3">
<a name="gtk-style-context-lookup-color.returns"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code> if <em class="parameter"><code>color_name</code></em>
was found and resolved, <code class="literal">FALSE</code> otherwise</p>
</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 <span class="type">gchar</span> *stock_id</code></em>);</pre>
<div class="warning">
<p><code class="literal">gtk_style_context_lookup_icon_set</code> has been deprecated since version 3.10 and should not be used in newly-written code.</p>
<p>Use <a class="link" href="GtkIconTheme.html#gtk-icon-theme-lookup-icon" title="gtk_icon_theme_lookup_icon ()"><code class="function">gtk_icon_theme_lookup_icon()</code></a> instead.</p>
</div>
<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
<code class="literal">NULL</code>.</p>
<div class="refsect3">
<a name="gtk-style-context-lookup-icon-set.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>stock_id</p></td>
<td class="parameter_description"><p>an icon name</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gtk-style-context-lookup-icon-set.returns"></a><h4>Returns</h4>
<p>The looked up <a class="link" href="gtk3-Themeable-Stock-Images.html#GtkIconSet"><code class="literal">GtkIconSet</code></a>, or <code class="literal">NULL</code>. </p>
<p><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>][<acronym title="The data is owned by the callee, which is responsible of freeing it."><span class="acronym">transfer none</span></acronym>]</span></p>
</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><span class="type">GdkWindow</span> *window</code></em>,
<em class="parameter"><code><span class="type">gpointer</span> region_id</code></em>,
<em class="parameter"><code><a class="link" href="GtkWidget.html#GtkStateType" title="enum GtkStateType"><span class="type">GtkStateType</span></a> state</code></em>,
<em class="parameter"><code><span class="type">gboolean</span> state_value</code></em>);</pre>
<div class="warning">
<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.</p>
<p>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 <code class="literal">NULL</code>, 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>
<div class="informalexample">
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td class="listing_lines" align="right"><pre>1
2
3
4
5</pre></td>
<td class="listing_code"><pre class="programlisting"><span class="n">gtk_style_context_notify_state_change</span><span class="w"> </span><span class="p">(</span><span class="n">context</span><span class="p">,</span><span class="w"></span>
<span class="w"> </span><span class="n">gtk_widget_get_window</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">),</span><span class="w"></span>
<span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"></span>
<span class="w"> </span><span class="n">GTK_STATE_PRELIGHT</span><span class="p">,</span><span class="w"></span>
<span class="w"> </span><span class="n">button</span><span class="o">-&gt;</span><span class="n">in_button</span><span class="p">);</span><span class="w"></span></pre></td>
</tr>
</tbody>
</table>
</div>
<p></p>
<p>Can be handled in the CSS file like this:</p>
<div class="informalexample">
<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</pre></td>
<td class="listing_code"><pre class="programlisting"><span class="n">button</span><span class="w"> </span><span class="p">{</span><span class="w"></span>
<span class="w"> </span><span class="n">background</span><span class="o">-</span><span class="n">color</span><span class="o">:</span><span class="w"> </span><span class="err">#</span><span class="n">f00</span><span class="w"></span>
<span class="p">}</span><span class="w"></span>
<span class="nl">button</span><span class="p">:</span><span class="n">hover</span><span class="w"> </span><span class="p">{</span><span class="w"></span>
<span class="w"> </span><span class="n">background</span><span class="o">-</span><span class="n">color</span><span class="o">:</span><span class="w"> </span><span class="err">#</span><span class="n">fff</span><span class="p">;</span><span class="w"></span>
<span class="w"> </span><span class="nl">transition</span><span class="p">:</span><span class="w"> </span><span class="mi">200</span><span class="n">ms</span><span class="w"> </span><span class="n">linear</span><span class="w"></span>
<span class="p">}</span><span class="w"></span></pre></td>
</tr>
</tbody>
</table>
</div>
<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="refsect3">
<a name="gtk-style-context-notify-state-change.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>window</p></td>
<td class="parameter_description"><p>a <span class="type">GdkWindow</span></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>region_id</p></td>
<td class="parameter_description"><p>animatable region to notify on, or <code class="literal">NULL</code>.
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></td>
<td class="parameter_annotations"><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 class="parameter_name"><p>state</p></td>
<td class="parameter_description"><p>state to trigger transition for</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>state_value</p></td>
<td class="parameter_description"><p><code class="literal">TRUE</code> if <em class="parameter"><code>state</code></em>
is the state we are changing to,
<code class="literal">FALSE</code> if we are changing away from it</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-3-0.html#api-index-3.0">3.0</a></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">
<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.</p>
<p>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="refsect3">
<a name="gtk-style-context-pop-animatable-region.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-3-0.html#api-index-3.0">3.0</a></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><span class="type">gpointer</span> region_id</code></em>);</pre>
<div class="warning">
<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.</p>
<p>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 themes
can uniquely identify rendered elements subject to a state transition.</p>
<div class="refsect3">
<a name="gtk-style-context-push-animatable-region.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>region_id</p></td>
<td class="parameter_description"><p>unique identifier for the animatable region</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-3-0.html#api-index-3.0">3.0</a></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><span class="type">gpointer</span> region_id</code></em>);</pre>
<div class="warning">
<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.</p>
<p>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 <code class="literal">NULL</code> <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="refsect3">
<a name="gtk-style-context-cancel-animations.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>region_id</p></td>
<td class="parameter_description"><p>animatable region to stop, or <code class="literal">NULL</code>.
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></td>
<td class="parameter_annotations"><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>
</div>
<p class="since">Since: <a class="link" href="api-index-3-0.html#api-index-3.0">3.0</a></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><span class="type">GdkWindow</span> *window</code></em>,
<em class="parameter"><code><span class="type">gint</span> dx</code></em>,
<em class="parameter"><code><span class="type">gint</span> dy</code></em>);</pre>
<div class="warning">
<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.</p>
<p>This function does nothing.</p>
</div>
<p>This function is analogous to <code class="function">gdk_window_scroll()</code>, and
should be called together with it so the invalidation
areas for any ongoing animation are scrolled together
with it.</p>
<div class="refsect3">
<a name="gtk-style-context-scroll-animations.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>window</p></td>
<td class="parameter_description"><p>a <span class="type">GdkWindow</span> 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></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>dx</p></td>
<td class="parameter_description"><p>Amount to scroll in the X axis</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>dy</p></td>
<td class="parameter_description"><p>Amount to scroll in the Y axis</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-3-0.html#api-index-3.0">3.0</a></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="refsect3">
<a name="gtk-style-context-remove-provider.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>provider</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleProvider.html" title="GtkStyleProvider"><span class="type">GtkStyleProvider</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-3-0.html#api-index-3.0">3.0</a></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><span class="type">GdkScreen</span> *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="refsect3">
<a name="gtk-style-context-remove-provider-for-screen.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>screen</p></td>
<td class="parameter_description"><p>a <span class="type">GdkScreen</span></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>provider</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleProvider.html" title="GtkStyleProvider"><span class="type">GtkStyleProvider</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-3-0.html#api-index-3.0">3.0</a></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><span class="type">GdkScreen</span> *screen</code></em>);</pre>
<p>This function recomputes the styles for all widgets under a particular
<span class="type">GdkScreen</span>. 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="refsect3">
<a name="gtk-style-context-reset-widgets.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>screen</p></td>
<td class="parameter_description"><p>a <span class="type">GdkScreen</span></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-3-0.html#api-index-3.0">3.0</a></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><span class="type">GdkWindow</span> *window</code></em>);</pre>
<div class="warning">
<p><code class="literal">gtk_style_context_set_background</code> has been deprecated since version 3.18 and should not be used in newly-written code.</p>
<p>Use <a class="link" href="GtkStyleContext.html#gtk-render-background" title="gtk_render_background ()"><code class="function">gtk_render_background()</code></a> instead.
Note that clients still using this function are now responsible
for calling this function again whenever <em class="parameter"><code>context</code></em>
is invalidated.</p>
</div>
<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="refsect3">
<a name="gtk-style-context-set-background.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>window</p></td>
<td class="parameter_description"><p>a <span class="type">GdkWindow</span></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-3-0.html#api-index-3.0">3.0</a></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="refsect3">
<a name="gtk-style-context-restore.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-3-0.html#api-index-3.0">3.0</a></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 temporary 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-set-state" title="gtk_style_context_set_state ()"><code class="function">gtk_style_context_set_state()</code></a>, etc. can quickly 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>
<p>The matching call to <a class="link" href="GtkStyleContext.html#gtk-style-context-restore" title="gtk_style_context_restore ()"><code class="function">gtk_style_context_restore()</code></a> must be done
before GTK returns to the main loop.</p>
<div class="refsect3">
<a name="gtk-style-context-save.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-3-0.html#api-index-3.0">3.0</a></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>
<div class="warning">
<p><code class="literal">gtk_style_context_set_direction</code> has been deprecated since version 3.8 and should not be used in newly-written code.</p>
<p>Use <a class="link" href="GtkStyleContext.html#gtk-style-context-set-state" title="gtk_style_context_set_state ()"><code class="function">gtk_style_context_set_state()</code></a> with
<a class="link" href="gtk3-Standard-Enumerations.html#GTK-STATE-FLAG-DIR-LTR:CAPS"><span class="type">GTK_STATE_FLAG_DIR_LTR</span></a> and <a class="link" href="gtk3-Standard-Enumerations.html#GTK-STATE-FLAG-DIR-RTL:CAPS"><span class="type">GTK_STATE_FLAG_DIR_RTL</span></a>
instead.</p>
</div>
<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="refsect3">
<a name="gtk-style-context-set-direction.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>direction</p></td>
<td class="parameter_description"><p>the new direction.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-3-0.html#api-index-3.0">3.0</a></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="GtkStyleContext.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 themes.</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="refsect3">
<a name="gtk-style-context-set-junction-sides.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>sides</p></td>
<td class="parameter_description"><p>sides where rendered elements are visually connected to
other elements</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-3-0.html#api-index-3.0">3.0</a></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="refsect3">
<a name="gtk-style-context-set-parent.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>parent</p></td>
<td class="parameter_description"><p>the new parent or <code class="literal">NULL</code>. </p></td>
<td class="parameter_annotations"><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>
</div>
<p class="since">Since: <a class="link" href="api-index-3-4.html#api-index-3.4">3.4</a></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="refsect3">
<a name="gtk-style-context-set-path.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>path</p></td>
<td class="parameter_description"><p>a <a class="link" href="gtk3-GtkWidgetPath.html#GtkWidgetPath" title="GtkWidgetPath"><span class="type">GtkWidgetPath</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-3-0.html#api-index-3.0">3.0</a></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 <span class="type">gchar</span> *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 a “search”
class, would be matched by:</p>
<div class="informalexample">
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td class="listing_lines" align="right"><pre>1</pre></td>
<td class="listing_code"><pre class="programlisting"><span class="n">entry</span><span class="p">.</span><span class="n">search</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="p">...</span><span class="w"> </span><span class="p">}</span><span class="w"></span></pre></td>
</tr>
</tbody>
</table>
</div>
<p></p>
<p>While any widget defining a “search” class would be
matched by:</p>
<div class="informalexample">
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td class="listing_lines" align="right"><pre>1</pre></td>
<td class="listing_code"><pre class="programlisting"><span class="p">.</span><span class="n">search</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="p">...</span><span class="w"> </span><span class="p">}</span><span class="w"></span></pre></td>
</tr>
</tbody>
</table>
</div>
<p></p>
<div class="refsect3">
<a name="gtk-style-context-add-class.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>class_name</p></td>
<td class="parameter_description"><p>class name to use in styling</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-3-0.html#api-index-3.0">3.0</a></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 <span class="type">gchar</span> *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="refsect3">
<a name="gtk-style-context-remove-class.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>class_name</p></td>
<td class="parameter_description"><p>class name to remove</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-3-0.html#api-index-3.0">3.0</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-style-context-has-class"></a><h3>gtk_style_context_has_class ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
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 <span class="type">gchar</span> *class_name</code></em>);</pre>
<p>Returns <code class="literal">TRUE</code> if <em class="parameter"><code>context</code></em>
currently has defined the
given class name.</p>
<div class="refsect3">
<a name="gtk-style-context-has-class.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>class_name</p></td>
<td class="parameter_description"><p>a class name</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gtk-style-context-has-class.returns"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code> if <em class="parameter"><code>context</code></em>
has <em class="parameter"><code>class_name</code></em>
defined</p>
</div>
<p class="since">Since: <a class="link" href="api-index-3-0.html#api-index-3.0">3.0</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-style-context-list-classes"></a><h3>gtk_style_context_list_classes ()</h3>
<pre class="programlisting"><span class="returnvalue">GList</span> *
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="refsect3">
<a name="gtk-style-context-list-classes.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gtk-style-context-list-classes.returns"></a><h4>Returns</h4>
<p>a <span class="type">GList</span> of
strings with the currently defined classes. The contents
of the list are owned by GTK+, but you must free the list
itself with <code class="function">g_list_free()</code> when you are done with it. </p>
<p><span class="annotation">[<acronym title="The caller owns the data container, but not the data inside it."><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></p>
</div>
<p class="since">Since: <a class="link" href="api-index-3-0.html#api-index-3.0">3.0</a></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 <span class="type">gchar</span> *region_name</code></em>,
<em class="parameter"><code><a class="link" href="GtkStyleContext.html#GtkRegionFlags" title="enum GtkRegionFlags"><span class="type">GtkRegionFlags</span></a> flags</code></em>);</pre>
<div class="warning"><p><code class="literal">gtk_style_context_add_region</code> has been deprecated since version 3.14 and should not be used in newly-written code.</p></div>
<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>
<div class="informalexample">
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td class="listing_lines" align="right"><pre>1</pre></td>
<td class="listing_code"><pre class="programlisting"><span class="n">treeview</span><span class="w"> </span><span class="n">row</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="p">...</span><span class="w"> </span><span class="p">}</span><span class="w"></span></pre></td>
</tr>
</tbody>
</table>
</div>
<p></p>
<p>Pseudo-classes are used for matching <em class="parameter"><code>flags</code></em>
, so the two
following rules:</p>
<div class="informalexample">
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td class="listing_lines" align="right"><pre>1
2</pre></td>
<td class="listing_code"><pre class="programlisting"><span class="n">treeview</span><span class="w"> </span><span class="n">row</span><span class="o">:</span><span class="n">nth</span><span class="o">-</span><span class="n">child</span><span class="p">(</span><span class="n">even</span><span class="p">)</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="p">...</span><span class="w"> </span><span class="p">}</span><span class="w"></span>
<span class="n">treeview</span><span class="w"> </span><span class="n">row</span><span class="o">:</span><span class="n">nth</span><span class="o">-</span><span class="n">child</span><span class="p">(</span><span class="n">odd</span><span class="p">)</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="p">...</span><span class="w"> </span><span class="p">}</span><span class="w"></span></pre></td>
</tr>
</tbody>
</table>
</div>
<p></p>
<p>would apply to even and odd rows, respectively.</p>
<p>Region names must only contain lowercase letters
and “-”, starting always with a lowercase letter.</p>
<div class="refsect3">
<a name="gtk-style-context-add-region.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>region_name</p></td>
<td class="parameter_description"><p>region name to use in styling</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>flags</p></td>
<td class="parameter_description"><p>flags that apply to the region</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-3-0.html#api-index-3.0">3.0</a></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 <span class="type">gchar</span> *region_name</code></em>);</pre>
<div class="warning"><p><code class="literal">gtk_style_context_remove_region</code> has been deprecated since version 3.14 and should not be used in newly-written code.</p></div>
<p>Removes a region from <em class="parameter"><code>context</code></em>
.</p>
<div class="refsect3">
<a name="gtk-style-context-remove-region.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>region_name</p></td>
<td class="parameter_description"><p>region name to unset</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-3-0.html#api-index-3.0">3.0</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-style-context-has-region"></a><h3>gtk_style_context_has_region ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
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 <span class="type">gchar</span> *region_name</code></em>,
<em class="parameter"><code><a class="link" href="GtkStyleContext.html#GtkRegionFlags" title="enum GtkRegionFlags"><span class="type">GtkRegionFlags</span></a> *flags_return</code></em>);</pre>
<div class="warning"><p><code class="literal">gtk_style_context_has_region</code> has been deprecated since version 3.14 and should not be used in newly-written code.</p></div>
<p>Returns <code class="literal">TRUE</code> if <em class="parameter"><code>context</code></em>
has the region defined.
If <em class="parameter"><code>flags_return</code></em>
is not <code class="literal">NULL</code>, it is set to the flags
affecting the region.</p>
<div class="refsect3">
<a name="gtk-style-context-has-region.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>region_name</p></td>
<td class="parameter_description"><p>a region name</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>flags_return</p></td>
<td class="parameter_description"><p>return location for region flags. </p></td>
<td class="parameter_annotations"><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>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gtk-style-context-has-region.returns"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code> if region is defined</p>
</div>
<p class="since">Since: <a class="link" href="api-index-3-0.html#api-index-3.0">3.0</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-style-context-list-regions"></a><h3>gtk_style_context_list_regions ()</h3>
<pre class="programlisting"><span class="returnvalue">GList</span> *
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>
<div class="warning"><p><code class="literal">gtk_style_context_list_regions</code> has been deprecated since version 3.14 and should not be used in newly-written code.</p></div>
<p>Returns the list of regions currently defined in <em class="parameter"><code>context</code></em>
.</p>
<div class="refsect3">
<a name="gtk-style-context-list-regions.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gtk-style-context-list-regions.returns"></a><h4>Returns</h4>
<p>a <span class="type">GList</span> of
strings with the currently defined regions. The contents
of the list are owned by GTK+, but you must free the list
itself with <code class="function">g_list_free()</code> when you are done with it. </p>
<p><span class="annotation">[<acronym title="The caller owns the data container, but not the data inside it."><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></p>
</div>
<p class="since">Since: <a class="link" href="api-index-3-0.html#api-index-3.0">3.0</a></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><span class="type">GdkScreen</span> *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="refsect3">
<a name="gtk-style-context-set-screen.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>screen</p></td>
<td class="parameter_description"><p>a <span class="type">GdkScreen</span></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-3-0.html#api-index-3.0">3.0</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-style-context-set-frame-clock"></a><h3>gtk_style_context_set_frame_clock ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gtk_style_context_set_frame_clock (<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">GdkFrameClock</span> *frame_clock</code></em>);</pre>
<p>Attaches <em class="parameter"><code>context</code></em>
to the given frame clock.</p>
<p>The frame clock is used for the timing of animations.</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="refsect3">
<a name="gtk-style-context-set-frame-clock.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <span class="type">GdkFrameClock</span></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>frame_clock</p></td>
<td class="parameter_description"><p>a <span class="type">GdkFrameClock</span></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-3-8.html#api-index-3.8">3.8</a></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 for style matching.</p>
<div class="refsect3">
<a name="gtk-style-context-set-state.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>flags</p></td>
<td class="parameter_description"><p>state to represent</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-3-0.html#api-index-3.0">3.0</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-style-context-set-scale"></a><h3>gtk_style_context_set_scale ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gtk_style_context_set_scale (<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">gint</span> scale</code></em>);</pre>
<p>Sets the scale to use when getting image assets for the style.</p>
<div class="refsect3">
<a name="gtk-style-context-set-scale.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>scale</p></td>
<td class="parameter_description"><p>scale</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-3-10.html#api-index-3.10">3.10</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-style-context-get-scale"></a><h3>gtk_style_context_get_scale ()</h3>
<pre class="programlisting"><span class="returnvalue">gint</span>
gtk_style_context_get_scale (<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 scale used for assets.</p>
<div class="refsect3">
<a name="gtk-style-context-get-scale.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gtk-style-context-get-scale.returns"></a><h4>Returns</h4>
<p> the scale</p>
</div>
<p class="since">Since: <a class="link" href="api-index-3-10.html#api-index-3.10">3.10</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-style-context-to-string"></a><h3>gtk_style_context_to_string ()</h3>
<pre class="programlisting"><span class="returnvalue">char</span> *
gtk_style_context_to_string (<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#GtkStyleContextPrintFlags" title="enum GtkStyleContextPrintFlags"><span class="type">GtkStyleContextPrintFlags</span></a> flags</code></em>);</pre>
<p>Converts the style context into a string representation.</p>
<p>The string representation always includes information about
the name, state, id, visibility and style classes of the CSS
node that is backing <em class="parameter"><code>context</code></em>
. Depending on the flags, more
information may be included.</p>
<p>This function is intended for testing and debugging of the
CSS implementation in GTK+. There are no guarantees about
the format of the returned string, it may change.</p>
<div class="refsect3">
<a name="gtk-style-context-to-string.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>flags</p></td>
<td class="parameter_description"><p>Flags that determine what to print</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gtk-style-context-to-string.returns"></a><h4>Returns</h4>
<p> a newly allocated string representing <em class="parameter"><code>context</code></em>
</p>
</div>
<p class="since">Since: <a class="link" href="api-index-3-20.html#api-index-3.20">3.20</a></p>
</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-struct" title="struct GtkBorder"><span class="type">GtkBorder</span></a> and initializes its elements to zero.</p>
<div class="refsect3">
<a name="gtk-border-new.returns"></a><h4>Returns</h4>
<p>a newly allocated <a class="link" href="GtkStyleContext.html#GtkBorder-struct" title="struct 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>. </p>
<p><span class="annotation">[<acronym title="The caller owns the data, and is responsible for free it."><span class="acronym">transfer full</span></acronym>]</span></p>
</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-struct" title="struct GtkBorder"><span class="type">GtkBorder</span></a>.</p>
<div class="refsect3">
<a name="gtk-border-copy.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>border_</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html#GtkBorder-struct" title="struct GtkBorder"><span class="type">GtkBorder</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gtk-border-copy.returns"></a><h4>Returns</h4>
<p>a copy of <em class="parameter"><code>border_</code></em>
. </p>
<p><span class="annotation">[<acronym title="The caller owns the data, and is responsible for free it."><span class="acronym">transfer full</span></acronym>]</span></p>
</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-struct" title="struct GtkBorder"><span class="type">GtkBorder</span></a>.</p>
<div class="refsect3">
<a name="gtk-border-free.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>border_</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html#GtkBorder-struct" title="struct GtkBorder"><span class="type">GtkBorder</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</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><span class="type">gdouble</span> angle</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> x</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> y</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> size</code></em>);</pre>
<p>Renders an arrow pointing to <em class="parameter"><code>angle</code></em>
.</p>
<p>Typical arrow rendering at 0, 12 π;, π; and 32 π:</p>
<p><span class="inlinemediaobject"><img src="arrows.png"></span></p>
<div class="refsect3">
<a name="gtk-render-arrow.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>cr</p></td>
<td class="parameter_description"><p>a <a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>angle</p></td>
<td class="parameter_description"><p>arrow angle from 0 to 2 * <code class="literal">G_PI</code>, being 0 the arrow pointing to the north</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>x</p></td>
<td class="parameter_description"><p>X origin of the render area</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>y</p></td>
<td class="parameter_description"><p>Y origin of the render area</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>size</p></td>
<td class="parameter_description"><p>square side for render area</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-3-0.html#api-index-3.0">3.0</a></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><span class="type">gdouble</span> x</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> y</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> width</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> height</code></em>);</pre>
<p>Renders the background of an element.</p>
<p>Typical background rendering, showing the effect of
<code class="literal">background-image</code>, <code class="literal">border-width</code> and <code class="literal">border-radius</code>:</p>
<p><span class="inlinemediaobject"><img src="background.png"></span></p>
<div class="refsect3">
<a name="gtk-render-background.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>cr</p></td>
<td class="parameter_description"><p>a <a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>x</p></td>
<td class="parameter_description"><p>X origin of the rectangle</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>y</p></td>
<td class="parameter_description"><p>Y origin of the rectangle</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>width</p></td>
<td class="parameter_description"><p>rectangle width</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>height</p></td>
<td class="parameter_description"><p>rectangle height</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: 3.0.</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-render-background-get-clip"></a><h3>gtk_render_background_get_clip ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gtk_render_background_get_clip (<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">gdouble</span> x</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> y</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> width</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> height</code></em>,
<em class="parameter"><code><span class="type">GdkRectangle</span> *out_clip</code></em>);</pre>
<p>Returns the area that will be affected (i.e. drawn to) when
calling <a class="link" href="GtkStyleContext.html#gtk-render-background" title="gtk_render_background ()"><code class="function">gtk_render_background()</code></a> for the given <em class="parameter"><code>context</code></em>
and
rectangle.</p>
<div class="refsect3">
<a name="gtk-render-background-get-clip.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>x</p></td>
<td class="parameter_description"><p>X origin of the rectangle</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>y</p></td>
<td class="parameter_description"><p>Y origin of the rectangle</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>width</p></td>
<td class="parameter_description"><p>rectangle width</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>height</p></td>
<td class="parameter_description"><p>rectangle height</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>out_clip</p></td>
<td class="parameter_description"><p>return location for the clip. </p></td>
<td class="parameter_annotations"><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>
</div>
<p class="since">Since: <a class="link" href="api-index-3-20.html#api-index-3.20">3.20</a></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><span class="type">gdouble</span> x</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> y</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> width</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> 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-CHECKED:CAPS"><code class="literal">GTK_STATE_FLAG_CHECKED</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>Typical checkmark rendering:</p>
<p><span class="inlinemediaobject"><img src="checks.png"></span></p>
<div class="refsect3">
<a name="gtk-render-check.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>cr</p></td>
<td class="parameter_description"><p>a <a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>x</p></td>
<td class="parameter_description"><p>X origin of the rectangle</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>y</p></td>
<td class="parameter_description"><p>Y origin of the rectangle</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>width</p></td>
<td class="parameter_description"><p>rectangle width</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>height</p></td>
<td class="parameter_description"><p>rectangle height</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-3-0.html#api-index-3.0">3.0</a></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><span class="type">gdouble</span> x</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> y</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> width</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> 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-CHECKED:CAPS"><code class="literal">GTK_STATE_FLAG_CHECKED</code></a>
determines whether the expander is collapsed or expanded.</p>
<p>Typical expander rendering:</p>
<p><span class="inlinemediaobject"><img src="expanders.png"></span></p>
<div class="refsect3">
<a name="gtk-render-expander.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>cr</p></td>
<td class="parameter_description"><p>a <a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>x</p></td>
<td class="parameter_description"><p>X origin of the rectangle</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>y</p></td>
<td class="parameter_description"><p>Y origin of the rectangle</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>width</p></td>
<td class="parameter_description"><p>rectangle width</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>height</p></td>
<td class="parameter_description"><p>rectangle height</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-3-0.html#api-index-3.0">3.0</a></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><span class="type">gdouble</span> x</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> y</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> width</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> 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>Typical extension rendering:</p>
<p><span class="inlinemediaobject"><img src="extensions.png"></span></p>
<div class="refsect3">
<a name="gtk-render-extension.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>cr</p></td>
<td class="parameter_description"><p>a <a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>x</p></td>
<td class="parameter_description"><p>X origin of the rectangle</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>y</p></td>
<td class="parameter_description"><p>Y origin of the rectangle</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>width</p></td>
<td class="parameter_description"><p>rectangle width</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>height</p></td>
<td class="parameter_description"><p>rectangle height</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>gap_side</p></td>
<td class="parameter_description"><p>side where the gap is</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-3-0.html#api-index-3.0">3.0</a></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><span class="type">gdouble</span> x</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> y</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> width</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> 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>
<p>Typical focus rendering:</p>
<p><span class="inlinemediaobject"><img src="focus.png"></span></p>
<div class="refsect3">
<a name="gtk-render-focus.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>cr</p></td>
<td class="parameter_description"><p>a <a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>x</p></td>
<td class="parameter_description"><p>X origin of the rectangle</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>y</p></td>
<td class="parameter_description"><p>Y origin of the rectangle</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>width</p></td>
<td class="parameter_description"><p>rectangle width</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>height</p></td>
<td class="parameter_description"><p>rectangle height</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-3-0.html#api-index-3.0">3.0</a></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><span class="type">gdouble</span> x</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> y</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> width</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> 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>Examples of frame rendering, showing the effect of <code class="literal">border-image</code>,
<code class="literal">border-color</code>, <code class="literal">border-width</code>, <code class="literal">border-radius</code> and junctions:</p>
<p><span class="inlinemediaobject"><img src="frames.png"></span></p>
<div class="refsect3">
<a name="gtk-render-frame.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>cr</p></td>
<td class="parameter_description"><p>a <a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>x</p></td>
<td class="parameter_description"><p>X origin of the rectangle</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>y</p></td>
<td class="parameter_description"><p>Y origin of the rectangle</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>width</p></td>
<td class="parameter_description"><p>rectangle width</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>height</p></td>
<td class="parameter_description"><p>rectangle height</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-3-0.html#api-index-3.0">3.0</a></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><span class="type">gdouble</span> x</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> y</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> width</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> 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><span class="type">gdouble</span> xy0_gap</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> xy1_gap</code></em>);</pre>
<div class="warning">
<p><code class="literal">gtk_render_frame_gap</code> has been deprecated since version 3.24 and should not be used in newly-written code.</p>
<p>Use <a class="link" href="GtkStyleContext.html#gtk-render-frame" title="gtk_render_frame ()"><code class="function">gtk_render_frame()</code></a> instead. Themes can create gaps
by omitting borders via CSS.</p>
</div>
<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>Typical rendering of a frame with a gap:</p>
<p><span class="inlinemediaobject"><img src="frame-gap.png"></span></p>
<div class="refsect3">
<a name="gtk-render-frame-gap.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>cr</p></td>
<td class="parameter_description"><p>a <a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>x</p></td>
<td class="parameter_description"><p>X origin of the rectangle</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>y</p></td>
<td class="parameter_description"><p>Y origin of the rectangle</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>width</p></td>
<td class="parameter_description"><p>rectangle width</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>height</p></td>
<td class="parameter_description"><p>rectangle height</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>gap_side</p></td>
<td class="parameter_description"><p>side where the gap is</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>xy0_gap</p></td>
<td class="parameter_description"><p>initial coordinate (X or Y depending on <em class="parameter"><code>gap_side</code></em>
) for the gap</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>xy1_gap</p></td>
<td class="parameter_description"><p>end coordinate (X or Y depending on <em class="parameter"><code>gap_side</code></em>
) for the gap</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-3-0.html#api-index-3.0">3.0</a></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><span class="type">gdouble</span> x</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> y</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> width</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> 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>Handles rendered for the paned and grip classes:</p>
<p><span class="inlinemediaobject"><img src="handles.png"></span></p>
<div class="refsect3">
<a name="gtk-render-handle.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>cr</p></td>
<td class="parameter_description"><p>a <a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>x</p></td>
<td class="parameter_description"><p>X origin of the rectangle</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>y</p></td>
<td class="parameter_description"><p>Y origin of the rectangle</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>width</p></td>
<td class="parameter_description"><p>rectangle width</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>height</p></td>
<td class="parameter_description"><p>rectangle height</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-3-0.html#api-index-3.0">3.0</a></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><span class="type">gdouble</span> x</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> y</code></em>,
<em class="parameter"><code><span class="type">PangoLayout</span> *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="refsect3">
<a name="gtk-render-layout.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>cr</p></td>
<td class="parameter_description"><p>a <a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>x</p></td>
<td class="parameter_description"><p>X origin</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>y</p></td>
<td class="parameter_description"><p>Y origin</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>layout</p></td>
<td class="parameter_description"><p>the <span class="type">PangoLayout</span> to render</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-3-0.html#api-index-3.0">3.0</a></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><span class="type">gdouble</span> x0</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> y0</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> x1</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> y1</code></em>);</pre>
<p>Renders a line from (x0, y0) to (x1, y1).</p>
<div class="refsect3">
<a name="gtk-render-line.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>cr</p></td>
<td class="parameter_description"><p>a <a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>x0</p></td>
<td class="parameter_description"><p>X coordinate for the origin of the line</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>y0</p></td>
<td class="parameter_description"><p>Y coordinate for the origin of the line</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>x1</p></td>
<td class="parameter_description"><p>X coordinate for the end of the line</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>y1</p></td>
<td class="parameter_description"><p>Y coordinate for the end of the line</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-3-0.html#api-index-3.0">3.0</a></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><span class="type">gdouble</span> x</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> y</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> width</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> 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-CHECKED:CAPS"><code class="literal">GTK_STATE_FLAG_CHECKED</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>Typical option mark rendering:</p>
<p><span class="inlinemediaobject"><img src="options.png"></span></p>
<div class="refsect3">
<a name="gtk-render-option.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>cr</p></td>
<td class="parameter_description"><p>a <a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>x</p></td>
<td class="parameter_description"><p>X origin of the rectangle</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>y</p></td>
<td class="parameter_description"><p>Y origin of the rectangle</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>width</p></td>
<td class="parameter_description"><p>rectangle width</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>height</p></td>
<td class="parameter_description"><p>rectangle height</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-3-0.html#api-index-3.0">3.0</a></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><span class="type">gdouble</span> x</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> y</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> width</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> 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>Typical slider rendering:</p>
<p><span class="inlinemediaobject"><img src="sliders.png"></span></p>
<div class="refsect3">
<a name="gtk-render-slider.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>cr</p></td>
<td class="parameter_description"><p>a <a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>x</p></td>
<td class="parameter_description"><p>X origin of the rectangle</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>y</p></td>
<td class="parameter_description"><p>Y origin of the rectangle</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>width</p></td>
<td class="parameter_description"><p>rectangle width</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>height</p></td>
<td class="parameter_description"><p>rectangle height</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>orientation</p></td>
<td class="parameter_description"><p>orientation of the slider</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-3-0.html#api-index-3.0">3.0</a></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><span class="type">gdouble</span> x</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> y</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> width</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> height</code></em>);</pre>
<p>Renders an activity indicator (such as in <a class="link" href="GtkSpinner.html" title="GtkSpinner"><span class="type">GtkSpinner</span></a>).
The state <a class="link" href="gtk3-Standard-Enumerations.html#GTK-STATE-FLAG-CHECKED:CAPS"><code class="literal">GTK_STATE_FLAG_CHECKED</code></a> determines whether there is
activity going on.</p>
<div class="refsect3">
<a name="gtk-render-activity.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>cr</p></td>
<td class="parameter_description"><p>a <a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>x</p></td>
<td class="parameter_description"><p>X origin of the rectangle</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>y</p></td>
<td class="parameter_description"><p>Y origin of the rectangle</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>width</p></td>
<td class="parameter_description"><p>rectangle width</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>height</p></td>
<td class="parameter_description"><p>rectangle height</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-3-0.html#api-index-3.0">3.0</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-render-icon-pixbuf"></a><h3>gtk_render_icon_pixbuf ()</h3>
<pre class="programlisting"><span class="returnvalue">GdkPixbuf</span> *
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>
<div class="warning">
<p><code class="literal">gtk_render_icon_pixbuf</code> has been deprecated since version 3.10 and should not be used in newly-written code.</p>
<p>Use <a class="link" href="GtkIconTheme.html#gtk-icon-theme-load-icon" title="gtk_icon_theme_load_icon ()"><code class="function">gtk_icon_theme_load_icon()</code></a> instead.</p>
</div>
<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="refsect3">
<a name="gtk-render-icon-pixbuf.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>source</p></td>
<td class="parameter_description"><p>the <a class="link" href="gtk3-Themeable-Stock-Images.html#GtkIconSource" title="GtkIconSource"><span class="type">GtkIconSource</span></a> specifying the icon to render</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>size</p></td>
<td class="parameter_description"><p>the size (<a class="link" href="gtk3-Themeable-Stock-Images.html#GtkIconSize" title="enum GtkIconSize"><span class="type">GtkIconSize</span></a>) to render the icon at.
A size of <code class="literal">(GtkIconSize) -1</code> means render at the size of the source
and dont scale. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Override the parsed C type with given type."><span class="acronym">type</span></acronym> int]</span></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gtk-render-icon-pixbuf.returns"></a><h4>Returns</h4>
<p>a newly-created <span class="type">GdkPixbuf</span> containing the rendered icon. </p>
<p><span class="annotation">[<acronym title="The caller owns the data, and is responsible for free it."><span class="acronym">transfer full</span></acronym>]</span></p>
</div>
<p class="since">Since: <a class="link" href="api-index-3-0.html#api-index-3.0">3.0</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-render-icon-surface"></a><h3>gtk_render_icon_surface ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gtk_render_icon_surface (<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="/usr/share/gtk-doc/html/cairo/cairo-cairo-surface-t.html#cairo-surface-t"><span class="type">cairo_surface_t</span></a> *surface</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> x</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> y</code></em>);</pre>
<p>Renders the icon in <em class="parameter"><code>surface</code></em>
at the specified <em class="parameter"><code>x</code></em>
and <em class="parameter"><code>y</code></em>
coordinates.</p>
<div class="refsect3">
<a name="gtk-render-icon-surface.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>cr</p></td>
<td class="parameter_description"><p>a <a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>surface</p></td>
<td class="parameter_description"><p>a <a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-surface-t.html#cairo-surface-t"><span class="type">cairo_surface_t</span></a> containing the icon to draw</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>x</p></td>
<td class="parameter_description"><p>X position for the <em class="parameter"><code>icon</code></em>
</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>y</p></td>
<td class="parameter_description"><p>Y position for the <em class="parameter"><code>incon</code></em>
</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-3-10.html#api-index-3.10">3.10</a></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><span class="type">GdkPixbuf</span> *pixbuf</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> x</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> 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>
<p>This function will render the icon in <em class="parameter"><code>pixbuf</code></em>
at exactly its size,
regardless of scaling factors, which may not be appropriate when
drawing on displays with high pixel densities.</p>
<p>You probably want to use <a class="link" href="GtkStyleContext.html#gtk-render-icon-surface" title="gtk_render_icon_surface ()"><code class="function">gtk_render_icon_surface()</code></a> instead, if you
already have a Cairo surface.</p>
<div class="refsect3">
<a name="gtk-render-icon.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>cr</p></td>
<td class="parameter_description"><p>a <a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>pixbuf</p></td>
<td class="parameter_description"><p>a <span class="type">GdkPixbuf</span> containing the icon to draw</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>x</p></td>
<td class="parameter_description"><p>X position for the <em class="parameter"><code>pixbuf</code></em>
</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>y</p></td>
<td class="parameter_description"><p>Y position for the <em class="parameter"><code>pixbuf</code></em>
</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-3-2.html#api-index-3.2">3.2</a></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><span class="type">gdouble</span> x</code></em>,
<em class="parameter"><code><span class="type">gdouble</span> y</code></em>,
<em class="parameter"><code><span class="type">PangoLayout</span> *layout</code></em>,
<em class="parameter"><code><span class="type">int</span> index</code></em>,
<em class="parameter"><code><span class="type">PangoDirection</span> 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="refsect3">
<a name="gtk-render-insertion-cursor.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>context</p></td>
<td class="parameter_description"><p>a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>cr</p></td>
<td class="parameter_description"><p>a <a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>x</p></td>
<td class="parameter_description"><p>X origin</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>y</p></td>
<td class="parameter_description"><p>Y origin</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>layout</p></td>
<td class="parameter_description"><p>the <span class="type">PangoLayout</span> of the text</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>index</p></td>
<td class="parameter_description"><p>the index in the <span class="type">PangoLayout</span></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>direction</p></td>
<td class="parameter_description"><p>the <span class="type">PangoDirection</span> of the text</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-3-4.html#api-index-3.4">3.4</a></p>
</div>
</div>
<div class="refsect1">
<a name="GtkStyleContext.other_details"></a><h2>Types and Values</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 <span class="type">GdkRGBA</span>.</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 <span class="type">GdkRGBA</span>.</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 <span class="type">PangoFontDescription</span>.</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 elements 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
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 elements 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. Its 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 elements 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>gtk_render_frame() uses this property to find out the frame line width,
so <a href="GtkWidget.html#GtkWidget-struct"><span class="type">GtkWidgets</span></a> 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 elements border radius in pixels as a <span class="type">gint</span>.</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 elements border style as a <a class="link" href="GtkStyleContext.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 elements border color as a <span class="type">GdkRGBA</span>.</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 elements 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="GtkBorderStyle"></a><h3>enum GtkBorderStyle</h3>
<p>Describes how the border of a UI element should be rendered.</p>
<div class="refsect3">
<a name="GtkBorderStyle.members"></a><h4>Members</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="300px" class="enum_members_name">
<col class="enum_members_description">
<col width="200px" class="enum_members_annotations">
</colgroup>
<tbody>
<tr>
<td class="enum_member_name"><p><a name="GTK-BORDER-STYLE-NONE:CAPS"></a>GTK_BORDER_STYLE_NONE</p></td>
<td class="enum_member_description">
<p>No visible border</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GTK-BORDER-STYLE-SOLID:CAPS"></a>GTK_BORDER_STYLE_SOLID</p></td>
<td class="enum_member_description">
<p>A single line segment</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GTK-BORDER-STYLE-INSET:CAPS"></a>GTK_BORDER_STYLE_INSET</p></td>
<td class="enum_member_description">
<p>Looks as if the content is sunken into the canvas</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GTK-BORDER-STYLE-OUTSET:CAPS"></a>GTK_BORDER_STYLE_OUTSET</p></td>
<td class="enum_member_description">
<p>Looks as if the content is coming out of the canvas</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GTK-BORDER-STYLE-HIDDEN:CAPS"></a>GTK_BORDER_STYLE_HIDDEN</p></td>
<td class="enum_member_description">
<p>Same as <em class="parameter"><code>GTK_BORDER_STYLE_NONE</code></em>
</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GTK-BORDER-STYLE-DOTTED:CAPS"></a>GTK_BORDER_STYLE_DOTTED</p></td>
<td class="enum_member_description">
<p>A series of round dots</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GTK-BORDER-STYLE-DASHED:CAPS"></a>GTK_BORDER_STYLE_DASHED</p></td>
<td class="enum_member_description">
<p>A series of square-ended dashes</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GTK-BORDER-STYLE-DOUBLE:CAPS"></a>GTK_BORDER_STYLE_DOUBLE</p></td>
<td class="enum_member_description">
<p>Two parallel lines with some space between them</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GTK-BORDER-STYLE-GROOVE:CAPS"></a>GTK_BORDER_STYLE_GROOVE</p></td>
<td class="enum_member_description">
<p>Looks as if it were carved in the canvas</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GTK-BORDER-STYLE-RIDGE:CAPS"></a>GTK_BORDER_STYLE_RIDGE</p></td>
<td class="enum_member_description">
<p>Looks as if it were coming out of the canvas</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</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>Refer to individual widget documentation for used style classes.</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>Refer to individual widget documentation for used style classes.</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>
<p>Refer to individual widget documentation for used style classes.</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>Refer to individual widget documentation for used style classes.</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>Refer to individual widget documentation for used style classes.</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>Refer to individual widget documentation for used style classes.</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>Refer to individual widget documentation for used style classes.</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>Refer to individual widget documentation for used style classes.</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-CLASS-CONTEXT-MENU:CAPS"></a><h3>GTK_STYLE_CLASS_CONTEXT_MENU</h3>
<pre class="programlisting">#define GTK_STYLE_CLASS_CONTEXT_MENU "context-menu"
</pre>
<p>A CSS class to match context menus.</p>
<p>Refer to individual widget documentation for used style classes.</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>Refer to individual widget documentation for used style classes.</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-CLASS-CSD:CAPS"></a><h3>GTK_STYLE_CLASS_CSD</h3>
<pre class="programlisting">#define GTK_STYLE_CLASS_CSD "csd"
</pre>
<p>A CSS class that gets added to windows which have client-side decorations.</p>
<p>Refer to individual widget documentation for used style classes.</p>
<p class="since">Since: <a class="link" href="api-index-3-14.html#api-index-3.14">3.14</a></p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-CLASS-CURSOR-HANDLE:CAPS"></a><h3>GTK_STYLE_CLASS_CURSOR_HANDLE</h3>
<pre class="programlisting">#define GTK_STYLE_CLASS_CURSOR_HANDLE "cursor-handle"
</pre>
<p>A CSS class used when rendering a drag handle for
text selection.</p>
<p>Refer to individual widget documentation for used style classes.</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>Refer to individual widget documentation for used style classes.</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-CLASS-DESTRUCTIVE-ACTION:CAPS"></a><h3>GTK_STYLE_CLASS_DESTRUCTIVE_ACTION</h3>
<pre class="programlisting">#define GTK_STYLE_CLASS_DESTRUCTIVE_ACTION "destructive-action"
</pre>
<p>A CSS class used when an action (usually a button) is
one that is expected to remove or destroy something visible
to the user.</p>
<p>Refer to individual widget documentation for used style classes.</p>
<p class="since">Since: <a class="link" href="api-index-3-12.html#api-index-3.12">3.12</a></p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-CLASS-DIM-LABEL:CAPS"></a><h3>GTK_STYLE_CLASS_DIM_LABEL</h3>
<pre class="programlisting">#define GTK_STYLE_CLASS_DIM_LABEL "dim-label"
</pre>
<p>A CSS class to match dimmed labels.</p>
<p>Refer to individual widget documentation for used style classes.</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>Refer to individual widget documentation for used style classes.</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>Refer to individual widget documentation for used style classes.</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>Refer to individual widget documentation for used style classes.</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>Refer to individual widget documentation for used style classes.</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>Refer to individual widget documentation for used style classes.</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>Refer to individual widget documentation for used style classes.</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-CLASS-FLAT:CAPS"></a><h3>GTK_STYLE_CLASS_FLAT</h3>
<pre class="programlisting">#define GTK_STYLE_CLASS_FLAT "flat"
</pre>
<p>A CSS class that is added when widgets that usually have
a frame or border (like buttons or entries) should appear
without it.</p>
<p>Refer to individual widget documentation for used style classes.</p>
<p class="since">Since: <a class="link" href="api-index-3-14.html#api-index-3.14">3.14</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>Refer to individual widget documentation for used style classes.</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>Refer to individual widget documentation for used style classes.</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>Refer to individual widget documentation for used style classes.</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>Refer to individual widget documentation for used style classes.</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>Refer to individual widget documentation for used style classes.</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>Refer to individual widget documentation for used style classes.</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>Refer to individual widget documentation for used style classes.</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-CLASS-INSERTION-CURSOR:CAPS"></a><h3>GTK_STYLE_CLASS_INSERTION_CURSOR</h3>
<pre class="programlisting">#define GTK_STYLE_CLASS_INSERTION_CURSOR "insertion-cursor"
</pre>
<p>A CSS class used when rendering a drag handle for
the insertion cursor position.</p>
<p>Refer to individual widget documentation for used style classes.</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-CLASS-LABEL:CAPS"></a><h3>GTK_STYLE_CLASS_LABEL</h3>
<pre class="programlisting">#define GTK_STYLE_CLASS_LABEL "label"
</pre>
<p>A CSS class to match labels.</p>
<p>Refer to individual widget documentation for used style classes.</p>
<p class="since">Since: <a class="link" href="api-index-3-16.html#api-index-3.16">3.16</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>Refer to individual widget documentation for used style classes.</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-CLASS-LEVEL-BAR:CAPS"></a><h3>GTK_STYLE_CLASS_LEVEL_BAR</h3>
<pre class="programlisting">#define GTK_STYLE_CLASS_LEVEL_BAR "level-bar"
</pre>
<p>A CSS class used when rendering a level indicator, such
as a battery charge level, or a password strength.</p>
<p>Refer to individual widget documentation for used style classes.</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>
<p>Refer to individual widget documentation for used style classes.</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-CLASS-LIST:CAPS"></a><h3>GTK_STYLE_CLASS_LIST</h3>
<pre class="programlisting">#define GTK_STYLE_CLASS_LIST "list"
</pre>
<p>A CSS class to match lists.</p>
<p>Refer to individual widget documentation for used style classes.</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-CLASS-LIST-ROW:CAPS"></a><h3>GTK_STYLE_CLASS_LIST_ROW</h3>
<pre class="programlisting">#define GTK_STYLE_CLASS_LIST_ROW "list-row"
</pre>
<p>A CSS class to match list rows.</p>
<p>Refer to individual widget documentation for used style classes.</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>Refer to individual widget documentation for used style classes.</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 menus.</p>
<p>Refer to individual widget documentation for used style classes.</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>Refer to individual widget documentation for used style classes.</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>Refer to individual widget documentation for used style classes.</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-CLASS-MESSAGE-DIALOG:CAPS"></a><h3>GTK_STYLE_CLASS_MESSAGE_DIALOG</h3>
<pre class="programlisting">#define GTK_STYLE_CLASS_MESSAGE_DIALOG "message-dialog"
</pre>
<p>A CSS class that is added to message dialogs.</p>
<p>Refer to individual widget documentation for used style classes.</p>
<p class="since">Since: <a class="link" href="api-index-3-14.html#api-index-3.14">3.14</a></p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-CLASS-MONOSPACE:CAPS"></a><h3>GTK_STYLE_CLASS_MONOSPACE</h3>
<pre class="programlisting">#define GTK_STYLE_CLASS_MONOSPACE "monospace"
</pre>
<p>A CSS class that is added to text view that should use
a monospace font.</p>
<p>Refer to individual widget documentation for used style classes.</p>
<p class="since">Since: <a class="link" href="api-index-3-16.html#api-index-3.16">3.16</a></p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-CLASS-NEEDS-ATTENTION:CAPS"></a><h3>GTK_STYLE_CLASS_NEEDS_ATTENTION</h3>
<pre class="programlisting">#define GTK_STYLE_CLASS_NEEDS_ATTENTION "needs-attention"
</pre>
<p>A CSS class used when an element needs the user attention,
for instance a button in a stack switcher corresponding to
a hidden page that changed state.</p>
<p>Refer to individual widget documentation for used style classes.</p>
<p class="since">Since: <a class="link" href="api-index-3-12.html#api-index-3.12">3.12</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>Refer to individual widget documentation for used style classes.</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>
<p>Refer to individual widget documentation for used style classes.</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-CLASS-OVERSHOOT:CAPS"></a><h3>GTK_STYLE_CLASS_OVERSHOOT</h3>
<pre class="programlisting">#define GTK_STYLE_CLASS_OVERSHOOT "overshoot"
</pre>
<p>A CSS class that is added on the visual hints that happen
when scrolling is attempted past the limits of a scrollable
area.</p>
<p>Refer to individual widget documentation for used style classes.</p>
<p class="since">Since: <a class="link" href="api-index-3-14.html#api-index-3.14">3.14</a></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>Refer to individual widget documentation for used style classes.</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-CLASS-PAPER:CAPS"></a><h3>GTK_STYLE_CLASS_PAPER</h3>
<pre class="programlisting">#define GTK_STYLE_CLASS_PAPER "paper"
</pre>
<p>A CSS class that is added to areas that should look like paper.</p>
<p>This is used in print previews and themes are encouraged to
style it as black text on white background.</p>
<p>Refer to individual widget documentation for used style classes.</p>
<p class="since">Since: <a class="link" href="api-index-3-16.html#api-index-3.16">3.16</a></p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-CLASS-POPUP:CAPS"></a><h3>GTK_STYLE_CLASS_POPUP</h3>
<pre class="programlisting">#define GTK_STYLE_CLASS_POPUP "popup"
</pre>
<p>A CSS class that is added to the toplevel windows used for menus.</p>
<p>Refer to individual widget documentation for used style classes.</p>
<p class="since">Since: <a class="link" href="api-index-3-14.html#api-index-3.14">3.14</a></p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-CLASS-POPOVER:CAPS"></a><h3>GTK_STYLE_CLASS_POPOVER</h3>
<pre class="programlisting">#define GTK_STYLE_CLASS_POPOVER "popover"
</pre>
<p>A CSS class that matches popovers.</p>
<p>Refer to individual widget documentation for used style classes.</p>
<p class="since">Since: <a class="link" href="api-index-3-14.html#api-index-3.14">3.14</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>Refer to individual widget documentation for used style classes.</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>Refer to individual widget documentation for used style classes.</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-CLASS-PULSE:CAPS"></a><h3>GTK_STYLE_CLASS_PULSE</h3>
<pre class="programlisting">#define GTK_STYLE_CLASS_PULSE "pulse"
</pre>
<p>A CSS class to use when rendering a pulse in an indeterminate progress bar.</p>
<p>Refer to individual widget documentation for used style classes.</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>Refer to individual widget documentation for used style classes.</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>Refer to individual widget documentation for used style classes.</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-CLASS-RAISED:CAPS"></a><h3>GTK_STYLE_CLASS_RAISED</h3>
<pre class="programlisting">#define GTK_STYLE_CLASS_RAISED "raised"
</pre>
<p>A CSS class to match a raised control, such as a raised
button on a toolbar.</p>
<p>Refer to individual widget documentation for used style classes.</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-CLASS-READ-ONLY:CAPS"></a><h3>GTK_STYLE_CLASS_READ_ONLY</h3>
<pre class="programlisting">#define GTK_STYLE_CLASS_READ_ONLY "read-only"
</pre>
<p>A CSS class used to indicate a read-only state.</p>
<p>Refer to individual widget documentation for used style classes.</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>Refer to individual widget documentation for used style classes.</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>Refer to individual widget documentation for used style classes.</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>Refer to individual widget documentation for used style classes.</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>
<p>Refer to individual widget documentation for used style classes.</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>
<p>Refer to individual widget documentation for used style classes.</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>
<p>Refer to individual widget documentation for used style classes.</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 theyre both shown.</p>
<p>Refer to individual widget documentation for used style classes.</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>Refer to individual widget documentation for used style classes.</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>Refer to individual widget documentation for used style classes.</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>Refer to individual widget documentation for used style classes.</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>Refer to individual widget documentation for used style classes.</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>Refer to individual widget documentation for used style classes.</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-CLASS-STATUSBAR:CAPS"></a><h3>GTK_STYLE_CLASS_STATUSBAR</h3>
<pre class="programlisting">#define GTK_STYLE_CLASS_STATUSBAR "statusbar"
</pre>
<p>A CSS class to match statusbars.</p>
<p>Refer to individual widget documentation for used style classes.</p>
<p class="since">Since: <a class="link" href="api-index-3-16.html#api-index-3.16">3.16</a></p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-CLASS-SUBTITLE:CAPS"></a><h3>GTK_STYLE_CLASS_SUBTITLE</h3>
<pre class="programlisting">#define GTK_STYLE_CLASS_SUBTITLE "subtitle"
</pre>
<p>A CSS class used for the subtitle label in a titlebar in
a toplevel window.</p>
<p>Refer to individual widget documentation for used style classes.</p>
<p class="since">Since: <a class="link" href="api-index-3-14.html#api-index-3.14">3.14</a></p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-CLASS-SUGGESTED-ACTION:CAPS"></a><h3>GTK_STYLE_CLASS_SUGGESTED_ACTION</h3>
<pre class="programlisting">#define GTK_STYLE_CLASS_SUGGESTED_ACTION "suggested-action"
</pre>
<p>A CSS class used when an action (usually a button) is the
primary suggested action in a specific context.</p>
<p>Refer to individual widget documentation for used style classes.</p>
<p class="since">Since: <a class="link" href="api-index-3-12.html#api-index-3.12">3.12</a></p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-CLASS-TITLE:CAPS"></a><h3>GTK_STYLE_CLASS_TITLE</h3>
<pre class="programlisting">#define GTK_STYLE_CLASS_TITLE "title"
</pre>
<p>A CSS class used for the title label in a titlebar in
a toplevel window.</p>
<p>Refer to individual widget documentation for used style classes.</p>
<p class="since">Since: <a class="link" href="api-index-3-14.html#api-index-3.14">3.14</a></p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-CLASS-TITLEBAR:CAPS"></a><h3>GTK_STYLE_CLASS_TITLEBAR</h3>
<pre class="programlisting">#define GTK_STYLE_CLASS_TITLEBAR "titlebar"
</pre>
<p>A CSS class used when rendering a titlebar in a toplevel window.</p>
<p>Refer to individual widget documentation for used style classes.</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>Refer to individual widget documentation for used style classes.</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>
<p>Refer to individual widget documentation for used style classes.</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-CLASS-TOUCH-SELECTION:CAPS"></a><h3>GTK_STYLE_CLASS_TOUCH_SELECTION</h3>
<pre class="programlisting">#define GTK_STYLE_CLASS_TOUCH_SELECTION "touch-selection"
</pre>
<p>A CSS class for touch selection popups on entries
and text views.</p>
<p>Refer to individual widget documentation for used style classes.</p>
<p class="since">Since: <a class="link" href="api-index-3-16.html#api-index-3.16">3.16</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>Refer to individual widget documentation for used style classes.</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>Refer to individual widget documentation for used style classes.</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-CLASS-UNDERSHOOT:CAPS"></a><h3>GTK_STYLE_CLASS_UNDERSHOOT</h3>
<pre class="programlisting">#define GTK_STYLE_CLASS_UNDERSHOOT "undershoot"
</pre>
<p>A CSS class that is added on the visual hints that happen
where content is 'scrolled off' and can be made visible
by scrolling.</p>
<p>Refer to individual widget documentation for used style classes.</p>
<p class="since">Since: <a class="link" href="api-index-3-16.html#api-index-3.16">3.16</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>Refer to individual widget documentation for used style classes.</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>Refer to individual widget documentation for used style classes.</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>Refer to individual widget documentation for used style classes.</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-CLASS-WIDE:CAPS"></a><h3>GTK_STYLE_CLASS_WIDE</h3>
<pre class="programlisting">#define GTK_STYLE_CLASS_WIDE "wide"
</pre>
<p>A CSS class to indicate that a UI element should be 'wide'.
Used by <a class="link" href="GtkPaned.html" title="GtkPaned"><span class="type">GtkPaned</span></a>.</p>
<p>Refer to individual widget documentation for used style classes.</p>
<p class="since">Since: <a class="link" href="api-index-3-16.html#api-index-3.16">3.16</a></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>
<div class="warning">
<p><code class="literal">GTK_STYLE_REGION_COLUMN</code> has been deprecated since version 3.20 and should not be used in newly-written code.</p>
<p>Don't use regions.</p>
</div>
<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>
<div class="warning">
<p><code class="literal">GTK_STYLE_REGION_COLUMN_HEADER</code> has been deprecated since version 3.20 and should not be used in newly-written code.</p>
<p>Don't use regions.</p>
</div>
<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>
<div class="warning">
<p><code class="literal">GTK_STYLE_REGION_ROW</code> has been deprecated since version 3.20 and should not be used in newly-written code.</p>
<p>Don't use regions.</p>
</div>
<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>
<div class="warning">
<p><code class="literal">GTK_STYLE_REGION_TAB</code> has been deprecated since version 3.20 and should not be used in newly-written code.</p>
<p>Don't use regions.</p>
</div>
<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="GtkJunctionSides"></a><h3>enum GtkJunctionSides</h3>
<p>Describes how a rendered element connects to adjacent elements.</p>
<div class="refsect3">
<a name="GtkJunctionSides.members"></a><h4>Members</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="300px" class="enum_members_name">
<col class="enum_members_description">
<col width="200px" class="enum_members_annotations">
</colgroup>
<tbody>
<tr>
<td class="enum_member_name"><p><a name="GTK-JUNCTION-NONE:CAPS"></a>GTK_JUNCTION_NONE</p></td>
<td class="enum_member_description">
<p>No junctions.</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GTK-JUNCTION-CORNER-TOPLEFT:CAPS"></a>GTK_JUNCTION_CORNER_TOPLEFT</p></td>
<td class="enum_member_description">
<p>Element connects on the top-left corner.</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GTK-JUNCTION-CORNER-TOPRIGHT:CAPS"></a>GTK_JUNCTION_CORNER_TOPRIGHT</p></td>
<td class="enum_member_description">
<p>Element connects on the top-right corner.</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GTK-JUNCTION-CORNER-BOTTOMLEFT:CAPS"></a>GTK_JUNCTION_CORNER_BOTTOMLEFT</p></td>
<td class="enum_member_description">
<p>Element connects on the bottom-left corner.</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GTK-JUNCTION-CORNER-BOTTOMRIGHT:CAPS"></a>GTK_JUNCTION_CORNER_BOTTOMRIGHT</p></td>
<td class="enum_member_description">
<p>Element connects on the bottom-right corner.</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GTK-JUNCTION-TOP:CAPS"></a>GTK_JUNCTION_TOP</p></td>
<td class="enum_member_description">
<p>Element connects on the top side.</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GTK-JUNCTION-BOTTOM:CAPS"></a>GTK_JUNCTION_BOTTOM</p></td>
<td class="enum_member_description">
<p>Element connects on the bottom side.</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GTK-JUNCTION-LEFT:CAPS"></a>GTK_JUNCTION_LEFT</p></td>
<td class="enum_member_description">
<p>Element connects on the left side.</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GTK-JUNCTION-RIGHT:CAPS"></a>GTK_JUNCTION_RIGHT</p></td>
<td class="enum_member_description">
<p>Element connects on the right side.</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="GtkRegionFlags"></a><h3>enum GtkRegionFlags</h3>
<p>Describes a region within a widget.</p>
<div class="refsect3">
<a name="GtkRegionFlags.members"></a><h4>Members</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="300px" class="enum_members_name">
<col class="enum_members_description">
<col width="200px" class="enum_members_annotations">
</colgroup>
<tbody>
<tr>
<td class="enum_member_name"><p><a name="GTK-REGION-EVEN:CAPS"></a>GTK_REGION_EVEN</p></td>
<td class="enum_member_description">
<p>Region has an even number within a set.</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GTK-REGION-ODD:CAPS"></a>GTK_REGION_ODD</p></td>
<td class="enum_member_description">
<p>Region has an odd number within a set.</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GTK-REGION-FIRST:CAPS"></a>GTK_REGION_FIRST</p></td>
<td class="enum_member_description">
<p>Region is the first one within a set.</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GTK-REGION-LAST:CAPS"></a>GTK_REGION_LAST</p></td>
<td class="enum_member_description">
<p>Region is the last one within a set.</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GTK-REGION-ONLY:CAPS"></a>GTK_REGION_ONLY</p></td>
<td class="enum_member_description">
<p>Region is the only one within a set.</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GTK-REGION-SORTED:CAPS"></a>GTK_REGION_SORTED</p></td>
<td class="enum_member_description">
<p>Region is part of a sorted area.</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="GtkStyleContextPrintFlags"></a><h3>enum GtkStyleContextPrintFlags</h3>
<p>Flags that modify the behavior of <a class="link" href="GtkStyleContext.html#gtk-style-context-to-string" title="gtk_style_context_to_string ()"><code class="function">gtk_style_context_to_string()</code></a>.
New values may be added to this enumeration.</p>
<div class="refsect3">
<a name="GtkStyleContextPrintFlags.members"></a><h4>Members</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="300px" class="enum_members_name">
<col class="enum_members_description">
<col width="200px" class="enum_members_annotations">
</colgroup>
<tbody>
<tr>
<td class="enum_member_name"><p><a name="GTK-STYLE-CONTEXT-PRINT-NONE:CAPS"></a>GTK_STYLE_CONTEXT_PRINT_NONE</p></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GTK-STYLE-CONTEXT-PRINT-RECURSE:CAPS"></a>GTK_STYLE_CONTEXT_PRINT_RECURSE</p></td>
<td class="enum_member_description">
<p>Print the entire tree of
CSS nodes starting at the style context's node</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="GTK-STYLE-CONTEXT-PRINT-SHOW-STYLE:CAPS"></a>GTK_STYLE_CONTEXT_PRINT_SHOW_STYLE</p></td>
<td class="enum_member_description">
<p>Show the values of the
CSS properties for each node</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</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="refsect3">
<a name="GtkBorder.members"></a><h4>Members</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="300px" class="struct_members_name">
<col class="struct_members_description">
<col width="200px" class="struct_members_annotations">
</colgroup>
<tbody>
<tr>
<td class="struct_member_name"><p><span class="type">gint16</span> <em class="structfield"><code><a name="GtkBorder-struct.left"></a>left</code></em>;</p></td>
<td class="struct_member_description"><p>The width of the left border</p></td>
<td class="struct_member_annotations"> </td>
</tr>
<tr>
<td class="struct_member_name"><p><span class="type">gint16</span> <em class="structfield"><code><a name="GtkBorder-struct.right"></a>right</code></em>;</p></td>
<td class="struct_member_description"><p>The width of the right border</p></td>
<td class="struct_member_annotations"> </td>
</tr>
<tr>
<td class="struct_member_name"><p><span class="type">gint16</span> <em class="structfield"><code><a name="GtkBorder-struct.top"></a>top</code></em>;</p></td>
<td class="struct_member_description"><p>The width of the top border</p></td>
<td class="struct_member_annotations"> </td>
</tr>
<tr>
<td class="struct_member_name"><p><span class="type">gint16</span> <em class="structfield"><code><a name="GtkBorder-struct.bottom"></a>bottom</code></em>;</p></td>
<td class="struct_member_description"><p>The width of the bottom border</p></td>
<td class="struct_member_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</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></pre>
<p>Text direction.</p>
<p>Owner: GtkStyleContext</p>
<p>Flags: Read / Write</p>
<p>Default value: GTK_TEXT_DIR_LTR</p>
</div>
<hr>
<div class="refsect2">
<a name="GtkStyleContext--paint-clock"></a><h3>The <code class="literal">“paint-clock”</code> property</h3>
<pre class="programlisting"> “paint-clock” <span class="type">GdkFrameClock</span> *</pre>
<p>The associated GdkFrameClock.</p>
<p>Owner: GtkStyleContext</p>
<p>Flags: Read / Write</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> *</pre>
<p>Sets or gets the style contexts 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>Owner: GtkStyleContext</p>
<p>Flags: Read / Write</p>
<p class="since">Since: <a class="link" href="api-index-3-4.html#api-index-3.4">3.4</a></p>
</div>
<hr>
<div class="refsect2">
<a name="GtkStyleContext--screen"></a><h3>The <code class="literal">“screen”</code> property</h3>
<pre class="programlisting"> “screen” <span class="type">GdkScreen</span> *</pre>
<p>The associated GdkScreen.</p>
<p>Owner: GtkStyleContext</p>
<p>Flags: Read / Write</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,
<span class="type">gpointer</span> user_data)</pre>
<p>The ::changed signal is emitted when there is a change in the
<a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a>.</p>
<p>For a <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>, the
<a class="link" href="GtkWidget.html#GtkWidget-style-updated" title="The “style-updated” signal"><span class="type">“style-updated”</span></a> signal/vfunc might be more convenient to use.</p>
<p>This signal is useful when using the theming layer standalone.</p>
<div class="refsect3">
<a name="GtkStyleContext-changed.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>user_data</p></td>
<td class="parameter_description"><p>user data set when the signal handler was connected.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<p>Flags: Run First</p>
<p class="since">Since: <a class="link" href="api-index-3-0.html#api-index-3.0">3.0</a></p>
</div>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.33.1</div>
</body>
</html>