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

📄 gtkbox.html

📁 最新gtk中文资料集
💻 HTML
📖 第 1 页 / 共 4 页
字号:
same packing type that appear earlier in the list.</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>box</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkBox.html" title="GtkBox"><span class="type">GtkBox</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>child</code></em>&#160;:</span></p></td><td> the <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> to move</td></tr><tr><td><p><span class="term"><em class="parameter"><code>position</code></em>&#160;:</span></p></td><td> the new position for <em class="parameter"><code>child</code></em> in the list of children   of <em class="parameter"><code>box</code></em>, starting from 0. If negative, indicates the end of   the list</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4241941"></a><h3><a name="gtk-box-query-child-packing"></a>gtk_box_query_child_packing ()</h3><a class="indexterm" name="id4241955"></a><pre class="programlisting">void                gtk_box_query_child_packing         (<a class="link" href="GtkBox.html" title="GtkBox">GtkBox</a> *box,                                                         <a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *child,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> *expand,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> *fill,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint">guint</a> *padding,                                                         <a class="link" href="gtk-Standard-Enumerations.html#GtkPackType">GtkPackType</a> *pack_type);</pre><p>Obtains information about how <em class="parameter"><code>child</code></em> is packed into <em class="parameter"><code>box</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>box</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkBox.html" title="GtkBox"><span class="type">GtkBox</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>child</code></em>&#160;:</span></p></td><td> the <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> of the child to query</td></tr><tr><td><p><span class="term"><em class="parameter"><code>expand</code></em>&#160;:</span></p></td><td> pointer to return location for <a class="link" href="GtkBox.html#GtkBox--expand"><span class="type">"expand"</span></a> child property </td></tr><tr><td><p><span class="term"><em class="parameter"><code>fill</code></em>&#160;:</span></p></td><td> pointer to return location for <a class="link" href="GtkBox.html#GtkBox--fill"><span class="type">"fill"</span></a> child property </td></tr><tr><td><p><span class="term"><em class="parameter"><code>padding</code></em>&#160;:</span></p></td><td> pointer to return location for <a class="link" href="GtkBox.html#GtkBox--padding"><span class="type">"padding"</span></a> child property </td></tr><tr><td><p><span class="term"><em class="parameter"><code>pack_type</code></em>&#160;:</span></p></td><td> pointer to return location for <a class="link" href="GtkBox.html#GtkBox--pack-type"><span class="type">"pack-type"</span></a> child property </td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4242176"></a><h3><a name="gtk-box-set-child-packing"></a>gtk_box_set_child_packing ()</h3><a class="indexterm" name="id4242190"></a><pre class="programlisting">void                gtk_box_set_child_packing           (<a class="link" href="GtkBox.html" title="GtkBox">GtkBox</a> *box,                                                         <a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *child,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> expand,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> fill,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint">guint</a> padding,                                                         <a class="link" href="gtk-Standard-Enumerations.html#GtkPackType">GtkPackType</a> pack_type);</pre><p>Sets the way <em class="parameter"><code>child</code></em> is packed into <em class="parameter"><code>box</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>box</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkBox.html" title="GtkBox"><span class="type">GtkBox</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>child</code></em>&#160;:</span></p></td><td> the <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> of the child to set</td></tr><tr><td><p><span class="term"><em class="parameter"><code>expand</code></em>&#160;:</span></p></td><td> the new value of the <a class="link" href="GtkBox.html#GtkBox--expand"><span class="type">"expand"</span></a> child property </td></tr><tr><td><p><span class="term"><em class="parameter"><code>fill</code></em>&#160;:</span></p></td><td> the new value of the <a class="link" href="GtkBox.html#GtkBox--fill"><span class="type">"fill"</span></a> child property</td></tr><tr><td><p><span class="term"><em class="parameter"><code>padding</code></em>&#160;:</span></p></td><td> the new value of the <a class="link" href="GtkBox.html#GtkBox--padding"><span class="type">"padding"</span></a> child property</td></tr><tr><td><p><span class="term"><em class="parameter"><code>pack_type</code></em>&#160;:</span></p></td><td> the new value of the <a class="link" href="GtkBox.html#GtkBox--pack-type"><span class="type">"pack-type"</span></a> child property</td></tr></tbody></table></div></div></div><div class="refsect1" lang="en"><a name="id4242410"></a><h2>Property Details</h2><div class="refsect2" lang="en"><a name="id4242421"></a><h3><a name="GtkBox--homogeneous"></a>The <code class="literal">"homogeneous"</code> property</h3><a class="indexterm" name="id4242437"></a><pre class="programlisting">  "homogeneous"              <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>              : Read / Write</pre><p>Whether the children should all be the same size.</p><p>Default value: FALSE</p></div><hr><div class="refsect2" lang="en"><a name="id4242464"></a><h3><a name="GtkBox--spacing"></a>The <code class="literal">"spacing"</code> property</h3><a class="indexterm" name="id4242480"></a><pre class="programlisting">  "spacing"                  <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a>                  : Read / Write</pre><p>The amount of space between children.</p><p>Allowed values: &gt;= 0</p><p>Default value: 0</p></div></div><div class="refsect1" lang="en"><a name="id4242511"></a><h2>Child Property Details</h2><div class="refsect2" lang="en"><a name="id4242522"></a><h3><a name="GtkBox--expand"></a>The <code class="literal">"expand"</code> child property</h3><a class="indexterm" name="id4242538"></a><pre class="programlisting">  "expand"                   <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>              : Read / Write</pre><p>Whether the child should receive extra space when the parent grows.</p><p>Default value: TRUE</p></div><hr><div class="refsect2" lang="en"><a name="id4242566"></a><h3><a name="GtkBox--fill"></a>The <code class="literal">"fill"</code> child property</h3><a class="indexterm" name="id4242582"></a><pre class="programlisting">  "fill"                     <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>              : Read / Write</pre><p>Whether extra space given to the child should be allocated to the child or used as padding.</p><p>Default value: TRUE</p></div><hr><div class="refsect2" lang="en"><a name="id4242610"></a><h3><a name="GtkBox--pack-type"></a>The <code class="literal">"pack-type"</code> child property</h3><a class="indexterm" name="id4242626"></a><pre class="programlisting">  "pack-type"                <a class="link" href="gtk-Standard-Enumerations.html#GtkPackType">GtkPackType</a>           : Read / Write</pre><p>A GtkPackType indicating whether the child is packed with reference to the start or end of the parent.</p><p>Default value: GTK_PACK_START</p></div><hr><div class="refsect2" lang="en"><a name="id4242654"></a><h3><a name="GtkBox--padding"></a>The <code class="literal">"padding"</code> child property</h3><a class="indexterm" name="id4242670"></a><pre class="programlisting">  "padding"                  <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint">guint</a>                 : Read / Write</pre><p>Extra space to put between the child and its neighbors, in pixels.</p><p>Allowed values: &lt;= G_MAXINT</p><p>Default value: 0</p></div><hr><div class="refsect2" lang="en"><a name="id4242701"></a><h3><a name="GtkBox--position"></a>The <code class="literal">"position"</code> child property</h3><a class="indexterm" name="id4242717"></a><pre class="programlisting">  "position"                 <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a>                  : Read / Write</pre><p>The index of the child in the parent.</p><p>Allowed values: &gt;= -1</p><p>Default value: 0</p></div></div><div class="refsect1" lang="en"><a name="id4242749"></a><h2>See Also</h2><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><a class="link" href="GtkHBox.html" title="GtkHBox"><span class="type">GtkHBox</span></a></span></p></td><td><p>a derived class that organizes widgets into a row.</p></td></tr><tr><td><p><span class="term"><a class="link" href="GtkVBox.html" title="GtkVBox"><span class="type">GtkVBox</span></a></span></p></td><td><p>a derived class that organizes widgets into a column.</p></td></tr><tr><td><p><span class="term"><a class="link" href="GtkFrame.html" title="GtkFrame"><span class="type">GtkFrame</span></a></span></p></td><td><p>a <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> useful for drawing a border around a GtkBox.</p></td></tr><tr><td><p><span class="term"><a class="link" href="GtkTable.html" title="GtkTable"><span class="type">GtkTable</span></a></span></p></td><td><p>a <a class="link" href="GtkContainer.html" title="GtkContainer"><span class="type">GtkContainer</span></a> for organizing widgets into a grid,rather than independent rows or columns.</p></td></tr><tr><td><p><span class="term"><a class="link" href="GtkLayout.html" title="GtkLayout"><span class="type">GtkLayout</span></a></span></p></td><td><p>a <a class="link" href="GtkContainer.html" title="GtkContainer"><span class="type">GtkContainer</span></a> for organizing widgets into arbitrarylayouts.</p></td></tr></tbody></table></div><p></p></div><div class="refsect1" lang="en"><a name="id4242873"></a><div class="refsect2" lang="en"><a name="id4242874"></a></div><hr><div class="refsect2" lang="en"><a name="id4242875"></a></div></div></div></body></html>

⌨️ 快捷键说明

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