📄 gtksizegroup.html
字号:
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>mode</code></em> :</span></p></td><td> the mode for the new size group.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> a newly created <a class="link" href="GtkSizeGroup.html" title="GtkSizeGroup"><span class="type">GtkSizeGroup</span></a></td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4228451"></a><h3><a name="gtk-size-group-set-mode"></a>gtk_size_group_set_mode ()</h3><a class="indexterm" name="id4228464"></a><pre class="programlisting">void gtk_size_group_set_mode (<a class="link" href="GtkSizeGroup.html" title="GtkSizeGroup">GtkSizeGroup</a> *size_group, <a class="link" href="GtkSizeGroup.html#GtkSizeGroupMode">GtkSizeGroupMode</a> mode);</pre><p>Sets the <a class="link" href="GtkSizeGroup.html#GtkSizeGroupMode"><span class="type">GtkSizeGroupMode</span></a> of the size group. The mode of the sizegroup determines whether the widgets in the size group shouldall have the same horizontal requisition (<code class="literal">GTK_SIZE_GROUP_MODE_HORIZONTAL</code>)all have the same vertical requisition (<code class="literal">GTK_SIZE_GROUP_MODE_VERTICAL</code>),or should all have the same requisition in both directions(<code class="literal">GTK_SIZE_GROUP_MODE_BOTH</code>).</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>size_group</code></em> :</span></p></td><td> a <a class="link" href="GtkSizeGroup.html" title="GtkSizeGroup"><span class="type">GtkSizeGroup</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>mode</code></em> :</span></p></td><td> the mode to set for the size group.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4228596"></a><h3><a name="gtk-size-group-get-mode"></a>gtk_size_group_get_mode ()</h3><a class="indexterm" name="id4228609"></a><pre class="programlisting"><a class="link" href="GtkSizeGroup.html#GtkSizeGroupMode">GtkSizeGroupMode</a> gtk_size_group_get_mode (<a class="link" href="GtkSizeGroup.html" title="GtkSizeGroup">GtkSizeGroup</a> *size_group);</pre><p>Gets the current mode of the size group. See <a class="link" href="GtkSizeGroup.html#gtk-size-group-set-mode"><code class="function">gtk_size_group_set_mode()</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>size_group</code></em> :</span></p></td><td> a <a class="link" href="GtkSizeGroup.html" title="GtkSizeGroup"><span class="type">GtkSizeGroup</span></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> the current mode of the size group.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4228690"></a><h3><a name="gtk-size-group-set-ignore-hidden"></a>gtk_size_group_set_ignore_hidden ()</h3><a class="indexterm" name="id4228705"></a><pre class="programlisting">void gtk_size_group_set_ignore_hidden (<a class="link" href="GtkSizeGroup.html" title="GtkSizeGroup">GtkSizeGroup</a> *size_group, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> ignore_hidden);</pre><p>Sets whether unmapped widgets should be ignored whencalculating the size.</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>size_group</code></em> :</span></p></td><td> a <a class="link" href="GtkSizeGroup.html" title="GtkSizeGroup"><span class="type">GtkSizeGroup</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>ignore_hidden</code></em> :</span></p></td><td> whether unmapped widgets should be ignored when calculating the size</td></tr></tbody></table></div><p class="since">Since 2.8 </p></div><hr><div class="refsect2" lang="en"><a name="id4228794"></a><h3><a name="gtk-size-group-get-ignore-hidden"></a>gtk_size_group_get_ignore_hidden ()</h3><a class="indexterm" name="id4228810"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> gtk_size_group_get_ignore_hidden (<a class="link" href="GtkSizeGroup.html" title="GtkSizeGroup">GtkSizeGroup</a> *size_group);</pre><p>Returns if invisible widgets are ignored when calculating the size.</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>size_group</code></em> :</span></p></td><td> a <a class="link" href="GtkSizeGroup.html" title="GtkSizeGroup"><span class="type">GtkSizeGroup</span></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if invisible widgets are ignored.</td></tr></tbody></table></div><p class="since">Since 2.8</p></div><hr><div class="refsect2" lang="en"><a name="id4228897"></a><h3><a name="gtk-size-group-add-widget"></a>gtk_size_group_add_widget ()</h3><a class="indexterm" name="id4228911"></a><pre class="programlisting">void gtk_size_group_add_widget (<a class="link" href="GtkSizeGroup.html" title="GtkSizeGroup">GtkSizeGroup</a> *size_group, <a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);</pre><p>Adds a widget to a <a class="link" href="GtkSizeGroup.html" title="GtkSizeGroup"><span class="type">GtkSizeGroup</span></a>. In the future, the requisitionof the widget will be determined as the maximum of its requisitionand the requisition of the other widgets in the size group.Whether this applies horizontally, vertically, or in both directionsdepends on the mode of the size group. See <a class="link" href="GtkSizeGroup.html#gtk-size-group-set-mode"><code class="function">gtk_size_group_set_mode()</code></a>.</p><p>When the widget is destroyed or no longer referenced elsewhere, it will be removed from the size group.</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>size_group</code></em> :</span></p></td><td> a <a class="link" href="GtkSizeGroup.html" title="GtkSizeGroup"><span class="type">GtkSizeGroup</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>widget</code></em> :</span></p></td><td> the <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> to add</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4229028"></a><h3><a name="gtk-size-group-remove-widget"></a>gtk_size_group_remove_widget ()</h3><a class="indexterm" name="id4229042"></a><pre class="programlisting">void gtk_size_group_remove_widget (<a class="link" href="GtkSizeGroup.html" title="GtkSizeGroup">GtkSizeGroup</a> *size_group, <a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);</pre><p>Removes a widget from a <a class="link" href="GtkSizeGroup.html" title="GtkSizeGroup"><span class="type">GtkSizeGroup</span></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>size_group</code></em> :</span></p></td><td> a <span class="type">GtkSizeGrup</span></td></tr><tr><td><p><span class="term"><em class="parameter"><code>widget</code></em> :</span></p></td><td> the <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> to remove</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4229139"></a><h3><a name="gtk-size-group-get-widgets"></a>gtk_size_group_get_widgets ()</h3><a class="indexterm" name="id4229155"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html#GSList">GSList</a>* gtk_size_group_get_widgets (<a class="link" href="GtkSizeGroup.html" title="GtkSizeGroup">GtkSizeGroup</a> *size_group);</pre><p>Returns the list of widgets associated with <em class="parameter"><code>size_group</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>size_group</code></em> :</span></p></td><td> a <span class="type">GtkSizeGrup</span></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/glib/glib-Singly-Linked-Lists.html#GSList"><span class="type">GSList</span></a> of widgets. The list is owned by GTK+ and should not be modified.</td></tr></tbody></table></div><p class="since">Since 2.10</p></div></div><div class="refsect1" lang="en"><a name="id4229246"></a><h2>Property Details</h2><div class="refsect2" lang="en"><a name="id4229257"></a><h3><a name="GtkSizeGroup--ignore-hidden"></a>The <code class="literal">"ignore-hidden"</code> property</h3><a class="indexterm" name="id4229274"></a><pre class="programlisting"> "ignore-hidden" <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> : Read / Write</pre><p>If <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, unmapped widgets are ignored when determining the size of the group.</p><p></p><p>Default value: FALSE</p><p>Since 2.8</p></div><hr><div class="refsect2" lang="en"><a name="id4229320"></a><h3><a name="GtkSizeGroup--mode"></a>The <code class="literal">"mode"</code> property</h3><a class="indexterm" name="id4229336"></a><pre class="programlisting"> "mode" <a class="link" href="GtkSizeGroup.html#GtkSizeGroupMode">GtkSizeGroupMode</a> : Read / Write</pre><p>The directions in which the size group affects the requested sizes of its component widgets.</p><p>Default value: GTK_SIZE_GROUP_HORIZONTAL</p></div></div><div class="refsect1" lang="en"><a name="id4229366"></a><div class="refsect2" lang="en"><a name="id4229367"></a></div><hr><div class="refsect2" lang="en"><a name="id4229368"></a></div></div></div></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -