![]() |
![]() |
You should create these objects, but it is more confortable to pass around pointers of Gtk::Box. All the methods that do anything are in class Gtk::Box and this allows you to later change the direction of the box, when there's no dependencies to HBox and VBox classes.
Use the Gtk::Box packing interface to determine the arrangement, spacing, width, and alignment of Gtk::HBox children.
All children are allocated the same height.
Public Member Functions | ||||
const GtkHBox* | gobj () const | |||
Provides access to the underlying C GtkObject. | ||||
GtkHBox* | gobj () | |||
Provides access to the underlying C GtkObject. | ||||
HBox (bool homogeneous=false, int spacing=0) | ||||
Creates a new horizontal box. | ||||
virtual | ~HBox () | |||
Related Functions | ||||
(Note that these are not member functions.) | ||||
Gtk::HBox* | wrap (GtkHBox* object, bool take_copy=false) | |||
|
virtual Gtk::HBox::~HBox | ( | ) | [virtual] |
Gtk::HBox::HBox | ( | bool | homogeneous = false , |
|
int | spacing = 0 | |||
) | [explicit] |
Creates a new horizontal box.
homogeneous | Whether each widget in the HBox should have the same width. If set, a PACK_SHRINK argument to pack_start() or pack_end() is ignored. | |
spacing | Determines the space in pixels between child widgets. |
const GtkHBox* Gtk::HBox::gobj | ( | ) | const [inline] |
Provides access to the underlying C GtkObject.
Reimplemented from Gtk::Box.
Reimplemented in Gtk::Combo, Gtk::FileChooserButton, and Gtk::Statusbar.
GtkHBox* Gtk::HBox::gobj | ( | ) | [inline] |
Provides access to the underlying C GtkObject.
Reimplemented from Gtk::Box.
Reimplemented in Gtk::Combo, Gtk::FileChooserButton, and Gtk::Statusbar.
Gtk::HBox* wrap | ( | GtkHBox * | object, | |
bool | take_copy = false | |||
) | [related] |
object | The C instance |
take_copy | False if the result should take ownership of the C instance. True if it should take a new copy or ref. |