Tickit::Widget::LinearBox(3pm) | User Contributed Perl Documentation | Tickit::Widget::LinearBox(3pm) |
"Tickit::Widget::LinearBox" - abstract base class for "HBox" and "VBox"
This class is a base class for both Tickit::Widget::HBox and Tickit::Widget::VBox. It is not intended to be used directly.
It maintains an ordered list of child widgets, and implements the following child widget options:
For example, if all the children have a "expand" value of 1, extra space is distributed evenly. If one child has a value of 2, it will gain twice as much extra space as its siblings. Any child with a value of 0 will obtain no extra space.
Returns a new "Tickit::Widget::LinearBox".
Takes the following named argmuents:
In scalar context, returns the number of contained children. In list context, returns a list of all the child widgets.
Returns the options currently set for the given child, specified either by reference or by index.
Replaces the child widget at the given index with the given new one; preserving any options that are set on it.
Sets new options on the given child, specified either by reference or by index. Any options whose value is given as "undef" are deleted.
Adds the widget as a new child of this one, with the given options
Removes the given child widget if present, by reference or index
Paul Evans <leonerd@leonerd.org.uk>
2018-07-30 | perl v5.26.2 |