The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Tickit::Widget::LinearBox - abstract base class for HBox and VBox

DESCRIPTION

This class is a base class for both Tickit::Widget::HBox and Tickit::Widget::VBox. It is not intended to be used directly.

It implements the following child widget options:

expand => NUM

A number used to control how extra space is distributed among child widgets, if the window containing this widget has more space available to it than the children need. The actual value is unimportant, but extra space will be distributed among the children in proportion with their expand value.

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.

TODO

  • Undersize handling

    This widget doesn't correctly handle the case where its window is too small to fit all the children even at minimum size. Consider how it might do this. Give them smaller windows or drop them entirely. Use priority-based ordering to pick a victim.

AUTHOR

Paul Evans <leonerd@leonerd.org.uk>