constructor
Layout type
override activate event
adds (appends) a widget to the widgetList, and makes space for it
adds (appends) widgets to the widgetList, and makes space for them
called to cycle between actveWidgets. This is called by owner widget
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 If a widget is too large to fit in, it's visibility is marked false
activate the passed widget if it's in the current layout, return if it was activated or not
Change the key used for cycling active widgets, changes it for all added widgets as well
override timer event to call child widgets' timers
called by owner widget to update
Color for unoccupied space
size of this widget
whether this widget should be drawn or not
specifies that how much height (in horizontal layout) or width (in vertical) is given to this widget. The ratio of all widgets is added up and height/width for each widget is then calculated using this
specifies whether this widget should receive the Tab key press, default is false, and should only be changed to true if only required, for example, in text editors
whether the widget wants input
used to write to terminal
For cycling between widgets. Returns false, always.
activate the passed widget if this is actually the correct widget, return if it was activated or not
changes the key used for cycling active widgets
custom onInit event, if not null, it should be called before doing anything else in init();
custom mouse event, if not null, it should be called before doing anything else in mouseEvent.
custom keyboard event, if not null, it should be called before doing anything else in keyboardEvent.
custom resize event, if not null, it should be called before doing anything else in the resizeEvent
custom onActivate event, if not null, it should be called before doing anything else in activateEvent
custom onTimer event, if not null, it should be called before doing anything else in timerEvent
Called by parent to update this widget
Called after _display has been set and this widget is ready to be used
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 right after this widget is activated, or de-activated, i.e: is made _activeWidget, or un-made _activeWidget
called often. msecs is the msecs since last timerEvent, not accurate
Called by itself when it needs to request an update
Called to request this widget to resize at next update
Called by itself (not necessarily) to register itself as a key handler
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
size of width (height/width, depending of Layout.Type it is in) of this widget, in ratio to other widgets in that layout
visibility of the widget. getter
visibility of the widget. setter
size of the widget. getter **NOTE: call this.requestResize() if you change the size!**
size of the widget. setter
Used to place widgets in an order (i.e vertical or horizontal)