class Iup::VBox
A container for one or more child widgets, arranged in a vertical column.
Example
This example arranges three buttons vertically with equal width, and some spacing:
box = Iup::VBox.new(button1, button2, button3) do |b| b.gap = 10 b.margin = '5x5' b.expandchildren = :yes end
Attributes
horizontal alignment of children, ‘aleft’ / ‘acenter’ / ‘aright’
returns current offset of box in its client as “widthxheight”.
returns current size of box as “widthxheight”.
Allows container to fill available space in indicated direction. Values ‘no’ / ‘horizontal’ / ‘vertical’ / ‘yes’.
Set to allow children to expand fully in horizontal direction, values as ‘yes’ / ‘no’.
Number of pixels between children, default value of 0.
Set to force all children to get equal vertical size, values as ‘yes’ / ‘no’.
Margin in x and y directions, value as “mxn”.
Set to make natural size of children same, values as ‘yes’ / ‘no’.
returns position in pixels within client window as “x,y”.
Size of the container, in pixels, value as “widthxheight”.
Public Class Methods
Source
# File lib/wrapped/vbox.rb, line 26 def initialize *widgets @handle = IupLib.IupVbox(*widget_list(widgets)) # run any provided block on instance, to set up further attributes yield self if block_given? end
Creates an instance of the vbox. If a block is given, the new instance is yielded to it.
-
widgets- one or more child widgets