📄 gtkviewport.html
字号:
</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> the horizontal adjustment of <em class="parameter"><code>viewport</code></em>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4234965"></a><h3><a name="gtk-viewport-get-vadjustment"></a>gtk_viewport_get_vadjustment ()</h3><a class="indexterm" name="id4234979"></a><pre class="programlisting"><a class="link" href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a>* gtk_viewport_get_vadjustment (<a class="link" href="GtkViewport.html" title="GtkViewport">GtkViewport</a> *viewport);</pre><p>Returns the vertical adjustment of the viewport.</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>viewport</code></em> :</span></p></td><td> a <a class="link" href="GtkViewport.html" title="GtkViewport"><span class="type">GtkViewport</span></a>.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> the vertical adjustment of <em class="parameter"><code>viewport</code></em>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4235054"></a><h3><a name="gtk-viewport-set-hadjustment"></a>gtk_viewport_set_hadjustment ()</h3><a class="indexterm" name="id4235068"></a><pre class="programlisting">void gtk_viewport_set_hadjustment (<a class="link" href="GtkViewport.html" title="GtkViewport">GtkViewport</a> *viewport, <a class="link" href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a> *adjustment);</pre><p>Sets the horizontal adjustment of the viewport.</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>viewport</code></em> :</span></p></td><td> a <a class="link" href="GtkViewport.html" title="GtkViewport"><span class="type">GtkViewport</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>adjustment</code></em> :</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="id4235156"></a><h3><a name="gtk-viewport-set-vadjustment"></a>gtk_viewport_set_vadjustment ()</h3><a class="indexterm" name="id4235170"></a><pre class="programlisting">void gtk_viewport_set_vadjustment (<a class="link" href="GtkViewport.html" title="GtkViewport">GtkViewport</a> *viewport, <a class="link" href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a> *adjustment);</pre><p>Sets the vertical adjustment of the viewport.</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>viewport</code></em> :</span></p></td><td> a <a class="link" href="GtkViewport.html" title="GtkViewport"><span class="type">GtkViewport</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>adjustment</code></em> :</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="id4235258"></a><h3><a name="gtk-viewport-set-shadow-type"></a>gtk_viewport_set_shadow_type ()</h3><a class="indexterm" name="id4235272"></a><pre class="programlisting">void gtk_viewport_set_shadow_type (<a class="link" href="GtkViewport.html" title="GtkViewport">GtkViewport</a> *viewport, <a class="link" href="gtk-Standard-Enumerations.html#GtkShadowType">GtkShadowType</a> type);</pre><p>Sets the shadow type of the viewport.</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>viewport</code></em> :</span></p></td><td> a <a class="link" href="GtkViewport.html" title="GtkViewport"><span class="type">GtkViewport</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td><td> the new shadow type.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4235352"></a><h3><a name="gtk-viewport-get-shadow-type"></a>gtk_viewport_get_shadow_type ()</h3><a class="indexterm" name="id4235366"></a><pre class="programlisting"><a class="link" href="gtk-Standard-Enumerations.html#GtkShadowType">GtkShadowType</a> gtk_viewport_get_shadow_type (<a class="link" href="GtkViewport.html" title="GtkViewport">GtkViewport</a> *viewport);</pre><p>Gets the shadow type of the <a class="link" href="GtkViewport.html" title="GtkViewport"><span class="type">GtkViewport</span></a>. See<a class="link" href="GtkViewport.html#gtk-viewport-set-shadow-type"><code class="function">gtk_viewport_set_shadow_type()</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>viewport</code></em> :</span></p></td><td> a <a class="link" href="GtkViewport.html" title="GtkViewport"><span class="type">GtkViewport</span></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> the shadow type </td></tr></tbody></table></div></div></div><div class="refsect1" lang="en"><a name="id4235455"></a><h2>Property Details</h2><div class="refsect2" lang="en"><a name="id4235466"></a><h3><a name="GtkViewport--hadjustment"></a>The <code class="literal">"hadjustment"</code> property</h3><a class="indexterm" name="id4235482"></a><pre class="programlisting"> "hadjustment" <a class="link" href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a> : Read / Write / Construct</pre><p>The GtkAdjustment that determines the values of the horizontal position for this viewport.</p></div><hr><div class="refsect2" lang="en"><a name="id4235507"></a><h3><a name="GtkViewport--shadow-type"></a>The <code class="literal">"shadow-type"</code> property</h3><a class="indexterm" name="id4235523"></a><pre class="programlisting"> "shadow-type" <a class="link" href="gtk-Standard-Enumerations.html#GtkShadowType">GtkShadowType</a> : Read / Write</pre><p>Determines how the shadowed box around the viewport is drawn.</p><p>Default value: GTK_SHADOW_IN</p></div><hr><div class="refsect2" lang="en"><a name="id4235551"></a><h3><a name="GtkViewport--vadjustment"></a>The <code class="literal">"vadjustment"</code> property</h3><a class="indexterm" name="id4235568"></a><pre class="programlisting"> "vadjustment" <a class="link" href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a> : Read / Write / Construct</pre><p>The GtkAdjustment that determines the values of the vertical position for this viewport.</p></div></div><div class="refsect1" lang="en"><a name="id4235593"></a><h2>Signal Details</h2><div class="refsect2" lang="en"><a name="id4235604"></a><h3><a name="GtkViewport-set-scroll-adjustments"></a>The <code class="literal">"set-scroll-adjustments"</code> signal</h3><a class="indexterm" name="id4235621"></a><pre class="programlisting">void user_function (<a class="link" href="GtkViewport.html" title="GtkViewport">GtkViewport</a> *viewport, <a class="link" href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a> *arg1, <a class="link" href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a> *arg2, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer">gpointer</a> user_data) : Run Last / Action</pre><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>viewport</code></em> :</span></p></td><td>the object which received the signal.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>arg1</code></em> :</span></p></td><td></td></tr><tr><td><p><span class="term"><em class="parameter"><code>arg2</code></em> :</span></p></td><td></td></tr><tr><td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td><td>user data set when the signal handler was connected.</td></tr></tbody></table></div></div></div><div class="refsect1" lang="en"><a name="id4235735"></a><div class="refsect2" lang="en"><a name="id4235736"></a></div><hr><div class="refsect2" lang="en"><a name="id4235737"></a></div></div></div></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -