gi-gtk-3.0.32: 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.VBox

Contents

Description

A tVBox is a container that organizes child widgets into a single column.

Use the tBox packing interface to determine the arrangement, spacing, height, and alignment of tVBox children.

All children are allocated the same width.

GtkVBox has been deprecated. You can use tBox with a tOrientable:orientation set to OrientationVertical instead when calling boxNew, which is a very quick and easy change.

If you have derived your own classes from GtkVBox, you can change the inheritance to derive directly from tBox, and set the tOrientable:orientation property to OrientationVertical in your instance init function, with a call like:

C code

 gtk_orientable_set_orientation (GTK_ORIENTABLE (object),
                                 GTK_ORIENTATION_VERTICAL);

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

Synopsis

Exported types

newtype VBox Source #

Memory-managed wrapper type.

Constructors

VBox (ManagedPtr VBox) 
Instances
Eq VBox Source # 
Instance details

Defined in GI.Gtk.Objects.VBox

Methods

(==) :: VBox -> VBox -> Bool

(/=) :: VBox -> VBox -> Bool

GObject VBox Source # 
Instance details

Defined in GI.Gtk.Objects.VBox

Methods

gobjectType :: IO GType

IsGValue VBox Source #

Convert VBox to and from GValue with toGValue and fromGValue.

Instance details

Defined in GI.Gtk.Objects.VBox

Methods

toGValue :: VBox -> IO GValue

fromGValue :: GValue -> IO VBox

HasParentTypes VBox Source # 
Instance details

Defined in GI.Gtk.Objects.VBox

type ParentTypes VBox Source # 
Instance details

Defined in GI.Gtk.Objects.VBox

type ParentTypes VBox = Box ': (Container ': (Widget ': (Object ': (ImplementorIface ': (Buildable ': (Orientable ': ([] :: [Type])))))))

class (GObject o, IsDescendantOf VBox o) => IsVBox o Source #

Type class for types which can be safely cast to VBox, for instance with toVBox.

Instances
(GObject o, IsDescendantOf VBox o) => IsVBox o Source # 
Instance details

Defined in GI.Gtk.Objects.VBox

toVBox :: (MonadIO m, IsVBox o) => o -> m VBox Source #

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

noVBox :: Maybe VBox Source #

A convenience alias for Nothing :: Maybe VBox.

Methods

Overloaded methods

new

vBoxNew 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 VBox

Returns: a new tVBox.

Deprecated: (Since version 3.2)You can use boxNew with OrientationVertical 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 tVBox.