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

📄 gtkbuttonbox.html

📁 最新gtk中文资料集
💻 HTML
📖 第 1 页 / 共 3 页
字号:
</td></tr><tr><td><p><span class="term"><em class="parameter"><code>layout_style</code></em>&#160;:</span></p></td><td>the new layout style.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4248499"></a><h3><a name="gtk-button-box-set-child-size"></a>gtk_button_box_set_child_size ()</h3><a class="indexterm" name="id4248515"></a><pre class="programlisting">void                gtk_button_box_set_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_set_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>Sets a new default size for the children of 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>min_width</code></em>&#160;:</span></p></td><td>a default width for buttons in <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>a default height for buttons in <em class="parameter"><code>widget</code></em>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4248647"></a><h3><a name="gtk-button-box-set-child-ipadding"></a>gtk_button_box_set_child_ipadding ()</h3><a class="indexterm" name="id4248664"></a><pre class="programlisting">void                gtk_button_box_set_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_set_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>Changes the amount of internal padding used by all buttons in a given buttonbox.</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 that should be used by each button 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 that should be used by each button in <em class="parameter"><code>widget</code></em>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4248795"></a><h3><a name="gtk-button-box-set-child-secondary"></a>gtk_button_box_set_child_secondary ()</h3><a class="indexterm" name="id4248810"></a><pre class="programlisting">void                gtk_button_box_set_child_secondary  (<a class="link" href="GtkButtonBox.html" title="GtkButtonBox">GtkButtonBox</a> *widget,                                                         <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> is_secondary);</pre><p>Sets whether <em class="parameter"><code>child</code></em> should appear in a secondary group of children.A typical use of a secondary child is the help button in a dialog.</p><p>This group appears after the other children if the styleis <a class="link" href="gtk-Standard-Enumerations.html#GTK-BUTTONBOX-START:CAPS"><code class="literal">GTK_BUTTONBOX_START</code></a>, <a class="link" href="gtk-Standard-Enumerations.html#GTK-BUTTONBOX-SPREAD:CAPS"><code class="literal">GTK_BUTTONBOX_SPREAD</code></a> or<a class="link" href="gtk-Standard-Enumerations.html#GTK-BUTTONBOX-EDGE:CAPS"><code class="literal">GTK_BUTTONBOX_EDGE</code></a>, and before the other children if the styleis <a class="link" href="gtk-Standard-Enumerations.html#GTK-BUTTONBOX-END:CAPS"><code class="literal">GTK_BUTTONBOX_END</code></a>. For horizontal button boxes, the definitionof before/after depends on direction of the widget (see<a class="link" href="GtkWidget.html#gtk-widget-set-direction"><code class="function">gtk_widget_set_direction()</code></a>). If the style is <a class="link" href="gtk-Standard-Enumerations.html#GTK-BUTTONBOX-START:CAPS"><code class="literal">GTK_BUTTONBOX_START</code></a>or <a class="link" href="gtk-Standard-Enumerations.html#GTK-BUTTONBOX-END:CAPS"><code class="literal">GTK_BUTTONBOX_END</code></a>, then the secondary children are aligned atthe other end of the button box from the main children. For theother styles, they appear immediately next to the main 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"><em class="parameter"><code>is_secondary</code></em>&#160;:</span></p></td><td> if <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, the <em class="parameter"><code>child</code></em> appears in a secondary group of the               button box.</td></tr></tbody></table></div></div></div><div class="refsect1" lang="en"><a name="id4249035"></a><h2>Property Details</h2><div class="refsect2" lang="en"><a name="id4249046"></a><h3><a name="GtkButtonBox--layout-style"></a>The <code class="literal">"layout-style"</code> property</h3><a class="indexterm" name="id4249062"></a><pre class="programlisting">  "layout-style"             <a class="link" href="gtk-Standard-Enumerations.html#GtkButtonBoxStyle">GtkButtonBoxStyle</a>     : Read / Write</pre><p>How to layout the buttons in the box. Possible values are default, spread, edge, start and end.</p><p>Default value: GTK_BUTTONBOX_DEFAULT_STYLE</p></div></div><div class="refsect1" lang="en"><a name="id4249091"></a><h2>Child Property Details</h2><div class="refsect2" lang="en"><a name="id4249102"></a><h3><a name="GtkButtonBox--secondary"></a>The <code class="literal">"secondary"</code> child property</h3><a class="indexterm" name="id4249119"></a><pre class="programlisting">  "secondary"                <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>              : Read / Write</pre><p>If TRUE, the child appears in a secondary group of children, suitable for, e.g., help buttons.</p><p>Default value: FALSE</p></div></div><div class="refsect1" lang="en"><a name="id4249148"></a><h2>Style Property Details</h2><div class="refsect2" lang="en"><a name="id4249159"></a><h3><a name="GtkButtonBox--child-internal-pad-x"></a>The <code class="literal">"child-internal-pad-x"</code> style property</h3><a class="indexterm" name="id4249176"></a><pre class="programlisting">  "child-internal-pad-x"     <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a>                  : Read</pre><p>Amount to increase child's size on either side.</p><p>Allowed values: &gt;= 0</p><p>Default value: 4</p></div><hr><div class="refsect2" lang="en"><a name="id4249207"></a><h3><a name="GtkButtonBox--child-internal-pad-y"></a>The <code class="literal">"child-internal-pad-y"</code> style property</h3><a class="indexterm" name="id4249225"></a><pre class="programlisting">  "child-internal-pad-y"     <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a>                  : Read</pre><p>Amount to increase child's size on the top and bottom.</p><p>Allowed values: &gt;= 0</p><p>Default value: 0</p></div><hr><div class="refsect2" lang="en"><a name="id4249256"></a><h3><a name="GtkButtonBox--child-min-height"></a>The <code class="literal">"child-min-height"</code> style property</h3><a class="indexterm" name="id4249272"></a><pre class="programlisting">  "child-min-height"         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a>                  : Read</pre><p>Minimum height of buttons inside the box.</p><p>Allowed values: &gt;= 0</p><p>Default value: 27</p></div><hr><div class="refsect2" lang="en"><a name="id4249303"></a><h3><a name="GtkButtonBox--child-min-width"></a>The <code class="literal">"child-min-width"</code> style property</h3><a class="indexterm" name="id4249320"></a><pre class="programlisting">  "child-min-width"          <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a>                  : Read</pre><p>Minimum width of buttons inside the box.</p><p>Allowed values: &gt;= 0</p><p>Default value: 85</p></div></div><div class="refsect1" lang="en"><a name="id4249352"></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="GtkVButtonBox.html" title="GtkVButtonBox"><span class="type">GtkVButtonBox</span></a></span></p></td><td><p>Vertical sub-class of <a class="link" href="GtkButtonBox.html" title="GtkButtonBox"><span class="type">GtkButtonBox</span></a>.</p></td></tr><tr><td><p><span class="term"><a class="link" href="GtkHButtonBox.html" title="GtkHButtonBox"><span class="type">GtkHButtonBox</span></a></span></p></td><td><p>Horizontal sub-class of <a class="link" href="GtkButtonBox.html" title="GtkButtonBox"><span class="type">GtkButtonBox</span></a>.</p></td></tr></tbody></table></div><p></p></div><div class="refsect1" lang="en"><a name="id4249416"></a><div class="refsect2" lang="en"><a name="id4249417"></a></div><hr><div class="refsect2" lang="en"><a name="id4249418"></a></div></div></div></body></html>

⌨️ 快捷键说明

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