Gtk-- Reference: Gtk::HBox

Class Index | Cross Index | Namespace Index

# Class Gtk::HBox

Horizontal Box for laying widgets in a horizontal row.
Contained in: Gtk
Derived from: Gtk::Box
Derived by: Gtk::Combo Gtk::Statusbar

#include <gtk--/box.h>

### public function member index:
`` | `HBox` | `(`bool` `homogeneous`=false, `gint` `spacing`=0)`;
``GtkHBox`*` | `gtkobj` | `()`;
``const` `GtkHBox`*` | `gtkobj` | `() `const``;
``static` `bool`` | `isA` | `(`Object`* `object`)`;
``virtual`` | `~HBox` | `()`;

## Description:

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 ``Gtk`::`Box`` class and this allows you to later change the direction of the box, when there's no dependencies to hbox and vbox classes.

Use the `GtkBox` packing interface to determine the arrangement, spacing, width, and alignment of GtkHBox children.

All children are allocated the same height.

See ``Gtk`::`Box``.

## Function Member Descriptions:

Gtk::HBox::HBox - Creates a new horizontal box

`` `HBox``(`bool` `homogeneous`=false, `gint` `spacing`=0)`;

> The ``homogeneous`` 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.

> ``spacing`` determines width between children.

Gtk::HBox::gtkobj - Returns the underlaying gtk+ object.

``GtkHBox`*` `gtkobj``()`;
Gtk::HBox::isA - Returns true if object is this type.

``static` `bool`` `isA``(`Object`* `object`)`;