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

📄 gtkbox.html

📁 最新gtk中文资料集
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<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 be added to <em class="parameter"><code>box</code></em></td></tr><tr><td><p><span class="term"><em class="parameter"><code>expand</code></em>&#160;:</span></p></td><td> <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the new child is to be given extra space allocated   to <em class="parameter"><code>box</code></em>. The extra space will be divided evenly between all children   of <em class="parameter"><code>box</code></em> that use this option</td></tr><tr><td><p><span class="term"><em class="parameter"><code>fill</code></em>&#160;:</span></p></td><td> <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if space given to <em class="parameter"><code>child</code></em> by the <em class="parameter"><code>expand</code></em> option is  actually allocated to <em class="parameter"><code>child</code></em>, rather than just padding it.  This  parameter has no effect if <em class="parameter"><code>expand</code></em> is set to <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>.  A child is  always allocated the full height of a <a class="link" href="GtkHBox.html" title="GtkHBox"><span class="type">GtkHBox</span></a> and the full width   of a <a class="link" href="GtkVBox.html" title="GtkVBox"><span class="type">GtkVBox</span></a>.  This option affects the other dimension</td></tr><tr><td><p><span class="term"><em class="parameter"><code>padding</code></em>&#160;:</span></p></td><td> extra space in pixels to put between this child and its  neighbors, over and above the global amount specified by  <a class="link" href="GtkBox.html#GtkBox--spacing"><span class="type">"spacing"</span></a> property.  If <em class="parameter"><code>child</code></em> is a widget at one of the   reference ends of <em class="parameter"><code>box</code></em>, then <em class="parameter"><code>padding</code></em> pixels are also put between   <em class="parameter"><code>child</code></em> and the reference edge of <em class="parameter"><code>box</code></em></td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4240918"></a><h3><a name="gtk-box-pack-start-defaults"></a>gtk_box_pack_start_defaults ()</h3><a class="indexterm" name="id4240932"></a><pre class="programlisting">void                gtk_box_pack_start_defaults         (<a class="link" href="GtkBox.html" title="GtkBox">GtkBox</a> *box,                                                         <a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);</pre><p>Adds <em class="parameter"><code>widget</code></em> to <em class="parameter"><code>box</code></em>, packed with reference to the start of <em class="parameter"><code>box</code></em>.The child is packed after any other child packed with reference to the start of <em class="parameter"><code>box</code></em>. </p><p>Parameters for how to pack the child <em class="parameter"><code>widget</code></em>, <a class="link" href="GtkBox.html#GtkBox--expand"><span class="type">"expand"</span></a>, <a class="link" href="GtkBox.html#GtkBox--fill"><span class="type">"fill"</span></a> and <a class="link" href="GtkBox.html#GtkBox--padding"><span class="type">"padding"</span></a>, are given their defaultvalues, <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, and 0, respectively.</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>widget</code></em>&#160;:</span></p></td><td> the <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> to be added to <em class="parameter"><code>box</code></em></td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4241104"></a><h3><a name="gtk-box-pack-end-defaults"></a>gtk_box_pack_end_defaults ()</h3><a class="indexterm" name="id4241118"></a><pre class="programlisting">void                gtk_box_pack_end_defaults           (<a class="link" href="GtkBox.html" title="GtkBox">GtkBox</a> *box,                                                         <a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);</pre><p>Adds <em class="parameter"><code>widget</code></em> to <em class="parameter"><code>box</code></em>, packed with reference to the end of <em class="parameter"><code>box</code></em>.The child is packed after any other child packed with reference to the start of <em class="parameter"><code>box</code></em>. </p><p>Parameters for how to pack the child <em class="parameter"><code>widget</code></em>, <a class="link" href="GtkBox.html#GtkBox--expand"><span class="type">"expand"</span></a>, <a class="link" href="GtkBox.html#GtkBox--fill"><span class="type">"fill"</span></a> and <a class="link" href="GtkBox.html#GtkBox--padding"><span class="type">"padding"</span></a>, are given their defaultvalues, <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, and 0, respectively.</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>widget</code></em>&#160;:</span></p></td><td> the <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> to be added to <em class="parameter"><code>box</code></em></td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4241290"></a><h3><a name="gtk-box-get-homogeneous"></a>gtk_box_get_homogeneous ()</h3><a class="indexterm" name="id4241303"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>            gtk_box_get_homogeneous             (<a class="link" href="GtkBox.html" title="GtkBox">GtkBox</a> *box);</pre><p>Returns whether the box is homogeneous (all children are thesame size). See <a class="link" href="GtkBox.html#gtk-box-set-homogeneous"><code class="function">gtk_box_set_homogeneous()</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>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"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the box is homogeneous.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4241393"></a><h3><a name="gtk-box-set-homogeneous"></a>gtk_box_set_homogeneous ()</h3><a class="indexterm" name="id4241406"></a><pre class="programlisting">void                gtk_box_set_homogeneous             (<a class="link" href="GtkBox.html" title="GtkBox">GtkBox</a> *box,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> homogeneous);</pre><p>Sets the <a class="link" href="GtkBox.html#GtkBox--homogeneous"><span class="type">"homogeneous"</span></a> property of <em class="parameter"><code>box</code></em>, controlling whether or not all children of <em class="parameter"><code>box</code></em> are given equal space in the box.</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>homogeneous</code></em>&#160;:</span></p></td><td> a boolean value, <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> to create equal allotments,  <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> for variable allotments</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4241528"></a><h3><a name="gtk-box-get-spacing"></a>gtk_box_get_spacing ()</h3><a class="indexterm" name="id4241541"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a>                gtk_box_get_spacing                 (<a class="link" href="GtkBox.html" title="GtkBox">GtkBox</a> *box);</pre><p>Gets the value set by <a class="link" href="GtkBox.html#gtk-box-set-spacing"><code class="function">gtk_box_set_spacing()</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>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"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> spacing between children</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4241619"></a><h3><a name="gtk-box-set-spacing"></a>gtk_box_set_spacing ()</h3><a class="indexterm" name="id4241633"></a><pre class="programlisting">void                gtk_box_set_spacing                 (<a class="link" href="GtkBox.html" title="GtkBox">GtkBox</a> *box,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> spacing);</pre><p>Sets the <a class="link" href="GtkBox.html#GtkBox--spacing"><span class="type">"spacing"</span></a> property of <em class="parameter"><code>box</code></em>, which is the number of pixels to place between children of <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>spacing</code></em>&#160;:</span></p></td><td> the number of pixels to put between children</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4241732"></a><h3><a name="gtk-box-reorder-child"></a>gtk_box_reorder_child ()</h3><a class="indexterm" name="id4241745"></a><pre class="programlisting">void                gtk_box_reorder_child               (<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#gint">gint</a> position);</pre><p>Moves <em class="parameter"><code>child</code></em> to a new <em class="parameter"><code>position</code></em> in the list of <em class="parameter"><code>box</code></em> children.  The list is the <em class="structfield"><code>children</code></em> field of<a class="link" href="GtkBox.html#GtkBox-struct"><span class="type">GtkBox</span></a>, and contains both widgets packed <a class="link" href="gtk-Standard-Enumerations.html#GTK-PACK-START:CAPS"><span class="type">GTK_PACK_START</span></a> as well as widgets packed <a class="link" href="gtk-Standard-Enumerations.html#GTK-PACK-END:CAPS"><span class="type">GTK_PACK_END</span></a>, in the order that these widgets were added to <em class="parameter"><code>box</code></em>.</p><p>A widget's position in the <em class="parameter"><code>box</code></em> children list determines where the widget is packed into <em class="parameter"><code>box</code></em>.  A child widget at some position in the list will be packed just after all other widgets of the 

⌨️ 快捷键说明

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