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

📄 gtkadjustment.html

📁 最新gtk中文资料集
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> lower;</td><td>the minimum value.</td></tr><tr><td><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> upper;</td><td>the maximum value.</td></tr><tr><td><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> value;</td><td>the current value.</td></tr><tr><td><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> step_increment;</td><td>the increment to use to make minor changes to the value.In a <a class="link" href="GtkScrollbar.html" title="GtkScrollbar"><span class="type">GtkScrollbar</span></a> this increment is used when the mouse is clicked on thearrows at the top and bottom of the scrollbar, to scroll by a small amount.</td></tr><tr><td><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> page_increment;</td><td>the increment to use to make major changes to the value.In a <a class="link" href="GtkScrollbar.html" title="GtkScrollbar"><span class="type">GtkScrollbar</span></a> this increment is used when the mouse is clicked in thetrough, to scroll by a large amount.</td></tr><tr><td><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> page_size;</td><td>the page size.In a <a class="link" href="GtkScrollbar.html" title="GtkScrollbar"><span class="type">GtkScrollbar</span></a> this is the size of the area which is currently visible.</td></tr></tbody></table></div><p></p></div><hr><div class="refsect2" lang="en"><a name="id4206872"></a><h3><a name="gtk-adjustment-new"></a>gtk_adjustment_new ()</h3><a class="indexterm" name="id4206886"></a><pre class="programlisting"><a class="link" href="GtkObject.html" title="GtkObject">GtkObject</a>*          gtk_adjustment_new                  (<ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble">gdouble</a> value,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble">gdouble</a> lower,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble">gdouble</a> upper,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble">gdouble</a> step_increment,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble">gdouble</a> page_increment,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble">gdouble</a> page_size);</pre><p>Creates a new <a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a>.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>value</code></em>&#160;:</span></p></td><td>the initial value.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>lower</code></em>&#160;:</span></p></td><td>the minimum value.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>upper</code></em>&#160;:</span></p></td><td>the maximum value.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>step_increment</code></em>&#160;:</span></p></td><td>the step increment.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>page_increment</code></em>&#160;:</span></p></td><td>the page increment.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>page_size</code></em>&#160;:</span></p></td><td>the page size.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td>a new <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="id4207066"></a><h3><a name="gtk-adjustment-get-value"></a>gtk_adjustment_get_value ()</h3><a class="indexterm" name="id4207079"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble">gdouble</a>             gtk_adjustment_get_value            (<a class="link" href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a> *adjustment);</pre><p>Gets the current value of the adjustment. See<a class="link" href="GtkAdjustment.html#gtk-adjustment-set-value"><code class="function">gtk_adjustment_set_value()</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>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><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> The current value of the adjustment.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4207160"></a><h3><a name="gtk-adjustment-set-value"></a>gtk_adjustment_set_value ()</h3><a class="indexterm" name="id4207173"></a><pre class="programlisting">void                gtk_adjustment_set_value            (<a class="link" href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a> *adjustment,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble">gdouble</a> value);</pre><p>Sets the <a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a> value. The value is clamped to lie between<code class="literal">adjustment-&gt;lower</code> and<code class="literal">adjustment-&gt;upper</code>.</p><p>Note that for adjustments which are used in a <a class="link" href="GtkScrollbar.html" title="GtkScrollbar"><span class="type">GtkScrollbar</span></a>, the effectiverange of allowed values goes from <code class="literal">adjustment-&gt;lower</code> to<code class="literal">adjustment-&gt;upper - adjustment-&gt;page_size</code>.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><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><tr><td><p><span class="term"><em class="parameter"><code>value</code></em>&#160;:</span></p></td><td>the new value.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4207298"></a><h3><a name="gtk-adjustment-clamp-page"></a>gtk_adjustment_clamp_page ()</h3><a class="indexterm" name="id4207312"></a><pre class="programlisting">void                gtk_adjustment_clamp_page           (<a class="link" href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a> *adjustment,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble">gdouble</a> lower,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble">gdouble</a> upper);</pre><p>Updates the <a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a> <em class="parameter"><code>value</code></em> to ensure that the range between <em class="parameter"><code>lower</code></em>and <em class="parameter"><code>upper</code></em> is in the current page (i.e. between <em class="parameter"><code>value</code></em> and <em class="parameter"><code>value</code></em> +<em class="parameter"><code>page_size</code></em>).If the range is larger than the page size, then only the start of it willbe in the current page.A "changed" signal will be emitted if the value is changed.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><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><tr><td><p><span class="term"><em class="parameter"><code>lower</code></em>&#160;:</span></p></td><td>the lower value.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>upper</code></em>&#160;:</span></p></td>

⌨️ 快捷键说明

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