<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>Gtk::ButtonBox class Reference</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head> <body bgcolor="#ffffff"> <table border="0" width="100%"> <tr> <td width="10%" height="40"><img src="../../images/gtkmm_logo.gif" alt="logo" border="0" width="100%" height="100%"/></td> <td width="90%" height="40"><img src="../../images/top.gif" alt="top" width="100%" height="40"/></td> </tr> </table> <center> <a class="qindex" href="../../index.html">Main Page</a> <a href="group__Widgets.html">Widgets</a> <a class="qindex" href="namespaces.html"> Namespaces</a> <a href="../../tutorial/html/index.html"> Book</a> </center> <hr width="100%"/> <!-- Generated by Doxygen 1.3-rc1 --> <h1>Gtk::ButtonBox Class Reference</h1>Base class for <a class="el" href="classGtk_1_1HButtonBox.html">Gtk::HButtonBox</a> and <a class="el" href="classGtk_1_1VButtonBox.html">Gtk::VButtonBox</a>. <a href="#_details">More...</a> <p> Inheritance diagram for Gtk::ButtonBox:<p><center><img src="classGtk_1_1ButtonBox__inherit__graph.png" border="0" usemap="#Gtk_1_1ButtonBox__inherit__map" alt="Inheritance graph"></center> <map name="Gtk_1_1ButtonBox__inherit__map"> <area href="classGtk_1_1HButtonBox.html" shape="rect" coords="7,503,113,521" alt=""> <area href="classGtk_1_1VButtonBox.html" shape="rect" coords="137,503,247,521" alt=""> <area href="classGtk_1_1Box.html" shape="rect" coords="95,364,156,383" alt=""> <area href="classGtk_1_1Container.html" shape="rect" coords="77,295,173,313" alt=""> <area href="classGtk_1_1Widget.html" shape="rect" coords="87,225,164,244" alt=""> <area href="classGtk_1_1Object.html" shape="rect" coords="87,156,164,175" alt=""> <area href="classGlib_1_1Object.html" shape="rect" coords="85,87,165,105" alt=""> <area href="classGlib_1_1ObjectBase.html" shape="rect" coords="71,17,180,36" alt=""> </map> <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classGtk_1_1ButtonBox-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0> <tr><td></td></tr> <tr><td colspan=2><br><h2>Public Methods</h2></td></tr> <tr><td nowrap align=right valign=top>virtual </td><td valign=bottom><a class="el" href="classGtk_1_1ButtonBox.html#a0">~ButtonBox</a> ()</td></tr> <tr><td nowrap align=right valign=top>GtkButtonBox* </td><td valign=bottom><a class="el" href="classGtk_1_1ButtonBox.html#a1">gobj</a> ()</td></tr> <tr><td nowrap align=right valign=top>const GtkButtonBox* </td><td valign=bottom><a class="el" href="classGtk_1_1ButtonBox.html#a2">gobj</a> () const</td></tr> <tr><td nowrap align=right valign=top><a class="el" href="group__gtkmmEnums.html#a65">ButtonBoxStyle</a> </td><td valign=bottom><a class="el" href="classGtk_1_1ButtonBox.html#a3">get_layout</a> () const</td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classGtk_1_1ButtonBox.html#a4">set_layout</a> (<a class="el" href="group__gtkmmEnums.html#a65">ButtonBoxStyle</a> layout_style)</td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classGtk_1_1ButtonBox.html#a5">set_child_secondary</a> (<a class="el" href="classGtk_1_1Widget.html">Widget</a>& child, bool is_secondary=true)</td></tr> <tr><td> </td><td><font size=-1><em>Sets whether <em>child</em> should appear in a secondary group of children.</em> <a href="#a5"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>int </td><td valign=bottom><a class="el" href="classGtk_1_1ButtonBox.html#a6">get_child_min_width</a> () const</td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classGtk_1_1ButtonBox.html#a7">set_child_min_width</a> (const int& value)</td></tr> <tr><td nowrap align=right valign=top>int </td><td valign=bottom><a class="el" href="classGtk_1_1ButtonBox.html#a8">get_child_min_height</a> () const</td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classGtk_1_1ButtonBox.html#a9">set_child_min_height</a> (const int& value)</td></tr> <tr><td nowrap align=right valign=top>int </td><td valign=bottom><a class="el" href="classGtk_1_1ButtonBox.html#a10">get_child_ipadding_x</a> () const</td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classGtk_1_1ButtonBox.html#a11">set_child_ipadding_x</a> (const int& value)</td></tr> <tr><td nowrap align=right valign=top>int </td><td valign=bottom><a class="el" href="classGtk_1_1ButtonBox.html#a12">get_child_ipadding_y</a> () const</td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classGtk_1_1ButtonBox.html#a13">set_child_ipadding_y</a> (const int& value)</td></tr> <tr><td nowrap align=right valign=top><a class="el" href="classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a><<a class="el" href="group__gtkmmEnums.html#a65">ButtonBoxStyle</a>> </td><td valign=bottom><a class="el" href="classGtk_1_1ButtonBox.html#a14">property_layout_style</a> ()</td></tr> <tr><td colspan=2><br><h2>Related Functions</h2></td></tr> <tr><td colspan=2>(Note that these are not member functions.)<br><br></td></tr> <tr><td nowrap align=right valign=top>Gtk::ButtonBox* </td><td valign=bottom><a class="el" href="classGtk_1_1ButtonBox.html#k0">wrap</a> (GtkButtonBox* object, bool take_copy=false)</td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> Base class for <a class="el" href="classGtk_1_1HButtonBox.html">Gtk::HButtonBox</a> and <a class="el" href="classGtk_1_1VButtonBox.html">Gtk::VButtonBox</a>. <p> A button box should be used to provide a consistent layout of buttons throughout your application. There is one default layout and a default spacing value that are persistant across all <a class="el" href="classGtk_1_1ButtonBox.html">ButtonBox</a> widgets. <dl compact><dt><b>Examples: </b></dt><dd> <p> <a class="el" href="thread_2dispatcher_8cc-example.html#_a10">thread/dispatcher.cc</a>.</dl> <p> <hr><h2>Constructor & Destructor Documentation</h2> <a name="a0" doxytag="Gtk::ButtonBox::~ButtonBox"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> virtual Gtk::ButtonBox::~ButtonBox </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <hr><h2>Member Function Documentation</h2> <a name="a10" doxytag="Gtk::ButtonBox::get_child_ipadding_x"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> int Gtk::ButtonBox::get_child_ipadding_x </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a12" doxytag="Gtk::ButtonBox::get_child_ipadding_y"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> int Gtk::ButtonBox::get_child_ipadding_y </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a8" doxytag="Gtk::ButtonBox::get_child_min_height"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> int Gtk::ButtonBox::get_child_min_height </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a6" doxytag="Gtk::ButtonBox::get_child_min_width"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> int Gtk::ButtonBox::get_child_min_width </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a3" doxytag="Gtk::ButtonBox::get_layout"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="group__gtkmmEnums.html#a65">ButtonBoxStyle</a> Gtk::ButtonBox::get_layout </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a2" doxytag="Gtk::ButtonBox::gobj"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> const GtkButtonBox* Gtk::ButtonBox::gobj </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const<code> [inline]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> <p> Reimplemented from <a class="el" href="classGtk_1_1Box.html#a2">Gtk::Box</a>. <p> Reimplemented in <a class="el" href="classGtk_1_1VButtonBox.html#a2">Gtk::VButtonBox</a>, and <a class="el" href="classGtk_1_1HButtonBox.html#a2">Gtk::HButtonBox</a>. </td> </tr> </table> <a name="a1" doxytag="Gtk::ButtonBox::gobj"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> GtkButtonBox* Gtk::ButtonBox::gobj </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [inline]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> <p> Reimplemented from <a class="el" href="classGtk_1_1Box.html#a1">Gtk::Box</a>. <p> Reimplemented in <a class="el" href="classGtk_1_1VButtonBox.html#a1">Gtk::VButtonBox</a>, and <a class="el" href="classGtk_1_1HButtonBox.html#a1">Gtk::HButtonBox</a>. </td> </tr> </table> <a name="a14" doxytag="Gtk::ButtonBox::property_layout_style"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a><<a class="el" href="group__gtkmmEnums.html#a65">ButtonBoxStyle</a>> Gtk::ButtonBox::property_layout_style </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a11" doxytag="Gtk::ButtonBox::set_child_ipadding_x"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void Gtk::ButtonBox::set_child_ipadding_x </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top">const int& </td> <td class="mdname1" valign="top" nowrap> <em>value</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a13" doxytag="Gtk::ButtonBox::set_child_ipadding_y"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void Gtk::ButtonBox::set_child_ipadding_y </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top">const int& </td> <td class="mdname1" valign="top" nowrap> <em>value</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a9" doxytag="Gtk::ButtonBox::set_child_min_height"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void Gtk::ButtonBox::set_child_min_height </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top">const int& </td> <td class="mdname1" valign="top" nowrap> <em>value</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a7" doxytag="Gtk::ButtonBox::set_child_min_width"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void Gtk::ButtonBox::set_child_min_width </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top">const int& </td> <td class="mdname1" valign="top" nowrap> <em>value</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a5" doxytag="Gtk::ButtonBox::set_child_secondary"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void Gtk::ButtonBox::set_child_secondary </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top"><a class="el" href="classGtk_1_1Widget.html">Widget</a>& </td> <td class="mdname" nowrap> <em>child</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>bool </td> <td class="mdname" nowrap> <em>is_secondary</em> = true</td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Sets whether <em>child</em> should appear in a secondary group of children. <p> A typical use of a secondary child is the help button in a dialog. <p> This group appears after the other children if the style is <a class="el" href="group__gtkmmEnums.html#a65a57">Gtk::BUTTONBOX_START</a>, <a class="el" href="group__gtkmmEnums.html#a65a55">Gtk::BUTTONBOX_SPREAD</a> or <a class="el" href="group__gtkmmEnums.html#a65a56">Gtk::BUTTONBOX_EDGE</a>, and before the the other children if the style is <a class="el" href="group__gtkmmEnums.html#a65a58">Gtk::BUTTONBOX_END</a>. For horizontal button boxes, the definition of before/after depends on direction of the widget (see Gtk::Widget::set_direction()). If the style is <a class="el" href="group__gtkmmEnums.html#a65a57">Gtk::BUTTONBOX_START</a> or <a class="el" href="group__gtkmmEnums.html#a65a58">Gtk::BUTTONBOX_END</a>, then the secondary children are aligned at the other end of the button box from the main children. For the other styles, they appear immediately next to the main children. <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>child</em> </td><td>A child of <em>widget</em> . </td></tr> <tr><td valign=top><em>is_secondary</em> </td><td>If <code>true</code>, the <em>child</em> appears in a secondary group of the button box. </td></tr> </table> </dl> </td> </tr> </table> <a name="a4" doxytag="Gtk::ButtonBox::set_layout"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void Gtk::ButtonBox::set_layout </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top"><a class="el" href="group__gtkmmEnums.html#a65">ButtonBoxStyle</a> </td> <td class="mdname1" valign="top" nowrap> <em>layout_style</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <hr><h2>Friends And Related Function Documentation</h2> <a name="k0" doxytag="Gtk::ButtonBox::wrap"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> Gtk::ButtonBox* wrap </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top">GtkButtonBox* </td> <td class="mdname" nowrap> <em>object</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>bool </td> <td class="mdname" nowrap> <em>take_copy</em> = false</td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [related]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="buttonbox_8h.html">buttonbox.h</a></ul> <hr><address><small> Generated for gtkmm by <a href="http://www.doxygen.org/index.html"> Doxygen</a> 1.3-rc1 © 1997-2001</small></address> </body> </html>