gtkmm: Gtk::HBox Class Reference

Horizontal Box for laying widgets in a horizontal row. More...

Inheritance diagram for Gtk::HBox:
Collaboration diagram for Gtk::HBox:

List of all members.

Public Member Functions

virtual ~HBox ()
GtkHBox* gobj ()
 Provides access to the underlying C GtkObject.

const GtkHBox* gobj () const
 Provides access to the underlying C GtkObject.

 HBox (bool homogeneous=false, int spacing=0)
 Creates a new horizontal box.

Related Functions

(Note that these are not member functions.)

Gtk::HBoxwrap (GtkHBox* object, bool take_copy=false)
 A Glib::wrap() method for this object.


Detailed Description

Horizontal Box for laying widgets in a horizontal row.

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.


Constructor & Destructor Documentation

virtual Gtk::HBox::~HBox ( ) [virtual]
Gtk::HBox::HBox ( bool  homogeneous = false,
int  spacing = 0 
) [explicit]

Creates a new horizontal box.

Parameters:
spacingDetermines the space in pixels between child widgets.

Member Function Documentation

GtkHBox* Gtk::HBox::gobj ( ) [inline]

Provides access to the underlying C GtkObject.

Reimplemented from Gtk::Box.

Reimplemented in Gtk::FileChooserButton, Gtk::InfoBar, and Gtk::Statusbar.

const GtkHBox* Gtk::HBox::gobj ( ) const [inline]

Provides access to the underlying C GtkObject.

Reimplemented from Gtk::Box.

Reimplemented in Gtk::FileChooserButton, Gtk::InfoBar, and Gtk::Statusbar.


Friends And Related Function Documentation

Gtk::HBox* wrap ( GtkHBox *  object,
bool  take_copy = false 
) [related]

A Glib::wrap() method for this object.

Parameters:
objectThe C instance.
take_copyFalse if the result should take ownership of the C instance. True if it should take a new copy or ref.
Returns:
A C++ instance that wraps this C instance.

The documentation for this class was generated from the following file:
  • gtkmm/box.h