constructor
destructor, kills children
Layout type
override activate event
adds a widget, and makes space for it
adds a widget, and makes space for it
override initialize to initliaze child widgets
Redirects the keyboardEvent to appropriate widget
Redirects the mouseEvent to the appropriate widget
Recalculates size and position for all visible widgets
Resize event
activate the passed widget if it's in the current layout
override timer event to call child widgets' timers
called by parent widget to update
Color for unoccupied space
Color to fill with when out of space
minimum width
maximum width
minimum height
maximum height
viewport coordinates. (drawable area for widget)
viewport size. (drawable area for widget)
If a coordinate is within writing area, and writing area actually exists
move seek for next write to terminal. can only write in between: (_viewX .. _viewX + _viewWidth, _viewY .. _viewX + _viewHeight)
writes a character on terminal
writes a (d)string to terminal. if it does not fit in one line, it is wrapped
fill current line with a character. max is ignored if max==0
activate the passed widget if this is actually the correct widget
called by itself, to update events subscribed to
called by children when they want to re-subscribe to events
to set cursor position on terminal. will only work if this is active widget. set x or y or both to negative to hide cursor
called to request to scrollX
called to request to scrollY
Called after UI has been run
Called when mouse is clicked with cursor on this widget.
Called when key is pressed and this widget is active.
Called when widget size is changed, or widget should recalculate it's child widgets' sizes;
Called when the widget is rescrolled, but size not changed.
called right after this widget is activated, or de-activated
called often. msecs is the msecs since last timerEvent, not accurate
Called to update this widget
To request parent to trigger an update event
To request parent to trigger a resize event
use to change the custom initialize event
use to change the custom mouse event
use to change the custom keyboard event
use to change the custom resize event
use to change the custom activate event
use to change the custom timer event
specifies ratio of height or width (depending on parent layout type)
visibility of the widget.
horizontal scroll.
vertical scroll.
width of widget
fixed width setter. This will actually do minWidth=maxWidth=value and call requestResize
height of widget
fixed height setter. This will actually do minHeight=maxHeight=value and call requestResize
minimum width
minimum height
maximum width
maximum height
Used to place widgets in an order (i.e vertical or horizontal)