<html> <head><title>Gtk-- Reference: Gtk::HBox</title></head> <body bgcolor="#F0F0F0" text="#000000" link="#0000FF" vlink="#000077" alink="#FF0000"> <table align=center border=0 cellspacing=10> <tr> <td><a href="class_index.html">Class Index</a></td> <td><a href="cross_index.html">Cross Index</a></td> <td><a href="name_index.html">Namespace Index</a></td> </table> <h1 align=center>Class Gtk::HBox</h1><p> <b> Horizontal Box for laying widgets in a horizontal row.</b><br> Contained in: <a href="Gtk.html">Gtk</a><br> Derived from: <a href="Gtk%3A%3ABox.html">Gtk::Box</a> <br> Derived by: <a href="Gtk::Combo.html">Gtk::Combo</a> <a href="Gtk::Statusbar.html">Gtk::Statusbar</a> <p> #include <gtk--/box.h> <p> <hr noshade> <table border=0> <tr><td colspan=3><h3>public function member index:</h3></td> <tr valign=top><td align=right><tt></tt> </td><td align=right><a href="Gtk%3A%3AHBox.html#342"><tt><font color=blue><b>HBox</b></font></tt></a></td><td><tt>(<tt><font color=purple>bool</font></tt> <tt><font color=blue>homogeneous</font></tt>=false, <tt><font color=purple>gint</font></tt> <tt><font color=blue>spacing</font></tt>=0)</tt>;</td> <tr valign=top><td align=right><tt><tt><font color=navy>GtkHBox</font></tt>*</tt> </td><td align=right><a href="Gtk%3A%3AHBox.html#338"><tt><font color=blue><b>gtkobj</b></font></tt></a></td><td><tt>()</tt>;</td> <tr valign=top><td align=right><tt><tt>const</tt> <tt><font color=navy>GtkHBox</font></tt>*</tt> </td><td align=right><a href="Gtk%3A%3AHBox.html#339"><tt><font color=blue><b>gtkobj</b></font></tt></a></td><td><tt>() <tt>const</tt></tt>;</td> <tr valign=top><td align=right><tt><tt>static</tt> <tt><font color=purple>bool</font></tt></tt> </td><td align=right><a href="Gtk%3A%3AHBox.html#340"><tt><font color=blue><b>isA</b></font></tt></a></td><td><tt>(<a href="Gtk%3A%3AObject.html"><tt><font color=navy><b>Object</b></font></tt></a>* <tt><font color=blue>object</font></tt>)</tt>;</td> <tr valign=top><td align=right><tt><tt>virtual</tt> </tt> </td><td align=right><a href="Gtk%3A%3AHBox.html#341"><tt><font color=blue><b>~HBox</b></font></tt></a></td><td><tt>()</tt>;</td> <tr><td> </td></table> <hr noshade> <h2>Description:</h2> You should create these objects, but it is more confortable to pass around pointers of <tt><a href="Gtk.html"><tt><font color=navy><b>Gtk</b></font></tt></a>::<a href="Gtk%3A%3ABox.html"><tt><font color=navy><b>Box</b></font></tt></a></tt>. All the methods that do anything are in <tt><a href="Gtk.html"><tt><font color=navy><b>Gtk</b></font></tt></a>::<a href="Gtk%3A%3ABox.html"><tt><font color=navy><b>Box</b></font></tt></a></tt> class and this allows you to later change the direction of the box, when there's no dependencies to hbox and vbox classes. <P> Use the <tt><font color=navy><b>GtkBox</b></font></tt> packing interface to determine the arrangement, spacing, width, and alignment of GtkHBox children. <P> All children are allocated the same height. <P> See <tt><a href="Gtk.html"><tt><font color=navy><b>Gtk</b></font></tt></a>::<a href="Gtk%3A%3ABox.html"><tt><font color=navy><b>Box</b></font></tt></a></tt>.<br> <p> <hr noshade> <h2>Function Member Descriptions:</h2> <a name="342"><font size=+1><b>Gtk::HBox::HBox</b></font></a> - Creates a new horizontal box<br> <hr size="1" width="70%" align="left" noshade="noshade"><tt></tt> <a href="Gtk%3A%3AHBox.html#342"><tt><font color=blue><b>HBox</b></font></tt></a><tt>(<tt><font color=purple>bool</font></tt> <tt><font color=blue>homogeneous</font></tt>=false, <tt><font color=purple>gint</font></tt> <tt><font color=blue>spacing</font></tt>=0)</tt>;<br><blockquote> The <tt><tt><font color=blue>homogeneous</font></tt></tt> argument to controls whether each object in the box has the same size (i.e. the same width in an hbox, or the same height in a vbox). If it is set, the expand argument to the gtk_box_pack routines is always turned on. <P> <tt><tt><font color=blue>spacing</font></tt></tt> determines width between children.</blockquote> <br><br> <a name="338"><font size=+1><b>Gtk::HBox::gtkobj</b></font></a> - Returns the underlaying gtk+ object.<br> <hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=navy>GtkHBox</font></tt>*</tt> <a href="Gtk%3A%3AHBox.html#338"><tt><font color=blue><b>gtkobj</b></font></tt></a><tt>()</tt>;<br><br> <a name="340"><font size=+1><b>Gtk::HBox::isA</b></font></a> - Returns true if object is this type.<br> <hr size="1" width="70%" align="left" noshade="noshade"><tt><tt>static</tt> <tt><font color=purple>bool</font></tt></tt> <a href="Gtk%3A%3AHBox.html#340"><tt><font color=blue><b>isA</b></font></tt></a><tt>(<a href="Gtk%3A%3AObject.html"><tt><font color=navy><b>Object</b></font></tt></a>* <tt><font color=blue>object</font></tt>)</tt>;<br><br> <hr noshade> </html>