Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
GI.Gtk.Objects.HBox
Description
tHBox
is a container that organizes child widgets into a single row.
Use the tBox
packing interface to determine the arrangement,
spacing, width, and alignment of tHBox
children.
All children are allocated the same height.
GtkHBox has been deprecated. You can use tBox
instead, which is a
very quick and easy change. If you have derived your own classes from
GtkHBox, you can simply change the inheritance to derive directly
from tBox
. No further changes are needed, since the default
value of the tOrientable
:orientation
property is
OrientationHorizontal
.
If you have a grid-like layout composed of nested boxes, and you don’t
need first-child or last-child styling, the recommendation is to switch
to tGrid
. For more information about migrating to tGrid
, see
[Migrating from other containers to GtkGrid][gtk-migrating-GtkGrid].
Exported types
Memory-managed wrapper type.
Instances
Eq HBox Source # | |
GObject HBox Source # | |
Defined in GI.Gtk.Objects.HBox Methods gobjectType :: IO GType | |
IsGValue HBox Source # | Convert |
Defined in GI.Gtk.Objects.HBox | |
HasParentTypes HBox Source # | |
Defined in GI.Gtk.Objects.HBox | |
type ParentTypes HBox Source # | |
Defined in GI.Gtk.Objects.HBox |
class (GObject o, IsDescendantOf HBox o) => IsHBox o Source #
Instances
(GObject o, IsDescendantOf HBox o) => IsHBox o Source # | |
Defined in GI.Gtk.Objects.HBox |
Methods
Overloaded methods
new
Arguments
:: (HasCallStack, MonadIO m) | |
=> Bool |
|
-> Int32 |
|
-> m HBox | Returns: a new t |
Deprecated: (Since version 3.2)You can use boxNew
with OrientationHorizontal
instead, which is a quick and easy change. But the recommendation is to switch to tGrid
, since tBox
is going to go away eventually. See [Migrating from other containers to GtkGrid][gtk-migrating-GtkGrid].
Creates a new tHBox
.