org.gnome.gtk
Class VBox
Object
org.freedesktop.bindings.Pointer
org.freedesktop.bindings.Proxy
org.gnome.glib.Object
org.gnome.gtk.Object
org.gnome.gtk.Widget
org.gnome.gtk.Container
org.gnome.gtk.Box
org.gnome.gtk.VBox
- Direct Known Subclasses:
- ColorSelection, FileChooserWidget, FontSelection, RecentChooserWidget
public class VBox
- extends Box
A Container which holds a variable number of Widgets in a single vertical
row. All the children of this VBox are allocated the same width - that of
the widest Widget packed into the VBox.
A VBox is almost always the first thing (and only thing, of course) added
to a new Window; doing so gives you a natural mechanism to layout the
contents of a Window in logical sequence from Menu through to Buttons and
Statusbar.
All the methods you need add widgets to VBoxes and to manipulate their
characteristics are on parent class Box. See its
packStart()
as a good first step.
- Since:
- 4.0.1
- Author:
- Andrew Cowie
- See Also:
HBox
Nested classes/interfaces inherited from class org.gnome.gtk.Widget |
Widget.ButtonPressEvent, Widget.ButtonReleaseEvent, Widget.EnterNotifyEvent, Widget.ExposeEvent, Widget.FocusInEvent, Widget.FocusOutEvent, Widget.Hide, Widget.KeyPressEvent, Widget.KeyReleaseEvent, Widget.LeaveNotifyEvent, Widget.MapEvent, Widget.MotionNotifyEvent, Widget.PopupMenu, Widget.ScrollEvent, Widget.UnmapEvent, Widget.VisibilityNotifyEvent |
Constructor Summary |
VBox(boolean homogeneous,
int spacing)
Creates a new VBox. |
Methods inherited from class org.gnome.gtk.Widget |
activate, addEvents, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, getAllocation, getCanDefault, getCanFocus, getHasFocus, getName, getParent, getRequisition, getSensitive, getToplevel, getWindow, grabAdd, grabDefault, grabFocus, grabRemove, hide, isSensitive, modifyBackground, modifyBase, modifyFont, modifyText, queueDraw, queueDrawArea, realize, setCanDefault, setCanFocus, setColormap, setEvents, setName, setSensitive, setSizeRequest, setTooltipMarkup, setTooltipText, show, showAll |
Methods inherited from class org.freedesktop.bindings.Pointer |
toString |
Methods inherited from class Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
VBox
public VBox(boolean homogeneous,
int spacing)
- Creates a new VBox.
- Parameters:
homogeneous
- If true
, all children will be given equal space
allotments.spacing
- the number of pixels to place (by default) between children.