New upstream version 3.23.2
This commit is contained in:
@ -3,12 +3,12 @@
|
||||
<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 V1.79.1">
|
||||
<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.27 (XML mode)">
|
||||
<meta name="generator" content="GTK-Doc V1.28 (XML mode)">
|
||||
<link rel="stylesheet" href="style.css" type="text/css">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
@ -115,7 +115,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="function_type">
|
||||
<a href="../html/GdkScreen.html#GdkScreen-struct"><span class="returnvalue">GdkScreen</span></a> *
|
||||
<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>
|
||||
@ -123,7 +123,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="function_type">
|
||||
<a href="../html/GdkFrameClock.html#GdkFrameClock-struct"><span class="returnvalue">GdkFrameClock</span></a> *
|
||||
<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>
|
||||
@ -691,7 +691,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="property_type">
|
||||
<a href="../html/GdkFrameClock.html#GdkFrameClock-struct"><span class="type">GdkFrameClock</span></a> *</td>
|
||||
<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>
|
||||
@ -703,7 +703,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="property_type">
|
||||
<a href="../html/GdkScreen.html#GdkScreen-struct"><span class="type">GdkScreen</span></a> *</td>
|
||||
<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>
|
||||
@ -1154,7 +1154,7 @@
|
||||
</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>
|
||||
<pre class="screen"> GBoxed
|
||||
<span class="lineart">╰──</span> GtkBorder
|
||||
GObject
|
||||
<span class="lineart">╰──</span> GtkStyleContext
|
||||
@ -1177,7 +1177,7 @@ can be either attached explicitly to the context through
|
||||
combination of all providers’ information in priority order.</p>
|
||||
<p>For GTK+ widgets, any <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> returned by
|
||||
<a class="link" href="GtkWidget.html#gtk-widget-get-style-context" title="gtk_widget_get_style_context ()"><code class="function">gtk_widget_get_style_context()</code></a> will already have a <a class="link" href="gtk3-GtkWidgetPath.html#GtkWidgetPath" title="GtkWidgetPath"><span class="type">GtkWidgetPath</span></a>, a
|
||||
<a href="../html/GdkScreen.html#GdkScreen-struct"><span class="type">GdkScreen</span></a> and RTL/LTR information set. The style context will also be
|
||||
<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
|
||||
@ -1290,7 +1290,7 @@ between <a class="link" href="GtkStyleProvider.html#GTK-STYLE-PROVIDER-PRIORITY-
|
||||
<a name="gtk-style-context-add-provider-for-screen"></a><h3>gtk_style_context_add_provider_for_screen ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
gtk_style_context_add_provider_for_screen
|
||||
(<em class="parameter"><code><a href="../html/GdkScreen.html#GdkScreen-struct"><span class="type">GdkScreen</span></a> *screen</code></em>,
|
||||
(<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>
|
||||
@ -1313,7 +1313,7 @@ over another added through this function.</p>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>screen</p></td>
|
||||
<td class="parameter_description"><p>a <a href="../html/GdkScreen.html#GdkScreen-struct"><span class="type">GdkScreen</span></a></p></td>
|
||||
<td class="parameter_description"><p>a <span class="type">GdkScreen</span></p></td>
|
||||
<td class="parameter_annotations"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -1550,9 +1550,9 @@ to free any allocated memory.</p>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="gtk-style-context-get-screen"></a><h3>gtk_style_context_get_screen ()</h3>
|
||||
<pre class="programlisting"><a href="../html/GdkScreen.html#GdkScreen-struct"><span class="returnvalue">GdkScreen</span></a> *
|
||||
<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 <a href="../html/GdkScreen.html#GdkScreen-struct"><span class="type">GdkScreen</span></a> to which <em class="parameter"><code>context</code></em>
|
||||
<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>
|
||||
@ -1571,16 +1571,16 @@ gtk_style_context_get_screen (<em class="parameter"><code><a class="link" href="
|
||||
</div>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-style-context-get-screen.returns"></a><h4>Returns</h4>
|
||||
<p>a <a href="../html/GdkScreen.html#GdkScreen-struct"><span class="type">GdkScreen</span></a>. </p>
|
||||
<p>a <span class="type">GdkScreen</span>. </p>
|
||||
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><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"><a href="../html/GdkFrameClock.html#GdkFrameClock-struct"><span class="returnvalue">GdkFrameClock</span></a> *
|
||||
<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 <a href="../html/GdkFrameClock.html#GdkFrameClock-struct"><span class="type">GdkFrameClock</span></a> to which <em class="parameter"><code>context</code></em>
|
||||
<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>
|
||||
@ -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="../html/GdkFrameClock.html#GdkFrameClock-struct"><span class="type">GdkFrameClock</span></a>, or <code class="literal">NULL</code>
|
||||
<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="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
|
||||
@ -1836,7 +1836,7 @@ was defined. </p>
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
gtk_style_context_get_color (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
|
||||
<em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkStateFlags" title="enum GtkStateFlags"><span class="type">GtkStateFlags</span></a> state</code></em>,
|
||||
<em class="parameter"><code><a href="../html/gdk3-RGBA-Colors.html#GdkRGBA"><span class="type">GdkRGBA</span></a> *color</code></em>);</pre>
|
||||
<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>
|
||||
@ -1876,7 +1876,7 @@ gtk_style_context_get_color (<em class="parameter"><code><a class="link" href="G
|
||||
gtk_style_context_get_background_color
|
||||
(<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
|
||||
<em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkStateFlags" title="enum GtkStateFlags"><span class="type">GtkStateFlags</span></a> state</code></em>,
|
||||
<em class="parameter"><code><a href="../html/gdk3-RGBA-Colors.html#GdkRGBA"><span class="type">GdkRGBA</span></a> *color</code></em>);</pre>
|
||||
<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>
|
||||
@ -1924,7 +1924,7 @@ style classes to modify the color to be rendered.</p>
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
gtk_style_context_get_border_color (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
|
||||
<em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkStateFlags" title="enum GtkStateFlags"><span class="type">GtkStateFlags</span></a> state</code></em>,
|
||||
<em class="parameter"><code><a href="../html/gdk3-RGBA-Colors.html#GdkRGBA"><span class="type">GdkRGBA</span></a> *color</code></em>);</pre>
|
||||
<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>
|
||||
@ -2212,7 +2212,7 @@ it’s being unset.</p>
|
||||
<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><a href="../html/gdk3-RGBA-Colors.html#GdkRGBA"><span class="type">GdkRGBA</span></a> *color</code></em>);</pre>
|
||||
<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">
|
||||
@ -2296,7 +2296,7 @@ the default icon factory, returning an icon set if found, otherwise
|
||||
<a name="gtk-style-context-notify-state-change"></a><h3>gtk_style_context_notify_state_change ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
gtk_style_context_notify_state_change (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
|
||||
<em class="parameter"><code><a href="../html/gdk3-Windows.html#GdkWindow-struct"><span class="type">GdkWindow</span></a> *window</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>
|
||||
@ -2322,25 +2322,52 @@ rendered on by the gtk_render_*() functions.</p>
|
||||
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"><pre class="programlisting">
|
||||
gtk_style_context_notify_state_change (context,
|
||||
gtk_widget_get_window (widget),
|
||||
NULL,
|
||||
GTK_STATE_PRELIGHT,
|
||||
button->in_button);
|
||||
</pre></div>
|
||||
<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="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="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>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<p></p>
|
||||
<p>Can be handled in the CSS file like this:</p>
|
||||
<div class="informalexample"><pre class="programlisting">
|
||||
button {
|
||||
background-color: #f00
|
||||
}
|
||||
<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="normal">button </span><span class="cbracket">{</span>
|
||||
<span class="normal"> background</span><span class="symbol">-</span><span class="normal">color</span><span class="symbol">:</span><span class="normal"> #f00</span>
|
||||
<span class="cbracket">}</span>
|
||||
|
||||
<span class="normal">button</span><span class="symbol">:</span><span class="normal">hover </span><span class="cbracket">{</span>
|
||||
<span class="normal"> background</span><span class="symbol">-</span><span class="normal">color</span><span class="symbol">:</span><span class="normal"> #fff</span><span class="symbol">;</span>
|
||||
<span class="normal"> transition</span><span class="symbol">:</span><span class="normal"> 200ms linear</span>
|
||||
<span class="cbracket">}</span></pre></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
button:hover {
|
||||
background-color: #fff;
|
||||
transition: 200ms linear
|
||||
}
|
||||
</pre></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
|
||||
@ -2364,7 +2391,7 @@ is why the style places the transition under the :hover pseudo-class.</p>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>window</p></td>
|
||||
<td class="parameter_description"><p>a <a href="../html/gdk3-Windows.html#GdkWindow-struct"><span class="type">GdkWindow</span></a></p></td>
|
||||
<td class="parameter_description"><p>a <span class="type">GdkWindow</span></p></td>
|
||||
<td class="parameter_annotations"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -2516,14 +2543,14 @@ See <a class="link" href="GtkStyleContext.html#gtk-style-context-push-animatable
|
||||
<a name="gtk-style-context-scroll-animations"></a><h3>gtk_style_context_scroll_animations ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
gtk_style_context_scroll_animations (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
|
||||
<em class="parameter"><code><a href="../html/gdk3-Windows.html#GdkWindow-struct"><span class="type">GdkWindow</span></a> *window</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 <a href="../html/gdk3-Windows.html#gdk-window-scroll"><code class="function">gdk_window_scroll()</code></a>, and
|
||||
<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>
|
||||
@ -2543,7 +2570,7 @@ with it.</p>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>window</p></td>
|
||||
<td class="parameter_description"><p>a <a href="../html/gdk3-Windows.html#GdkWindow-struct"><span class="type">GdkWindow</span></a> used previously in
|
||||
<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>
|
||||
@ -2600,7 +2627,7 @@ gtk_style_context_remove_provider (<em class="parameter"><code><a class="link" h
|
||||
<a name="gtk-style-context-remove-provider-for-screen"></a><h3>gtk_style_context_remove_provider_for_screen ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
gtk_style_context_remove_provider_for_screen
|
||||
(<em class="parameter"><code><a href="../html/GdkScreen.html#GdkScreen-struct"><span class="type">GdkScreen</span></a> *screen</code></em>,
|
||||
(<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>
|
||||
@ -2616,7 +2643,7 @@ gtk_style_context_remove_provider_for_screen
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>screen</p></td>
|
||||
<td class="parameter_description"><p>a <a href="../html/GdkScreen.html#GdkScreen-struct"><span class="type">GdkScreen</span></a></p></td>
|
||||
<td class="parameter_description"><p>a <span class="type">GdkScreen</span></p></td>
|
||||
<td class="parameter_annotations"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -2633,9 +2660,9 @@ gtk_style_context_remove_provider_for_screen
|
||||
<div class="refsect2">
|
||||
<a name="gtk-style-context-reset-widgets"></a><h3>gtk_style_context_reset_widgets ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
gtk_style_context_reset_widgets (<em class="parameter"><code><a href="../html/GdkScreen.html#GdkScreen-struct"><span class="type">GdkScreen</span></a> *screen</code></em>);</pre>
|
||||
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
|
||||
<a href="../html/GdkScreen.html#GdkScreen-struct"><span class="type">GdkScreen</span></a>. This is useful when some global parameter has changed that
|
||||
<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
|
||||
@ -2650,7 +2677,7 @@ in the related <a class="link" href="GtkSettings.html" title="Settings"><span cl
|
||||
</colgroup>
|
||||
<tbody><tr>
|
||||
<td class="parameter_name"><p>screen</p></td>
|
||||
<td class="parameter_description"><p>a <a href="../html/GdkScreen.html#GdkScreen-struct"><span class="type">GdkScreen</span></a></p></td>
|
||||
<td class="parameter_description"><p>a <span class="type">GdkScreen</span></p></td>
|
||||
<td class="parameter_annotations"> </td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
@ -2662,7 +2689,7 @@ in the related <a class="link" href="GtkSettings.html" title="Settings"><span cl
|
||||
<a name="gtk-style-context-set-background"></a><h3>gtk_style_context_set_background ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
gtk_style_context_set_background (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
|
||||
<em class="parameter"><code><a href="../html/gdk3-Windows.html#GdkWindow-struct"><span class="type">GdkWindow</span></a> *window</code></em>);</pre>
|
||||
<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.
|
||||
@ -2690,7 +2717,7 @@ color specified in <em class="parameter"><code>context</code></em>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>window</p></td>
|
||||
<td class="parameter_description"><p>a <a href="../html/gdk3-Windows.html#GdkWindow-struct"><span class="type">GdkWindow</span></a></p></td>
|
||||
<td class="parameter_description"><p>a <span class="type">GdkWindow</span></p></td>
|
||||
<td class="parameter_annotations"> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@ -2915,15 +2942,31 @@ gtk_style_context_add_class (<em class="parameter"><code><a class="link" href="G
|
||||
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"><pre class="programlisting">
|
||||
entry.search { ... }
|
||||
</pre></div>
|
||||
<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="normal">entry</span><span class="symbol">.</span><span class="normal">search </span><span class="cbracket">{</span><span class="normal"> </span><span class="symbol">...</span><span class="normal"> </span><span class="cbracket">}</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"><pre class="programlisting">
|
||||
.search { ... }
|
||||
</pre></div>
|
||||
<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="symbol">.</span><span class="normal">search </span><span class="cbracket">{</span><span class="normal"> </span><span class="symbol">...</span><span class="normal"> </span><span class="cbracket">}</span></pre></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<p></p>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-style-context-add-class.parameters"></a><h4>Parameters</h4>
|
||||
@ -3067,17 +3110,34 @@ gtk_style_context_add_region (<em class="parameter"><code><a class="link" href="
|
||||
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"><pre class="programlisting">
|
||||
treeview row { ... }
|
||||
</pre></div>
|
||||
<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="usertype">treeview</span><span class="normal"> row </span><span class="cbracket">{</span><span class="normal"> </span><span class="symbol">...</span><span class="normal"> </span><span class="cbracket">}</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"><pre class="programlisting">
|
||||
treeview row:nth-child(even) { ... }
|
||||
treeview row:nth-child(odd) { ... }
|
||||
</pre></div>
|
||||
<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="usertype">treeview</span><span class="normal"> row</span><span class="symbol">:</span><span class="normal">nth</span><span class="symbol">-</span><span class="function">child</span><span class="symbol">(</span><span class="normal">even</span><span class="symbol">)</span><span class="normal"> </span><span class="cbracket">{</span><span class="normal"> </span><span class="symbol">...</span><span class="normal"> </span><span class="cbracket">}</span>
|
||||
<span class="usertype">treeview</span><span class="normal"> row</span><span class="symbol">:</span><span class="normal">nth</span><span class="symbol">-</span><span class="function">child</span><span class="symbol">(</span><span class="normal">odd</span><span class="symbol">)</span><span class="normal"> </span><span class="cbracket">{</span><span class="normal"> </span><span class="symbol">...</span><span class="normal"> </span><span class="cbracket">}</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
|
||||
@ -3228,7 +3288,7 @@ itself with <code class="function">g_list_free()</code> when you are done with i
|
||||
<a name="gtk-style-context-set-screen"></a><h3>gtk_style_context_set_screen ()</h3>
|
||||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||||
gtk_style_context_set_screen (<em class="parameter"><code><a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
|
||||
<em class="parameter"><code><a href="../html/GdkScreen.html#GdkScreen-struct"><span class="type">GdkScreen</span></a> *screen</code></em>);</pre>
|
||||
<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
|
||||
@ -3252,7 +3312,7 @@ call this yourself.</p>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>screen</p></td>
|
||||
<td class="parameter_description"><p>a <a href="../html/GdkScreen.html#GdkScreen-struct"><span class="type">GdkScreen</span></a></p></td>
|
||||
<td class="parameter_description"><p>a <span class="type">GdkScreen</span></p></td>
|
||||
<td class="parameter_annotations"> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@ -3265,7 +3325,7 @@ call this yourself.</p>
|
||||
<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><a href="../html/GdkFrameClock.html#GdkFrameClock-struct"><span class="type">GdkFrameClock</span></a> *frame_clock</code></em>);</pre>
|
||||
<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>
|
||||
@ -3283,12 +3343,12 @@ call this yourself.</p>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>context</p></td>
|
||||
<td class="parameter_description"><p>a <a href="../html/GdkFrameClock.html#GdkFrameClock-struct"><span class="type">GdkFrameClock</span></a></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 <a href="../html/GdkFrameClock.html#GdkFrameClock-struct"><span class="type">GdkFrameClock</span></a></p></td>
|
||||
<td class="parameter_description"><p>a <span class="type">GdkFrameClock</span></p></td>
|
||||
<td class="parameter_annotations"> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@ -3618,7 +3678,7 @@ gtk_render_background_get_clip (<em class="parameter"><code><a class="link" href
|
||||
<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="../html/gdk3-Points-Rectangles-and-Regions.html#GdkRectangle"><span class="type">GdkRectangle</span></a> *out_clip</code></em>);</pre>
|
||||
<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
|
||||
@ -3996,6 +4056,11 @@ gtk_render_frame_gap (<em class="parameter"><code><a class="link" href="GtkStyle
|
||||
<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>
|
||||
@ -4660,14 +4725,14 @@ gtk_render_insertion_cursor (<em class="parameter"><code><a class="link" href="G
|
||||
<a name="GTK-STYLE-PROPERTY-BACKGROUND-COLOR:CAPS"></a><h3>GTK_STYLE_PROPERTY_BACKGROUND_COLOR</h3>
|
||||
<pre class="programlisting">#define GTK_STYLE_PROPERTY_BACKGROUND_COLOR "background-color"
|
||||
</pre>
|
||||
<p>A property holding the background color of rendered elements as a <a href="../html/gdk3-RGBA-Colors.html#GdkRGBA"><span class="type">GdkRGBA</span></a>.</p>
|
||||
<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 <a href="../html/gdk3-RGBA-Colors.html#GdkRGBA"><span class="type">GdkRGBA</span></a>.</p>
|
||||
<p>A property holding the foreground color of rendered elements as a <span class="type">GdkRGBA</span>.</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
@ -4729,7 +4794,7 @@ requesting size</p>
|
||||
<a name="GTK-STYLE-PROPERTY-BORDER-COLOR:CAPS"></a><h3>GTK_STYLE_PROPERTY_BORDER_COLOR</h3>
|
||||
<pre class="programlisting">#define GTK_STYLE_PROPERTY_BORDER_COLOR "border-color"
|
||||
</pre>
|
||||
<p>A property holding the element’s border color as a <a href="../html/gdk3-RGBA-Colors.html#GdkRGBA"><span class="type">GdkRGBA</span></a>.</p>
|
||||
<p>A property holding the element’s border color as a <span class="type">GdkRGBA</span>.</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
@ -5838,7 +5903,7 @@ that can be of different width on each side.</p>
|
||||
<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” <a href="../html/GdkFrameClock.html#GdkFrameClock-struct"><span class="type">GdkFrameClock</span></a> *</pre>
|
||||
<pre class="programlisting"> “paint-clock” <span class="type">GdkFrameClock</span> *</pre>
|
||||
<p>The associated GdkFrameClock.</p>
|
||||
<p>Flags: Read / Write</p>
|
||||
</div>
|
||||
@ -5854,7 +5919,7 @@ for details.</p>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="GtkStyleContext--screen"></a><h3>The <code class="literal">“screen”</code> property</h3>
|
||||
<pre class="programlisting"> “screen” <a href="../html/GdkScreen.html#GdkScreen-struct"><span class="type">GdkScreen</span></a> *</pre>
|
||||
<pre class="programlisting"> “screen” <span class="type">GdkScreen</span> *</pre>
|
||||
<p>The associated GdkScreen.</p>
|
||||
<p>Flags: Read / Write</p>
|
||||
</div>
|
||||
@ -5892,6 +5957,6 @@ user_function (<a class="link" href="GtkStyleContext.html" title="GtkStyleContex
|
||||
</div>
|
||||
</div>
|
||||
<div class="footer">
|
||||
<hr>Generated by GTK-Doc V1.27</div>
|
||||
<hr>Generated by GTK-Doc V1.28</div>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user