📄 gtkcontainer.html
字号:
<p>Retrieves the vertical focus adjustment for the container. See<a class="link" href="GtkContainer.html#gtk-container-set-focus-vadjustment"><code class="function">gtk_container_set_focus_vadjustment()</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>container</code></em> :</span></p></td><td> a <a class="link" href="GtkContainer.html" title="GtkContainer"><span class="type">GtkContainer</span></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> the vertical focus adjustment, or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> if none has been set.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4255821"></a><h3><a name="gtk-container-set-focus-vadjustment"></a>gtk_container_set_focus_vadjustment ()</h3><a class="indexterm" name="id4255835"></a><pre class="programlisting">void gtk_container_set_focus_vadjustment (<a class="link" href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container, <a class="link" href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a> *adjustment);</pre><p>Hooks up an adjustment to focus handling in a container, so when a child of the container is focused, the adjustment is scrolled to show that widget. This function sets the vertical alignment. See <a class="link" href="GtkScrolledWindow.html#gtk-scrolled-window-get-vadjustment"><code class="function">gtk_scrolled_window_get_vadjustment()</code></a> for a typical way of obtaining the adjustment and <a class="link" href="GtkContainer.html#gtk-container-set-focus-hadjustment"><code class="function">gtk_container_set_focus_hadjustment()</code></a> for settingthe horizontal adjustment.</p><p>The adjustments have to be in pixel units and in the same coordinate system as the allocation for immediate children of the container.</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>container</code></em> :</span></p></td><td> a <a class="link" href="GtkContainer.html" title="GtkContainer"><span class="type">GtkContainer</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>adjustment</code></em> :</span></p></td><td> an adjustment which should be adjusted when the focus is moved among the descendents of <em class="parameter"><code>container</code></em></td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4255956"></a><h3><a name="gtk-container-get-focus-hadjustment"></a>gtk_container_get_focus_hadjustment ()</h3><a class="indexterm" name="id4255970"></a><pre class="programlisting"><a class="link" href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a>* gtk_container_get_focus_hadjustment (<a class="link" href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container);</pre><p>Retrieves the horizontal focus adjustment for the container. See<a class="link" href="GtkContainer.html#gtk-container-set-focus-hadjustment"><code class="function">gtk_container_set_focus_hadjustment()</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>container</code></em> :</span></p></td><td> a <a class="link" href="GtkContainer.html" title="GtkContainer"><span class="type">GtkContainer</span></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> the horizontal focus adjustment, or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> if none has been set.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4256063"></a><h3><a name="gtk-container-set-focus-hadjustment"></a>gtk_container_set_focus_hadjustment ()</h3><a class="indexterm" name="id4256077"></a><pre class="programlisting">void gtk_container_set_focus_hadjustment (<a class="link" href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container, <a class="link" href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a> *adjustment);</pre><p>Hooks up an adjustment to focus handling in a container, so when a child of the container is focused, the adjustment is scrolled to show that widget. This function sets the horizontal alignment. See <a class="link" href="GtkScrolledWindow.html#gtk-scrolled-window-get-hadjustment"><code class="function">gtk_scrolled_window_get_hadjustment()</code></a> for a typical way of obtaining the adjustment and <a class="link" href="GtkContainer.html#gtk-container-set-focus-vadjustment"><code class="function">gtk_container_set_focus_vadjustment()</code></a> for settingthe vertical adjustment.</p><p>The adjustments have to be in pixel units and in the same coordinate system as the allocation for immediate children of the container.</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>container</code></em> :</span></p></td><td> a <a class="link" href="GtkContainer.html" title="GtkContainer"><span class="type">GtkContainer</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>adjustment</code></em> :</span></p></td><td> an adjustment which should be adjusted when the focus is moved among the descendents of <em class="parameter"><code>container</code></em></td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4256198"></a><h3><a name="gtk-container-resize-children"></a>gtk_container_resize_children ()</h3><a class="indexterm" name="id4256211"></a><pre class="programlisting">void gtk_container_resize_children (<a class="link" href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container);</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>container</code></em> :</span></p></td><td></td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4256258"></a><h3><a name="gtk-container-child-type"></a>gtk_container_child_type ()</h3><a class="indexterm" name="id4256271"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#GType">GType</a> gtk_container_child_type (<a class="link" href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container);</pre><p>Returns the type of the children supported by the container.</p><p>Note that this may return <ahref="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#G-TYPE-NONE:CAPS"><code class="literal">G_TYPE_NONE</code></a> to indicate that no morechildren can be added, e.g. for a <a class="link" href="GtkPaned.html" title="GtkPaned"><span class="type">GtkPaned</span></a> which already has two children.</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>container</code></em> :</span></p></td><td> a <a class="link" href="GtkContainer.html" title="GtkContainer"><span class="type">GtkContainer</span></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> a <ahref="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#GType"><span class="type">GType</span></a>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4256372"></a><h3><a name="gtk-container-child-get"></a>gtk_container_child_get ()</h3><a class="indexterm" name="id4256385"></a><pre class="programlisting">void gtk_container_child_get (<a class="link" href="GtkContainer.html" title="GtkContainer">GtkContainer</a> *container, <a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *child, const <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar">gchar</a> *first_prop_name, ...);</pre><p>Gets the values of one or more child properties for <em class="parameter"><code>child</code></em> and <em class="parameter"><code>container</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>container</code></em> :</span></p></td><td> a <a class="link" href="GtkContainer.html" title="GtkContainer"><span class="type">GtkContainer</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>child</code></em> :</span></p></td><td> a widget which is a child of <em class="parameter"><code>container</code></em></td></tr><tr><td><p><span class="term"><em class="parameter"><code>first_prop_name</code></em> :</span></p></td><td> the name of the first property to get</td></tr><tr><td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td><td> a <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated list of
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -