---
name: "Gtk_HBox"
section: "3"
platform: "linux"
package: "libgtkmm-dev"
version: "1.0.3-1.1"
release: "Debian 2.2 (Potato)"
platforms: ["linux"]
url: "https://new.carta.tech/Gtk_HBox"
---

# Gtk\_HBox(3)

## NAME - Gtk\_HBox

horizontal box which can contain widgets and they're layouted tohorizontal row.

## HEADER REQUIRED

**#include \<gtk--/box.h&gt;\>**

## BASE CLASSES

[Gtk\_Box(3)](/Gtk_Box/3.md)

## DERIVED BY

[Gtk\_Combo(3)](/Gtk_Combo/3.md) [Gtk\_Statusbar(3)](/Gtk_Statusbar/3.md)

## 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.

See Gtk\_Box.

## PUBLIC MEMBER INDEX

```
Gtk_HBox(bool homogeneous=false, gint spacing=0);
  creates a new horizontal box
Gtk_HBox(GtkHBox *castitem);
GtkHBox*  gtkobj();
const GtkHBox*  gtkobj() const;
static bool  isGtkHBox(Gtk_Object *checkcast);
```

## PROTECTED MEMBER INDEX

```
friend  CppClassType;
typedef GtkHBox  BaseObjectType;
typedef GtkHBoxClass  BaseClassType;
virtual void * get_parent_class();
```

## PRIVATE MEMBER INDEX

```
static CppClassType  hbox_class;
GtkType  get_type();
```

## PUBLIC MEMBER DESCRIPTIONS

- Gtk\_HBox::**Gtk\_HBox** (*bool homogeneous=false, gint spacing=0*);

  creates a new horizontal box.\
   The homogeneous argument to {class Gtk\_HBox}::Gtk\_HBox ' (and the same for Gtk\_VBox) 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 which \

- Gtk\_HBox::**Gtk\_HBox** (*GtkHBox \*castitem*);

  See {page docs/castitem}\

## PROTECTED MEMBER DESCRIPTIONS

## PRIVATE MEMBER DESCRIPTIONS
