⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gtkrange.html

📁 最新gtk中文资料集
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<td> update policy</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4295161"></a><h3><a name="gtk-range-set-adjustment"></a>gtk_range_set_adjustment ()</h3><a class="indexterm" name="id4295174"></a><pre class="programlisting">void                gtk_range_set_adjustment            (<a class="link" href="GtkRange.html" title="GtkRange">GtkRange</a> *range,                                                         <a class="link" href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a> *adjustment);</pre><p>Sets the adjustment to be used as the "model" object for this rangewidget. The adjustment indicates the current range value, theminimum and maximum range values, the step/page increments usedfor keybindings and scrolling, and the page size. The page sizeis normally 0 for <a class="link" href="GtkScale.html" title="GtkScale"><span class="type">GtkScale</span></a> and nonzero for <a class="link" href="GtkScrollbar.html" title="GtkScrollbar"><span class="type">GtkScrollbar</span></a>, andindicates the size of the visible area of the widget being scrolled.The page size affects the size of the scrollbar slider.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>range</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkRange.html" title="GtkRange"><span class="type">GtkRange</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>adjustment</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a></td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4295284"></a><h3><a name="gtk-range-get-inverted"></a>gtk_range_get_inverted ()</h3><a class="indexterm" name="id4295296"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>            gtk_range_get_inverted              (<a class="link" href="GtkRange.html" title="GtkRange">GtkRange</a> *range);</pre><p>Gets the value set by <a class="link" href="GtkRange.html#gtk-range-set-inverted"><code class="function">gtk_range_set_inverted()</code></a>.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>range</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkRange.html" title="GtkRange"><span class="type">GtkRange</span></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the range is inverted</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4295386"></a><h3><a name="gtk-range-set-inverted"></a>gtk_range_set_inverted ()</h3><a class="indexterm" name="id4295399"></a><pre class="programlisting">void                gtk_range_set_inverted              (<a class="link" href="GtkRange.html" title="GtkRange">GtkRange</a> *range,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> setting);</pre><p>Ranges normally move from lower to higher values as theslider moves from top to bottom or left to right. Invertedranges have higher values at the top or on the right rather thanon the bottom or left.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>range</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkRange.html" title="GtkRange"><span class="type">GtkRange</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>setting</code></em>&#160;:</span></p></td><td> <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> to invert the range</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4295491"></a><h3><a name="gtk-range-get-update-policy"></a>gtk_range_get_update_policy ()</h3><a class="indexterm" name="id4295505"></a><pre class="programlisting"><a class="link" href="gtk-Standard-Enumerations.html#GtkUpdateType">GtkUpdateType</a>       gtk_range_get_update_policy         (<a class="link" href="GtkRange.html" title="GtkRange">GtkRange</a> *range);</pre><p>Gets the update policy of <em class="parameter"><code>range</code></em>. See <a class="link" href="GtkRange.html#gtk-range-set-update-policy"><code class="function">gtk_range_set_update_policy()</code></a>.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>range</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkRange.html" title="GtkRange"><span class="type">GtkRange</span></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> the current update policy</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4295590"></a><h3><a name="gtk-range-get-value"></a>gtk_range_get_value ()</h3><a class="indexterm" name="id4295604"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble">gdouble</a>             gtk_range_get_value                 (<a class="link" href="GtkRange.html" title="GtkRange">GtkRange</a> *range);</pre><p>Gets the current value of the range.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>range</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkRange.html" title="GtkRange"><span class="type">GtkRange</span></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> current value of the range.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4295672"></a><h3><a name="gtk-range-set-increments"></a>gtk_range_set_increments ()</h3><a class="indexterm" name="id4295685"></a><pre class="programlisting">void                gtk_range_set_increments            (<a class="link" href="GtkRange.html" title="GtkRange">GtkRange</a> *range,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble">gdouble</a> step,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble">gdouble</a> page);</pre><p>Sets the step and page sizes for the range.The step size is used when the user clicks the <a class="link" href="GtkScrollbar.html" title="GtkScrollbar"><span class="type">GtkScrollbar</span></a>arrows or moves <a class="link" href="GtkScale.html" title="GtkScale"><span class="type">GtkScale</span></a> via arrow keys. The page sizeis used for example when moving via Page Up or Page Down keys.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>range</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkRange.html" title="GtkRange"><span class="type">GtkRange</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>step</code></em>&#160;:</span></p></td><td> step size</td></tr><tr><td><p><span class="term"><em class="parameter"><code>page</code></em>&#160;:</span></p></td><td> page size</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4295806"></a><h3><a name="gtk-range-set-range"></a>gtk_range_set_range ()</h3><a class="indexterm" name="id4295819"></a><pre class="programlisting">void                gtk_range_set_range                 (<a class="link" href="GtkRange.html" title="GtkRange">GtkRange</a> *range,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble">gdouble</a> min,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble">gdouble</a> max);</pre><p>Sets the allowable values in the <a class="link" href="GtkRange.html" title="GtkRange"><span class="type">GtkRange</span></a>, and clamps the rangevalue to be between <em class="parameter"><code>min</code></em> and <em class="parameter"><code>max</code></em>. (If the range has a non-zeropage size, it is clamped between <em class="parameter"><code>min</code></em> and <em class="parameter"><code>max</code></em> - page-size.)</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>range</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkRange.html" title="GtkRange"><span class="type">GtkRange</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>min</code></em>&#160;:</span></p></td><td> minimum range value</td></tr><tr><td><p><span class="term"><em class="parameter"><code>max</code></em>&#160;:</span></p></td><td> maximum range value</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4295952"></a><h3><a name="gtk-range-set-value"></a>gtk_range_set_value ()</h3><a class="indexterm" name="id4295966"></a><pre class="programlisting">void                gtk_range_set_value                 (<a class="link" href="GtkRange.html" title="GtkRange">GtkRange</a> *range,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble">gdouble</a> value);</pre><p>Sets the current value of the range; if the value is outside theminimum or maximum range values, it will be clamped to fit insidethem. The range emits the <a class="link" href="GtkRange.html#GtkRange-value-changed"><span class="type">"value-changed"</span></a> signal if the value changes.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>range</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkRange.html" title="GtkRange"><span class="type">GtkRange</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>value</code></em>&#160;:</span></p></td><td> new value of the range</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4296056"></a><h3><a name="GtkSensitivityType"></a>enum GtkSensitivityType</h3><a class="indexterm" name="id4296069"></a><pre class="programlisting">typedef enum{  GTK_SENSITIVITY_AUTO,  GTK_SENSITIVITY_ON,  GTK_SENSITIVITY_OFF} GtkSensitivityType;</pre>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -