| 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 |
GI.Gtk.Objects.VBox
Contents
Description
A VBox is a container that organizes child widgets into a single column.
Use the Box packing interface to determine the arrangement,
spacing, height, and alignment of VBox children.
All children are allocated the same width.
GtkVBox has been deprecated. You can use Box instead, which is a
very quick and easy change. If you have derived your own classes from
GtkVBox, you can simply change the inheritance to derive directly
from Box, and set the Orientable: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 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.
Constructors
| VBox (ManagedPtr VBox) |
Instances
| GObject VBox Source # | |
Defined in GI.Gtk.Objects.VBox Methods gobjectType :: VBox -> IO GType # | |
| IsImplementorIface VBox Source # | |
Defined in GI.Gtk.Objects.VBox | |
| IsObject VBox Source # | |
Defined in GI.Gtk.Objects.VBox | |
| IsBuildable VBox Source # | |
Defined in GI.Gtk.Objects.VBox | |
| IsOrientable VBox Source # | |
Defined in GI.Gtk.Objects.VBox | |
| IsBox VBox Source # | |
Defined in GI.Gtk.Objects.VBox | |
| IsContainer VBox Source # | |
Defined in GI.Gtk.Objects.VBox | |
| IsWidget VBox Source # | |
Defined in GI.Gtk.Objects.VBox | |
| IsVBox VBox Source # | |
Defined in GI.Gtk.Objects.VBox | |
class GObject o => IsVBox o Source #
Instances
| (GObject a, (UnknownAncestorError VBox a :: Constraint)) => IsVBox a Source # | |
Defined in GI.Gtk.Objects.VBox | |
| IsVBox VBox Source # | |
Defined in GI.Gtk.Objects.VBox | |
Methods
new
Arguments
| :: (HasCallStack, MonadIO m) | |
| => Bool |
|
| -> Int32 |
|
| -> m VBox | Returns: a new |
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 Grid, since Box is going to go away eventually. See [Migrating from other containers to GtkGrid][gtk-migrating-GtkGrid].
Creates a new VBox.