Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
HBox
is a container that organizes child widgets into a single row.
Use the Box
packing interface to determine the arrangement,
spacing, width, and alignment of HBox
children.
All children are allocated the same height.
GtkHBox has been deprecated. You can use Box
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 Box
. No further changes are needed, since the default
value of the Orientable
:orientation
property is
OrientationHorizontal
.
If you don’t need first-child or last-child styling, and want your code
to be future-proof, the recommendation is to switch to Grid
instead
of nested boxes. For more information about migrating to Grid
,
see [Migrating from other containers to GtkGrid][gtk-migrating-GtkGrid].
Exported types
Memory-managed wrapper type.
Instances
GObject HBox Source # | |
Defined in GI.Gtk.Objects.HBox gobjectType :: HBox -> IO GType # | |
IsImplementorIface HBox Source # | |
Defined in GI.Gtk.Objects.HBox | |
IsObject HBox Source # | |
Defined in GI.Gtk.Objects.HBox | |
IsBuildable HBox Source # | |
Defined in GI.Gtk.Objects.HBox | |
IsOrientable HBox Source # | |
Defined in GI.Gtk.Objects.HBox | |
IsBox HBox Source # | |
Defined in GI.Gtk.Objects.HBox | |
IsContainer HBox Source # | |
Defined in GI.Gtk.Objects.HBox | |
IsWidget HBox Source # | |
Defined in GI.Gtk.Objects.HBox | |
IsHBox HBox Source # | |
Defined in GI.Gtk.Objects.HBox |
class GObject o => IsHBox o Source #
Instances
(GObject a, (UnknownAncestorError HBox a :: Constraint)) => IsHBox a Source # | |
Defined in GI.Gtk.Objects.HBox | |
IsHBox HBox Source # | |
Defined in GI.Gtk.Objects.HBox |
Methods
new
:: (HasCallStack, MonadIO m) | |
=> Bool |
|
-> Int32 |
|
-> m HBox | Returns: a new |
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 Grid
, since Box
is going to go away eventually. See [Migrating from other containers to GtkGrid][gtk-migrating-GtkGrid].
Creates a new HBox
.