gtkscrolledwindow.html
来自「最新gtk中文资料集」· HTML 代码 · 共 948 行 · 第 1/4 页
HTML
948 行
with native scrolling support should not be used with the <a class="link" href="GtkViewport.html" title="GtkViewport"><span class="type">GtkViewport</span></a> proxy.</p><p>A widget supports scrolling natively if theset_scroll_adjustments_signal field in <a class="link" href="GtkWidget.html#GtkWidgetClass"><span class="type">GtkWidgetClass</span></a> is non-zero,i.e. has been filled in with a valid signal identifier.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>scrolled_window</code></em> :</span></p></td><td>A <a class="link" href="GtkScrolledWindow.html" title="GtkScrolledWindow"><span class="type">GtkScrolledWindow</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>child</code></em> :</span></p></td><td>Widget you want to scroll.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4122429"></a><h3><a name="gtk-scrolled-window-set-placement"></a>gtk_scrolled_window_set_placement ()</h3><a class="indexterm" name="id4122444"></a><pre class="programlisting">void gtk_scrolled_window_set_placement (<a class="link" href="GtkScrolledWindow.html" title="GtkScrolledWindow">GtkScrolledWindow</a> *scrolled_window, <a class="link" href="gtk-Standard-Enumerations.html#GtkCornerType">GtkCornerType</a> window_placement);</pre><p>Sets the placement of the contents with respect to the scrollbarsfor the scrolled window.The default is <a class="link" href="gtk-Standard-Enumerations.html#GTK-CORNER-TOP-LEFT:CAPS"><code class="literal">GTK_CORNER_TOP_LEFT</code></a>, meaning the child isin the top left, with the scrollbars underneath and to the right.Other values in <a class="link" href="gtk-Standard-Enumerations.html#GtkCornerType"><span class="type">GtkCornerType</span></a> are <a class="link" href="gtk-Standard-Enumerations.html#GTK-CORNER-TOP-RIGHT:CAPS"><code class="literal">GTK_CORNER_TOP_RIGHT</code></a>,<a class="link" href="gtk-Standard-Enumerations.html#GTK-CORNER-BOTTOM-LEFT:CAPS"><code class="literal">GTK_CORNER_BOTTOM_LEFT</code></a>, and <a class="link" href="gtk-Standard-Enumerations.html#GTK-CORNER-BOTTOM-RIGHT:CAPS"><code class="literal">GTK_CORNER_BOTTOM_RIGHT</code></a>.</p><p>See also <a class="link" href="GtkScrolledWindow.html#gtk-scrolled-window-get-placement"><code class="function">gtk_scrolled_window_get_placement()</code></a> and<a class="link" href="GtkScrolledWindow.html#gtk-scrolled-window-unset-placement"><code class="function">gtk_scrolled_window_unset_placement()</code></a>.</p><p>Determines the location of the child widget with respect to thescrollbars. The default is <a class="link" href="gtk-Standard-Enumerations.html#GTK-CORNER-TOP-LEFT:CAPS"><code class="literal">GTK_CORNER_TOP_LEFT</code></a>, meaning the child isin the top left, with the scrollbars underneath and to the right.Other values in <a class="link" href="gtk-Standard-Enumerations.html#GtkCornerType"><span class="type">GtkCornerType</span></a> are <a class="link" href="gtk-Standard-Enumerations.html#GTK-CORNER-TOP-RIGHT:CAPS"><code class="literal">GTK_CORNER_TOP_RIGHT</code></a>,<a class="link" href="gtk-Standard-Enumerations.html#GTK-CORNER-BOTTOM-LEFT:CAPS"><code class="literal">GTK_CORNER_BOTTOM_LEFT</code></a>, and <a class="link" href="gtk-Standard-Enumerations.html#GTK-CORNER-BOTTOM-RIGHT:CAPS"><code class="literal">GTK_CORNER_BOTTOM_RIGHT</code></a>.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>scrolled_window</code></em> :</span></p></td><td> a <a class="link" href="GtkScrolledWindow.html" title="GtkScrolledWindow"><span class="type">GtkScrolledWindow</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>window_placement</code></em> :</span></p></td><td> position of the child window</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4122666"></a><h3><a name="gtk-scrolled-window-unset-placement"></a>gtk_scrolled_window_unset_placement ()</h3><a class="indexterm" name="id4122683"></a><pre class="programlisting">void gtk_scrolled_window_unset_placement (<a class="link" href="GtkScrolledWindow.html" title="GtkScrolledWindow">GtkScrolledWindow</a> *scrolled_window);</pre><p>Unsets the placement of the contents with respect to the scrollbarsfor the scrolled window. If no window placement is set for a scrolledwindow, it obeys the "gtk-scrolled-window-placement" XSETTING.</p><p>See also <a class="link" href="GtkScrolledWindow.html#gtk-scrolled-window-set-placement"><code class="function">gtk_scrolled_window_set_placement()</code></a> and<a class="link" href="GtkScrolledWindow.html#gtk-scrolled-window-get-placement"><code class="function">gtk_scrolled_window_get_placement()</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>scrolled_window</code></em> :</span></p></td><td> a <a class="link" href="GtkScrolledWindow.html" title="GtkScrolledWindow"><span class="type">GtkScrolledWindow</span></a></td></tr></tbody></table></div><p class="since">Since 2.10</p></div><hr><div class="refsect2" lang="en"><a name="id4122778"></a><h3><a name="gtk-scrolled-window-set-shadow-type"></a>gtk_scrolled_window_set_shadow_type ()</h3><a class="indexterm" name="id4122792"></a><pre class="programlisting">void gtk_scrolled_window_set_shadow_type (<a class="link" href="GtkScrolledWindow.html" title="GtkScrolledWindow">GtkScrolledWindow</a> *scrolled_window, <a class="link" href="gtk-Standard-Enumerations.html#GtkShadowType">GtkShadowType</a> type);</pre><p>Changes the type of shadow drawn around the contents of<em class="parameter"><code>scrolled_window</code></em>.</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>scrolled_window</code></em> :</span></p></td><td> a <a class="link" href="GtkScrolledWindow.html" title="GtkScrolledWindow"><span class="type">GtkScrolledWindow</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td><td> kind of shadow to draw around scrolled window contents</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4122880"></a><h3><a name="gtk-scrolled-window-set-hadjustment"></a>gtk_scrolled_window_set_hadjustment ()</h3><a class="indexterm" name="id4122894"></a><pre class="programlisting">void gtk_scrolled_window_set_hadjustment (<a class="link" href="GtkScrolledWindow.html" title="GtkScrolledWindow">GtkScrolledWindow</a> *scrolled_window, <a class="link" href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a> *hadjustment);</pre><p>Sets the <a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a> for the horizontal scrollbar.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>scrolled_window</code></em> :</span></p></td><td>A <a class="link" href="GtkScrolledWindow.html" title="GtkScrolledWindow"><span class="type">GtkScrolledWindow</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>hadjustment</code></em> :</span></p></td><td>Horizontal scroll adjustment.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4122980"></a><h3><a name="gtk-scrolled-window-set-vadjustment"></a>gtk_scrolled_window_set_vadjustment ()</h3><a class="indexterm" name="id4122995"></a><pre class="programlisting">void gtk_scrolled_window_set_vadjustment (<a class="link" href="GtkScrolledWindow.html" title="GtkScrolledWindow">GtkScrolledWindow</a> *scrolled_window, <a class="link" href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a> *vadjustment);</pre><p>Sets the <a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a> for the vertical scrollbar.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>scrolled_window</code></em> :</span></p></td><td>A <a class="link" href="GtkScrolledWindow.html" title="GtkScrolledWindow"><span class="type">GtkScrolledWindow</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>vadjustment</code></em> :</span></p></td><td>Vertical scroll adjustment.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4123081"></a><h3><a name="gtk-scrolled-window-get-placement"></a>gtk_scrolled_window_get_placement ()</h3><a class="indexterm" name="id4123096"></a><pre class="programlisting"><a class="link" href="gtk-Standard-Enumerations.html#GtkCornerType">GtkCornerType</a> gtk_scrolled_window_get_placement (<a class="link" href="GtkScrolledWindow.html" title="GtkScrolledWindow">GtkScrolledWindow</a> *scrolled_window);</pre><p>Gets the placement of the contents with respect to the scrollbarsfor the scrolled window. See <a class="link" href="GtkScrolledWindow.html#gtk-scrolled-window-set-placement"><code class="function">gtk_scrolled_window_set_placement()</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>scrolled_window</code></em> :</span></p></td><td> a <a class="link" href="GtkScrolledWindow.html" title="GtkScrolledWindow"><span class="type">GtkScrolledWindow</span></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> the current placement value.See also <a class="link" href="GtkScrolledWindow.html#gtk-scrolled-window-set-placement"><code class="function">gtk_scrolled_window_set_placement()</code></a> and<a class="link" href="GtkScrolledWindow.html#gtk-scrolled-window-unset-placement"><code class="function">gtk_scrolled_window_unset_placement()</code></a>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4123201"></a><h3><a name="gtk-scrolled-window-get-policy"></a>gtk_scrolled_window_get_policy ()</h3><a class="indexterm" name="id4123214"></a><pre class="programlisting">void gtk_scrolled_window_get_policy (<a class="link" href="GtkScrolledWindow.html" title="GtkScrolledWindow">GtkScrolledWindow</a> *scrolled_window, <a class="link" href="gtk-Standard-Enumerations.html#GtkPolicyType">GtkPolicyType</a> *hscrollbar_policy, <a class="link" href="gtk-Standard-Enumerations.html#GtkPolicyType">GtkPolicyType</a> *vscrollbar_policy);</pre><p>Retrieves the current policy values for the horizontal and verticalscrollbars. See <a class="link" href="GtkScrolledWindow.html#gtk-scrolled-window-set-policy"><code class="function">gtk_scrolled_window_set_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>scrolled_window</code></em> :</span></p></td><td> a <a class="link" href="GtkScrolledWindow.html" title="GtkScrolledWindow"><span class="type">GtkScrolledWindow</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>hscrollbar_policy</code></em> :</span></p></td><td> location to store the policy for the horizontal scrollbar, or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>vscrollbar_policy</code></em> :</span></p></td><td> location to store the policy for the horizontal scrollbar, or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?