New upstream version 3.24.5
This commit is contained in:
@ -242,7 +242,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="function_type">
|
||||
<span class="returnvalue">gboolean</span>
|
||||
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
||||
</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>
|
||||
@ -250,7 +250,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="function_type">
|
||||
<span class="returnvalue">gboolean</span>
|
||||
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
||||
</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>
|
||||
@ -402,7 +402,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="function_type">
|
||||
<span class="returnvalue">gboolean</span>
|
||||
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
||||
</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>
|
||||
@ -410,7 +410,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="function_type">
|
||||
<span class="returnvalue">GList</span> *
|
||||
<a href="https://developer.gnome.org/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *
|
||||
</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>
|
||||
@ -434,7 +434,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="function_type">
|
||||
<span class="returnvalue">gboolean</span>
|
||||
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
||||
</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>
|
||||
@ -442,7 +442,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="function_type">
|
||||
<span class="returnvalue">GList</span> *
|
||||
<a href="https://developer.gnome.org/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *
|
||||
</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>
|
||||
@ -482,7 +482,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="function_type">
|
||||
<span class="returnvalue">gint</span>
|
||||
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>
|
||||
</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>
|
||||
@ -721,7 +721,7 @@
|
||||
<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>
|
||||
<td class="signal_flags"><a href="https://developer.gnome.org/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-FIRST:CAPS">Run First</a></td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
</div>
|
||||
@ -1156,7 +1156,7 @@
|
||||
<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
|
||||
<a href="https://developer.gnome.org/gobject/unstable/gobject-The-Base-Object-Type.html#GObject-struct">GObject</a>
|
||||
<span class="lineart">╰──</span> GtkStyleContext
|
||||
</pre>
|
||||
</div>
|
||||
@ -1241,7 +1241,7 @@ in order to get a style context ready to theme the widget.</p>
|
||||
<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>
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> priority</code></em>);</pre>
|
||||
<p>Adds a style provider to <em class="parameter"><code>context</code></em>
|
||||
, to be used in style construction.
|
||||
Note that a style provider added by this function only affects
|
||||
@ -1292,7 +1292,7 @@ between <a class="link" href="GtkStyleProvider.html#GTK-STYLE-PROVIDER-PRIORITY-
|
||||
gtk_style_context_add_provider_for_screen
|
||||
(<em class="parameter"><code><a href="https://developer.gnome.org/gdk3/GdkScreen.html#GdkScreen-struct"><span class="type">GdkScreen</span></a> *screen</code></em>,
|
||||
<em class="parameter"><code><a class="link" href="GtkStyleProvider.html" title="GtkStyleProvider"><span class="type">GtkStyleProvider</span></a> *provider</code></em>,
|
||||
<em class="parameter"><code><span class="type">guint</span> priority</code></em>);</pre>
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> priority</code></em>);</pre>
|
||||
<p>Adds a global style provider to <em class="parameter"><code>screen</code></em>
|
||||
, which will be used
|
||||
in style construction for all <a href="GtkStyleContext.html#GtkStyleContext-struct"><span class="type">GtkStyleContexts</span></a> under <em class="parameter"><code>screen</code></em>
|
||||
@ -1367,7 +1367,7 @@ given state.</p>
|
||||
</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_description"><p>property name /return value pairs, followed by <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
|
||||
<td class="parameter_annotations"> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@ -1459,7 +1459,7 @@ See that function for details.</p>
|
||||
</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>the parent context or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </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="Don't free data after the code is done."><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>
|
||||
@ -1497,13 +1497,13 @@ gtk_style_context_get_path (<em class="parameter"><code><a class="link" href="Gt
|
||||
<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>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *property</code></em>,
|
||||
<em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkStateFlags" title="enum GtkStateFlags"><span class="type">GtkStateFlags</span></a> state</code></em>,
|
||||
<em class="parameter"><code><span class="type">GValue</span> *value</code></em>);</pre>
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/gobject/unstable/gobject-Generic-values.html#GValue-struct"><span class="type">GValue</span></a> *value</code></em>);</pre>
|
||||
<p>Gets a style property from <em class="parameter"><code>context</code></em>
|
||||
for the given state.</p>
|
||||
<p>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>.
|
||||
retrieved in this way, since they may not be representable as <a href="https://developer.gnome.org/gobject/unstable/gobject-Generic-values.html#GValue-struct"><span class="type">GValue</span></a>.
|
||||
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>
|
||||
@ -1511,7 +1511,7 @@ with this function.</p>
|
||||
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
|
||||
is no longer needed, <a href="https://developer.gnome.org/gobject/unstable/gobject-Generic-values.html#g-value-unset"><code class="function">g_value_unset()</code></a> must be called
|
||||
to free any allocated memory.</p>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-style-context-get-property.parameters"></a><h4>Parameters</h4>
|
||||
@ -1599,7 +1599,7 @@ gtk_style_context_get_frame_clock (<em class="parameter"><code><a class="link" h
|
||||
</div>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-style-context-get-frame-clock.returns"></a><h4>Returns</h4>
|
||||
<p>a <a href="https://developer.gnome.org/gdk3/GdkFrameClock.html#GdkFrameClock-struct"><span class="type">GdkFrameClock</span></a>, or <code class="literal">NULL</code>
|
||||
<p>a <a href="https://developer.gnome.org/gdk3/GdkFrameClock.html#GdkFrameClock-struct"><span class="type">GdkFrameClock</span></a>, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
|
||||
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="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
|
||||
@ -1662,7 +1662,7 @@ current style.</p>
|
||||
</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_description"><p>property name /return value pairs, followed by <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
|
||||
<td class="parameter_annotations"> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@ -1675,11 +1675,11 @@ current style.</p>
|
||||
<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>
|
||||
<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *property_name</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/gobject/unstable/gobject-Generic-values.html#GValue-struct"><span class="type">GValue</span></a> *value</code></em>);</pre>
|
||||
<p>Gets the value for a widget style property.</p>
|
||||
<p>When <em class="parameter"><code>value</code></em>
|
||||
is no longer needed, <code class="function">g_value_unset()</code> must be called
|
||||
is no longer needed, <a href="https://developer.gnome.org/gobject/unstable/gobject-Generic-values.html#g-value-unset"><code class="function">g_value_unset()</code></a> must be called
|
||||
to free any allocated memory.</p>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-style-context-get-style-property.parameters"></a><h4>Parameters</h4>
|
||||
@ -1734,7 +1734,7 @@ current style.</p>
|
||||
</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_description"><p>va_list of property name/return location pairs, followed by <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
|
||||
<td class="parameter_annotations"> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@ -1773,7 +1773,7 @@ gtk_style_context_get_valist (<em class="parameter"><code><a class="link" href="
|
||||
</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_description"><p>va_list of property name/return location pairs, followed by <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
|
||||
<td class="parameter_annotations"> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@ -1786,20 +1786,20 @@ gtk_style_context_get_valist (<em class="parameter"><code><a class="link" href="
|
||||
<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>
|
||||
<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *property</code></em>);</pre>
|
||||
<p>Queries the location in the CSS where <em class="parameter"><code>property</code></em>
|
||||
was defined for the
|
||||
current <em class="parameter"><code>context</code></em>
|
||||
. Note that the state to be queried is taken from
|
||||
<a class="link" href="GtkStyleContext.html#gtk-style-context-get-state" title="gtk_style_context_get_state ()"><code class="function">gtk_style_context_get_state()</code></a>.</p>
|
||||
<p>If the location is not available, <code class="literal">NULL</code> will be returned. The
|
||||
<p>If the location is not available, <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> will be returned. The
|
||||
location might not be available for various reasons, such as the
|
||||
property being overridden, <em class="parameter"><code>property</code></em>
|
||||
not naming a supported CSS
|
||||
property or tracking of definitions being disabled for performance
|
||||
reasons.</p>
|
||||
<p>Shorthand CSS properties cannot be queried for a location and will
|
||||
always return <code class="literal">NULL</code>.</p>
|
||||
always return <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</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">
|
||||
@ -1824,7 +1824,7 @@ always return <code class="literal">NULL</code>.</p>
|
||||
</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
|
||||
<p><a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> 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="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
|
||||
@ -2155,18 +2155,18 @@ information immediately.</p>
|
||||
<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>
|
||||
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
||||
gtk_style_context_state_is_running (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
|
||||
<em class="parameter"><code><a class="link" href="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>
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> *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>
|
||||
<p>This function always returns <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a></p>
|
||||
</div>
|
||||
<p>Returns <code class="literal">TRUE</code> if there is a transition animation running for the
|
||||
<p>Returns <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if there is a transition animation running for the
|
||||
current region (see <a class="link" href="GtkStyleContext.html#gtk-style-context-push-animatable-region" title="gtk_style_context_push_animatable_region ()"><code class="function">gtk_style_context_push_animatable_region()</code></a>).</p>
|
||||
<p>If <em class="parameter"><code>progress</code></em>
|
||||
is not <code class="literal">NULL</code>, the animation progress will be returned
|
||||
is not <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, the animation progress will be returned
|
||||
there, 0.0 means the state is closest to being unset, while 1.0 means
|
||||
it’s closest to being set. This means transition animation will
|
||||
run from 0 to 1 when <em class="parameter"><code>state</code></em>
|
||||
@ -2201,7 +2201,7 @@ it’s being unset.</p>
|
||||
</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> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if there is a running transition animation for <em class="parameter"><code>state</code></em>
|
||||
.</p>
|
||||
</div>
|
||||
<p class="since">Since: <a class="link" href="api-index-3-0.html#api-index-3.0">3.0</a></p>
|
||||
@ -2209,9 +2209,9 @@ it’s being unset.</p>
|
||||
<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>
|
||||
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
||||
gtk_style_context_lookup_color (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
|
||||
<em class="parameter"><code>const <span class="type">gchar</span> *color_name</code></em>,
|
||||
<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *color_name</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/gdk3/gdk3-RGBA-Colors.html#GdkRGBA"><span class="type">GdkRGBA</span></a> *color</code></em>);</pre>
|
||||
<p>Looks up and resolves a color name in the <em class="parameter"><code>context</code></em>
|
||||
color map.</p>
|
||||
@ -2244,8 +2244,8 @@ gtk_style_context_lookup_color (<em class="parameter"><code><a class="link" href
|
||||
</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>
|
||||
<p> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>color_name</code></em>
|
||||
was found and resolved, <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise</p>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
@ -2253,7 +2253,7 @@ was found and resolved, <code class="literal">FALSE</code> otherwise</p>
|
||||
<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>
|
||||
<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *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>
|
||||
@ -2262,7 +2262,7 @@ gtk_style_context_lookup_icon_set (<em class="parameter"><code><a class="link" h
|
||||
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>
|
||||
<a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</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">
|
||||
@ -2287,7 +2287,7 @@ the default icon factory, returning an icon set if found, otherwise
|
||||
</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>The looked up <a class="link" href="gtk3-Themeable-Stock-Images.html#GtkIconSet"><code class="literal">GtkIconSet</code></a>, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </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="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
|
||||
</div>
|
||||
</div>
|
||||
@ -2297,9 +2297,9 @@ the default icon factory, returning an icon set if found, otherwise
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
gtk_style_context_notify_state_change (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/gdk3/gdk3-Windows.html#GdkWindow-struct"><span class="type">GdkWindow</span></a> *window</code></em>,
|
||||
<em class="parameter"><code><span class="type">gpointer</span> region_id</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> region_id</code></em>,
|
||||
<em class="parameter"><code><a class="link" href="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>
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> 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>
|
||||
@ -2317,7 +2317,7 @@ under <em class="parameter"><code>region_id</code></em>
|
||||
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>
|
||||
is <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, all rendered elements using <em class="parameter"><code>context</code></em>
|
||||
will be
|
||||
affected by this state transition.</p>
|
||||
<p>As a practical example, a <a class="link" href="GtkButton.html" title="GtkButton"><span class="type">GtkButton</span></a> notifying a state transition on
|
||||
@ -2333,7 +2333,7 @@ the prelight state:</p>
|
||||
5</pre></td>
|
||||
<td class="listing_code"><pre class="programlisting"><span class="function"><a href="GtkStyleContext.html#gtk-style-context-notify-state-change">gtk_style_context_notify_state_change</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">context</span><span class="symbol">,</span>
|
||||
<span class="normal"> </span><span class="function"><a href="GtkWidget.html#gtk-widget-get-window">gtk_widget_get_window</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">widget</span><span class="symbol">),</span>
|
||||
<span class="normal"> NULL</span><span class="symbol">,</span>
|
||||
<span class="normal"> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">,</span>
|
||||
<span class="normal"> <a href="GtkWidget.html#GTK-STATE-PRELIGHT:CAPS">GTK_STATE_PRELIGHT</a></span><span class="symbol">,</span>
|
||||
<span class="normal"> button</span><span class="symbol">-></span><span class="normal">in_button</span><span class="symbol">);</span></pre></td>
|
||||
</tr>
|
||||
@ -2396,7 +2396,7 @@ is why the style places the transition under the :hover pseudo-class.</p>
|
||||
</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>.
|
||||
<td class="parameter_description"><p>animatable region to notify on, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.
|
||||
See <a class="link" href="GtkStyleContext.html#gtk-style-context-push-animatable-region" title="gtk_style_context_push_animatable_region ()"><code class="function">gtk_style_context_push_animatable_region()</code></a>. </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>
|
||||
@ -2407,9 +2407,9 @@ See <a class="link" href="GtkStyleContext.html#gtk-style-context-push-animatable
|
||||
</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>
|
||||
<td class="parameter_description"><p><a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>state</code></em>
|
||||
is the state we are changing to,
|
||||
<code class="literal">FALSE</code> if we are changing away from it</p></td>
|
||||
<a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if we are changing away from it</p></td>
|
||||
<td class="parameter_annotations"> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@ -2453,7 +2453,7 @@ See <a class="link" href="GtkStyleContext.html#gtk-style-context-push-animatable
|
||||
<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>
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> 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>
|
||||
@ -2497,7 +2497,7 @@ can uniquely identify rendered elements subject to a state transition.</p>
|
||||
<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>
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> 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>
|
||||
@ -2505,7 +2505,7 @@ gtk_style_context_cancel_animations (<em class="parameter"><code><a class="link"
|
||||
<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>
|
||||
<p>A <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> <em class="parameter"><code>region_id</code></em>
|
||||
will stop all ongoing animations in <em class="parameter"><code>context</code></em>
|
||||
,
|
||||
when dealing with a <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> obtained through
|
||||
@ -2529,7 +2529,7 @@ animatable regions.</p>
|
||||
</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>.
|
||||
<td class="parameter_description"><p>animatable region to stop, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.
|
||||
See <a class="link" href="GtkStyleContext.html#gtk-style-context-push-animatable-region" title="gtk_style_context_push_animatable_region ()"><code class="function">gtk_style_context_push_animatable_region()</code></a>. </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>
|
||||
@ -2544,8 +2544,8 @@ See <a class="link" href="GtkStyleContext.html#gtk-style-context-push-animatable
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
gtk_style_context_scroll_animations (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/gdk3/gdk3-Windows.html#GdkWindow-struct"><span class="type">GdkWindow</span></a> *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>
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> dx</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> 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>
|
||||
@ -2886,7 +2886,7 @@ of properties.</p>
|
||||
</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_description"><p>the new parent or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</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>
|
||||
@ -2935,7 +2935,7 @@ this yourself.</p>
|
||||
<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>
|
||||
<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *class_name</code></em>);</pre>
|
||||
<p>Adds a style class to <em class="parameter"><code>context</code></em>
|
||||
, so posterior calls to
|
||||
<a class="link" href="GtkStyleContext.html#gtk-style-context-get" title="gtk_style_context_get ()"><code class="function">gtk_style_context_get()</code></a> or any of the gtk_render_*()
|
||||
@ -2997,7 +2997,7 @@ matched by:</p>
|
||||
<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>
|
||||
<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *class_name</code></em>);</pre>
|
||||
<p>Removes <em class="parameter"><code>class_name</code></em>
|
||||
from <em class="parameter"><code>context</code></em>
|
||||
.</p>
|
||||
@ -3028,10 +3028,10 @@ gtk_style_context_remove_class (<em class="parameter"><code><a class="link" href
|
||||
<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>
|
||||
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
||||
gtk_style_context_has_class (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
|
||||
<em class="parameter"><code>const <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>
|
||||
<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *class_name</code></em>);</pre>
|
||||
<p>Returns <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>context</code></em>
|
||||
currently has defined the
|
||||
given class name.</p>
|
||||
<div class="refsect3">
|
||||
@ -3058,7 +3058,7 @@ given class name.</p>
|
||||
</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>
|
||||
<p> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>context</code></em>
|
||||
has <em class="parameter"><code>class_name</code></em>
|
||||
defined</p>
|
||||
</div>
|
||||
@ -3067,7 +3067,7 @@ defined</p>
|
||||
<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> *
|
||||
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *
|
||||
gtk_style_context_list_classes (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>);</pre>
|
||||
<p>Returns the list of classes currently defined in <em class="parameter"><code>context</code></em>
|
||||
.</p>
|
||||
@ -3088,10 +3088,10 @@ gtk_style_context_list_classes (<em class="parameter"><code><a class="link" href
|
||||
</div>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-style-context-list-classes.returns"></a><h4>Returns</h4>
|
||||
<p>a <span class="type">GList</span> of
|
||||
<p>a <a href="https://developer.gnome.org/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> of
|
||||
strings with the currently defined classes. The contents
|
||||
of the list are owned by GTK+, but you must free the list
|
||||
itself with <code class="function">g_list_free()</code> when you are done with it. </p>
|
||||
itself with <a href="https://developer.gnome.org/glib/unstable/glib-Doubly-Linked-Lists.html#g-list-free"><code class="function">g_list_free()</code></a> when you are done with it. </p>
|
||||
<p><span class="annotation">[<acronym title="Free data container after the code is done."><span class="acronym">transfer container</span></acronym>][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> utf8]</span></p>
|
||||
</div>
|
||||
<p class="since">Since: <a class="link" href="api-index-3-0.html#api-index-3.0">3.0</a></p>
|
||||
@ -3101,7 +3101,7 @@ itself with <code class="function">g_list_free()</code> when you are done with i
|
||||
<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>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *region_name</code></em>,
|
||||
<em class="parameter"><code><a class="link" href="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>
|
||||
@ -3176,7 +3176,7 @@ and “-”, starting always with a lowercase letter.</p>
|
||||
<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>
|
||||
<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *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>
|
||||
@ -3207,15 +3207,15 @@ gtk_style_context_remove_region (<em class="parameter"><code><a class="link" hre
|
||||
<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>
|
||||
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
||||
gtk_style_context_has_region (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
|
||||
<em class="parameter"><code>const <span class="type">gchar</span> *region_name</code></em>,
|
||||
<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *region_name</code></em>,
|
||||
<em class="parameter"><code><a class="link" href="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>
|
||||
<p>Returns <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>context</code></em>
|
||||
has the region defined.
|
||||
If <em class="parameter"><code>flags_return</code></em>
|
||||
is not <code class="literal">NULL</code>, it is set to the flags
|
||||
is not <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, it is set to the flags
|
||||
affecting the region.</p>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-style-context-has-region.parameters"></a><h4>Parameters</h4>
|
||||
@ -3246,14 +3246,14 @@ affecting the region.</p>
|
||||
</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>
|
||||
<p> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> 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> *
|
||||
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *
|
||||
gtk_style_context_list_regions (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>);</pre>
|
||||
<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>
|
||||
@ -3275,10 +3275,10 @@ gtk_style_context_list_regions (<em class="parameter"><code><a class="link" href
|
||||
</div>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-style-context-list-regions.returns"></a><h4>Returns</h4>
|
||||
<p>a <span class="type">GList</span> of
|
||||
<p>a <a href="https://developer.gnome.org/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> of
|
||||
strings with the currently defined regions. The contents
|
||||
of the list are owned by GTK+, but you must free the list
|
||||
itself with <code class="function">g_list_free()</code> when you are done with it. </p>
|
||||
itself with <a href="https://developer.gnome.org/glib/unstable/glib-Doubly-Linked-Lists.html#g-list-free"><code class="function">g_list_free()</code></a> when you are done with it. </p>
|
||||
<p><span class="annotation">[<acronym title="Free data container after the code is done."><span class="acronym">transfer container</span></acronym>][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> utf8]</span></p>
|
||||
</div>
|
||||
<p class="since">Since: <a class="link" href="api-index-3-0.html#api-index-3.0">3.0</a></p>
|
||||
@ -3392,7 +3392,7 @@ gtk_style_context_set_state (<em class="parameter"><code><a class="link" href="G
|
||||
<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>
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> 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>
|
||||
@ -3421,7 +3421,7 @@ gtk_style_context_set_scale (<em class="parameter"><code><a class="link" href="G
|
||||
<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>
|
||||
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>
|
||||
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">
|
||||
@ -3559,10 +3559,10 @@ gtk_border_free (<em class="parameter"><code><a class="link" href="GtkStyleConte
|
||||
<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>
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> angle</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> size</code></em>);</pre>
|
||||
<p>Renders an arrow pointing to <em class="parameter"><code>angle</code></em>
|
||||
.</p>
|
||||
<p>Typical arrow rendering at 0, 1⁄2 π;, π; and 3⁄2 π:</p>
|
||||
@ -3588,7 +3588,7 @@ gtk_render_arrow (<em class="parameter"><code><a class="link" href="GtkStyleCont
|
||||
</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_description"><p>arrow angle from 0 to 2 * <a href="https://developer.gnome.org/glib/unstable/glib-Numerical-Definitions.html#G-PI:CAPS"><code class="literal">G_PI</code></a>, being 0 the arrow pointing to the north</p></td>
|
||||
<td class="parameter_annotations"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -3617,10 +3617,10 @@ gtk_render_arrow (<em class="parameter"><code><a class="link" href="GtkStyleCont
|
||||
<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>
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> width</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> height</code></em>);</pre>
|
||||
<p>Renders the background of an element.</p>
|
||||
<p>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>
|
||||
@ -3674,10 +3674,10 @@ gtk_render_background (<em class="parameter"><code><a class="link" href="GtkStyl
|
||||
<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><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> width</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> height</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/gdk3/gdk3-Points-Rectangles-and-Regions.html#GdkRectangle"><span class="type">GdkRectangle</span></a> *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>
|
||||
@ -3733,10 +3733,10 @@ rectangle.</p>
|
||||
<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>
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> width</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> height</code></em>);</pre>
|
||||
<p>Renders a checkmark (as in a <a class="link" href="GtkCheckButton.html" title="GtkCheckButton"><span class="type">GtkCheckButton</span></a>).</p>
|
||||
<p>The <a class="link" href="gtk3-Standard-Enumerations.html#GTK-STATE-FLAG-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
|
||||
@ -3793,10 +3793,10 @@ should be marked as undefined.</p>
|
||||
<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>
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> width</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> height</code></em>);</pre>
|
||||
<p>Renders an expander (as used in <a class="link" href="GtkTreeView.html" title="GtkTreeView"><span class="type">GtkTreeView</span></a> and <a class="link" href="GtkExpander.html" title="GtkExpander"><span class="type">GtkExpander</span></a>) in the area
|
||||
defined by <em class="parameter"><code>x</code></em>
|
||||
, <em class="parameter"><code>y</code></em>
|
||||
@ -3856,10 +3856,10 @@ determines whether the expander is collapsed or expanded.</p>
|
||||
<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 href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> width</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> height</code></em>,
|
||||
<em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkPositionType" title="enum GtkPositionType"><span class="type">GtkPositionType</span></a> gap_side</code></em>);</pre>
|
||||
<p>Renders a extension (as in a <a class="link" href="GtkNotebook.html" title="GtkNotebook"><span class="type">GtkNotebook</span></a> tab) in the rectangle
|
||||
defined by <em class="parameter"><code>x</code></em>
|
||||
@ -3926,10 +3926,10 @@ connects to is defined by <em class="parameter"><code>gap_side</code></em>
|
||||
<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>
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> width</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> height</code></em>);</pre>
|
||||
<p>Renders a focus indicator on the rectangle determined by <em class="parameter"><code>x</code></em>
|
||||
, <em class="parameter"><code>y</code></em>
|
||||
, <em class="parameter"><code>width</code></em>
|
||||
@ -3987,10 +3987,10 @@ gtk_render_focus (<em class="parameter"><code><a class="link" href="GtkStyleCont
|
||||
<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>
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> width</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> height</code></em>);</pre>
|
||||
<p>Renders a frame around the rectangle defined by <em class="parameter"><code>x</code></em>
|
||||
, <em class="parameter"><code>y</code></em>
|
||||
, <em class="parameter"><code>width</code></em>
|
||||
@ -4049,13 +4049,13 @@ gtk_render_frame (<em class="parameter"><code><a class="link" href="GtkStyleCont
|
||||
<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 href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> width</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> height</code></em>,
|
||||
<em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkPositionType" title="enum GtkPositionType"><span class="type">GtkPositionType</span></a> gap_side</code></em>,
|
||||
<em class="parameter"><code><span class="type">gdouble</span> xy0_gap</code></em>,
|
||||
<em class="parameter"><code><span class="type">gdouble</span> xy1_gap</code></em>);</pre>
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> xy0_gap</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> 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
|
||||
@ -4140,10 +4140,10 @@ for <a class="link" href="gtk3-Standard-Enumerations.html#GTK-POS-TOP:CAPS"><cod
|
||||
<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>
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> width</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> height</code></em>);</pre>
|
||||
<p>Renders a handle (as in <a class="link" href="GtkHandleBox.html" title="GtkHandleBox"><span class="type">GtkHandleBox</span></a>, <a class="link" href="GtkPaned.html" title="GtkPaned"><span class="type">GtkPaned</span></a> and
|
||||
<a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>’s resize grip), in the rectangle
|
||||
determined by <em class="parameter"><code>x</code></em>
|
||||
@ -4203,8 +4203,8 @@ determined by <em class="parameter"><code>x</code></em>
|
||||
<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><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
|
||||
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/pango/pango-Layout-Objects.html#PangoLayout-struct"><span class="type">PangoLayout</span></a> *layout</code></em>);</pre>
|
||||
<p>Renders <em class="parameter"><code>layout</code></em>
|
||||
on the coordinates <em class="parameter"><code>x</code></em>
|
||||
@ -4255,10 +4255,10 @@ gtk_render_layout (<em class="parameter"><code><a class="link" href="GtkStyleCon
|
||||
<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>
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x0</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y0</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x1</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y1</code></em>);</pre>
|
||||
<p>Renders a line from (x0, y0) to (x1, y1).</p>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-render-line.parameters"></a><h4>Parameters</h4>
|
||||
@ -4310,10 +4310,10 @@ gtk_render_line (<em class="parameter"><code><a class="link" href="GtkStyleConte
|
||||
<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>
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> width</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> height</code></em>);</pre>
|
||||
<p>Renders an option mark (as in a <a class="link" href="GtkRadioButton.html" title="GtkRadioButton"><span class="type">GtkRadioButton</span></a>), the <a class="link" href="gtk3-Standard-Enumerations.html#GTK-STATE-FLAG-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>
|
||||
@ -4369,10 +4369,10 @@ state will determine whether the option is on or off, and
|
||||
<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 href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> width</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> height</code></em>,
|
||||
<em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkOrientation" title="enum GtkOrientation"><span class="type">GtkOrientation</span></a> orientation</code></em>);</pre>
|
||||
<p>Renders a slider (as in <a class="link" href="GtkScale.html" title="GtkScale"><span class="type">GtkScale</span></a>) in the rectangle defined by <em class="parameter"><code>x</code></em>
|
||||
, <em class="parameter"><code>y</code></em>
|
||||
@ -4439,10 +4439,10 @@ or horizontal.</p>
|
||||
<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>
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> width</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> 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>
|
||||
@ -4548,8 +4548,8 @@ and don’t scale. </p></td>
|
||||
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>
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>);</pre>
|
||||
<p>Renders the icon in <em class="parameter"><code>surface</code></em>
|
||||
at the specified <em class="parameter"><code>x</code></em>
|
||||
and <em class="parameter"><code>y</code></em>
|
||||
@ -4602,8 +4602,8 @@ gtk_render_icon_surface (<em class="parameter"><code><a class="link" href="GtkSt
|
||||
gtk_render_icon (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
|
||||
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
||||
<em class="parameter"><code><a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf-struct"><span class="type">GdkPixbuf</span></a> *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>
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>);</pre>
|
||||
<p>Renders the icon in <em class="parameter"><code>pixbuf</code></em>
|
||||
at the specified <em class="parameter"><code>x</code></em>
|
||||
and <em class="parameter"><code>y</code></em>
|
||||
@ -4661,8 +4661,8 @@ already have a Cairo surface.</p>
|
||||
<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><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
|
||||
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
|
||||
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/pango/pango-Layout-Objects.html#PangoLayout-struct"><span class="type">PangoLayout</span></a> *layout</code></em>,
|
||||
<em class="parameter"><code><span class="type">int</span> index</code></em>,
|
||||
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/pango/pango-Bidirectional-Text.html#PangoDirection"><span class="type">PangoDirection</span></a> direction</code></em>);</pre>
|
||||
@ -4780,7 +4780,7 @@ requesting size</p>
|
||||
<a name="GTK-STYLE-PROPERTY-BORDER-RADIUS:CAPS"></a><h3>GTK_STYLE_PROPERTY_BORDER_RADIUS</h3>
|
||||
<pre class="programlisting">#define GTK_STYLE_PROPERTY_BORDER_RADIUS "border-radius"
|
||||
</pre>
|
||||
<p>A property holding the rendered element’s border radius in pixels as a <span class="type">gint</span>.</p>
|
||||
<p>A property holding the rendered element’s border radius in pixels as a <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a>.</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
@ -5867,22 +5867,22 @@ that can be of different width on each side.</p>
|
||||
</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_name"><p><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint16"><span class="type">gint16</span></a> <em class="structfield"><code><a name="GtkBorder-struct.left"></a>left</code></em>;</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_name"><p><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint16"><span class="type">gint16</span></a> <em class="structfield"><code><a name="GtkBorder-struct.right"></a>right</code></em>;</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_name"><p><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint16"><span class="type">gint16</span></a> <em class="structfield"><code><a name="GtkBorder-struct.top"></a>top</code></em>;</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_name"><p><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint16"><span class="type">gint16</span></a> <em class="structfield"><code><a name="GtkBorder-struct.bottom"></a>bottom</code></em>;</p></td>
|
||||
<td class="struct_member_description"><p>The width of the bottom border</p></td>
|
||||
<td class="struct_member_annotations"> </td>
|
||||
</tr>
|
||||
@ -5930,7 +5930,7 @@ for details.</p>
|
||||
<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>
|
||||
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> 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
|
||||
@ -5951,7 +5951,7 @@ user_function (<a class="link" href="GtkStyleContext.html" title="GtkStyleContex
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
</div>
|
||||
<p>Flags: Run First</p>
|
||||
<p>Flags: <a href="https://developer.gnome.org/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-FIRST:CAPS">Run First</a></p>
|
||||
<p class="since">Since: <a class="link" href="api-index-3-0.html#api-index-3.0">3.0</a></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user