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

📄 gtkbuttonbox.html

📁 最新gtk中文资料集
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<div class="refsect1" lang="en"><a name="id4247638"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id4247648"></a><h3><a name="GtkButtonBox-struct"></a>GtkButtonBox</h3><a class="indexterm" name="id4247661"></a><pre class="programlisting">typedef struct _GtkButtonBox GtkButtonBox;</pre><p>This is a read-only struct; no members should be modified directly.</p></div><hr><div class="refsect2" lang="en"><a name="id4247678"></a><h3><a name="GTK-BUTTONBOX-DEFAULT:CAPS"></a>GTK_BUTTONBOX_DEFAULT</h3><a class="indexterm" name="id4247691"></a><pre class="programlisting">#define GTK_BUTTONBOX_DEFAULT -1</pre><p>Used internally only.</p></div><hr><div class="refsect2" lang="en"><a name="id4247707"></a><h3><a name="gtk-button-box-get-spacing"></a>gtk_button_box_get_spacing()</h3><a class="indexterm" name="id4247723"></a><pre class="programlisting">#define gtk_button_box_get_spacing(b)   gtk_box_get_spacing (GTK_BOX (b))</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gtk_button_box_get_spacing</code> is deprecated and should not be used in newly-written code.</p></div><p>Retrieves how much space a button box is placing between each child button.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>b</code></em>&#160;:</span></p></td><td>a <a class="link" href="GtkButtonBox.html" title="GtkButtonBox"><span class="type">GtkButtonBox</span></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td>the current spacing applied to the buttons in <em class="parameter"><code>widget</code></em>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4247796"></a><h3><a name="gtk-button-box-get-layout"></a>gtk_button_box_get_layout ()</h3><a class="indexterm" name="id4247809"></a><pre class="programlisting"><a class="link" href="gtk-Standard-Enumerations.html#GtkButtonBoxStyle">GtkButtonBoxStyle</a>   gtk_button_box_get_layout           (<a class="link" href="GtkButtonBox.html" title="GtkButtonBox">GtkButtonBox</a> *widget);</pre><p>Retrieves the method being used to arrange the buttons in a button box.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></p></td><td>a <a class="link" href="GtkButtonBox.html" title="GtkButtonBox"><span class="type">GtkButtonBox</span></a>.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td>the method used to layout buttons in <em class="parameter"><code>widget</code></em>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4247882"></a><h3><a name="gtk-button-box-get-child-size"></a>gtk_button_box_get_child_size ()</h3><a class="indexterm" name="id4247898"></a><pre class="programlisting">void                gtk_button_box_get_child_size       (<a class="link" href="GtkButtonBox.html" title="GtkButtonBox">GtkButtonBox</a> *widget,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> *min_width,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> *min_height);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gtk_button_box_get_child_size</code> is deprecated and should not be used in newly-written code. Use the style properties<code class="literal">"child-min-width/-height"</code> instead.</p></div><p>Retrieves the current width and height of all child widgets in a button box.<em class="parameter"><code>min_width</code></em> and <em class="parameter"><code>min_height</code></em> are filled with those values, respectively.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></p></td><td>a <a class="link" href="GtkButtonBox.html" title="GtkButtonBox"><span class="type">GtkButtonBox</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>min_width</code></em>&#160;:</span></p></td><td>the width of the buttons contained by <em class="parameter"><code>widget</code></em>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>min_height</code></em>&#160;:</span></p></td><td>the height of the buttons contained by <em class="parameter"><code>widget</code></em>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4248042"></a><h3><a name="gtk-button-box-get-child-ipadding"></a>gtk_button_box_get_child_ipadding ()</h3><a class="indexterm" name="id4248059"></a><pre class="programlisting">void                gtk_button_box_get_child_ipadding   (<a class="link" href="GtkButtonBox.html" title="GtkButtonBox">GtkButtonBox</a> *widget,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> *ipad_x,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> *ipad_y);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gtk_button_box_get_child_ipadding</code> is deprecated and should not be used in newly-written code. Use the style properties<code class="literal">"child-internal-pad-x/-y"</code> instead.</p></div><p>Gets the default number of pixels that pad the buttons in a given button box.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></p></td><td>a <a class="link" href="GtkButtonBox.html" title="GtkButtonBox"><span class="type">GtkButtonBox</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>ipad_x</code></em>&#160;:</span></p></td><td>the horizontal padding used by buttons in <em class="parameter"><code>widget</code></em>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>ipad_y</code></em>&#160;:</span></p></td><td>the vertical padding used by buttons in <em class="parameter"><code>widget</code></em>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4248190"></a><h3><a name="gtk-button-box-get-child-secondary"></a>gtk_button_box_get_child_secondary ()</h3><a class="indexterm" name="id4248207"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>            gtk_button_box_get_child_secondary  (<a class="link" href="GtkButtonBox.html" title="GtkButtonBox">GtkButtonBox</a> *widget,                                                         <a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *child);</pre><p>Returns whether <em class="parameter"><code>child</code></em> should appear in a secondary group of 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>widget</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkButtonBox.html" title="GtkButtonBox"><span class="type">GtkButtonBox</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>child</code></em>&#160;:</span></p></td><td> a child of <em class="parameter"><code>widget</code></em> </td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> whether <em class="parameter"><code>child</code></em> should appear in a secondary group of children.</td></tr></tbody></table></div><p class="since">Since  2.4</p></div><hr><div class="refsect2" lang="en"><a name="id4248323"></a><h3><a name="gtk-button-box-set-spacing"></a>gtk_button_box_set_spacing()</h3><a class="indexterm" name="id4248338"></a><pre class="programlisting">#define gtk_button_box_set_spacing(b,s) gtk_box_set_spacing (GTK_BOX (b), s)</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gtk_button_box_set_spacing</code> is deprecated and should not be used in newly-written code.</p></div><p>Sets the amount of spacing between buttons in a given button box.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>b</code></em>&#160;:</span></p></td><td>a <a class="link" href="GtkButtonBox.html" title="GtkButtonBox"><span class="type">GtkButtonBox</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>s</code></em>&#160;:</span></p></td><td>the number of pixels of spacing.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4248408"></a><h3><a name="gtk-button-box-set-layout"></a>gtk_button_box_set_layout ()</h3><a class="indexterm" name="id4248422"></a><pre class="programlisting">void                gtk_button_box_set_layout           (<a class="link" href="GtkButtonBox.html" title="GtkButtonBox">GtkButtonBox</a> *widget,                                                         <a class="link" href="gtk-Standard-Enumerations.html#GtkButtonBoxStyle">GtkButtonBoxStyle</a> layout_style);</pre><p>Changes the way buttons are arranged in their container.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></p></td><td>a <a class="link" href="GtkButtonBox.html" title="GtkButtonBox"><span class="type">GtkButtonBox</span></a>.

⌨️ 快捷键说明

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