gi-gtk-3.0.36: Gtk bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Gtk.Objects.HBox

Description

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 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 Grid. For more information about migrating to Grid, see [Migrating from other containers to GtkGrid][gtk-migrating-GtkGrid].

Synopsis

Exported types

newtype HBox Source #

Memory-managed wrapper type.

Constructors

HBox (ManagedPtr HBox) 

Instances

Instances details
Eq HBox Source # 
Instance details

Defined in GI.Gtk.Objects.HBox

Methods

(==) :: HBox -> HBox -> Bool #

(/=) :: HBox -> HBox -> Bool #

IsGValue HBox Source #

Convert HBox to and from GValue with toGValue and fromGValue.

Instance details

Defined in GI.Gtk.Objects.HBox

ManagedPtrNewtype HBox Source # 
Instance details

Defined in GI.Gtk.Objects.HBox

TypedObject HBox Source # 
Instance details

Defined in GI.Gtk.Objects.HBox

Methods

glibType :: IO GType #

GObject HBox Source # 
Instance details

Defined in GI.Gtk.Objects.HBox

HasParentTypes HBox Source # 
Instance details

Defined in GI.Gtk.Objects.HBox

type ParentTypes HBox Source # 
Instance details

Defined in GI.Gtk.Objects.HBox

class (GObject o, IsDescendantOf HBox o) => IsHBox o Source #

Type class for types which can be safely cast to HBox, for instance with toHBox.

Instances

Instances details
(GObject o, IsDescendantOf HBox o) => IsHBox o Source # 
Instance details

Defined in GI.Gtk.Objects.HBox

toHBox :: (MonadIO m, IsHBox o) => o -> m HBox Source #

Cast to HBox, for types for which this is known to be safe. For general casts, use castTo.

Methods

Overloaded methods

new

hBoxNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Bool

homogeneous: True if all children are to be given equal space allotments.

-> Int32

spacing: the number of pixels to place by default between children.

-> m HBox

Returns: a new HBox.

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.