VBox


Object Hierarchy:

Gtk.VBox Gtk.VBox Gtk.VBox Gtk.Box Gtk.Box Gtk.Box->Gtk.VBox Gtk.Container Gtk.Container Gtk.Container->Gtk.Box Gtk.Widget Gtk.Widget Gtk.Widget->Gtk.Container GLib.InitiallyUnowned GLib.InitiallyUnowned GLib.InitiallyUnowned->Gtk.Widget GLib.Object GLib.Object GLib.Object->GLib.InitiallyUnowned Atk.Implementor Atk.Implementor Atk.Implementor->Gtk.VBox Atk.Implementor->Gtk.Box Atk.Implementor->Gtk.Container Atk.Implementor->Gtk.Widget Gtk.Buildable Gtk.Buildable Gtk.Buildable->Gtk.VBox Gtk.Buildable->Gtk.Box Gtk.Buildable->Gtk.Container Gtk.Buildable->Gtk.Widget Gtk.Orientable Gtk.Orientable Gtk.Orientable->Gtk.VBox Gtk.Orientable->Gtk.Box

Description:

[ CCode ( type_id = "gtk_vbox_get_type ()" ) ]
[ Version ( deprecated = true , deprecated_since = "3.2" , replacement = "Box" ) ]
public class VBox : Box, Implementor, Buildable, Orientable

Warning: VBox is deprecated since 3.2. Use Box.

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 with a orientation set to gtk_orientation_vertical instead when calling Box, 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 Box, and set the orientation property to gtk_orientation_vertical in your instance init function, with a call like:

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


Namespace: Gtk
Package: gtk+-3.0

Content:

Creation methods:

Inherited Members:

All known members inherited from class Gtk.Widget
All known members inherited from class GLib.Object
All known members inherited from interface Atk.Implementor
All known members inherited from interface Gtk.Orientable



2022 vala-language.org