called right after this widget is activated, or de-activated, i.e: is made _activeWidget, or un-made _activeWidget
For cycling between widgets. Returns false, always.
Called after _display has been set and this widget is ready to be used
Called when key is pressed and this widget is active.
Called when mouse is clicked with cursor on this widget.
Called by itself (not necessarily) to register itself as a key handler
Called to request this widget to resize at next update
Called by itself when it needs to request an update
Called when widget size is changed, or widget should recalculate it's child widgets' sizes;
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
called often. msecs is the msecs since last timerEvent, not accurate
Called by parent to update this widget
use to change the custom activate event
use to change the custom initialize event
use to change the custom keyboard event
use to change the custom mouse event
use to change the custom resize event
use to change the custom timer event
visibility of the widget. setter
visibility of the widget. getter
size of the widget. getter **NOTE: call this.requestResize() if you change the size!**
size of the widget. setter
size of width (height/width, depending of Layout.Type it is in) of this widget, in ratio to other widgets in that layout
custom onActivate event, if not null, it should be called before doing anything else in activateEvent
custom onInit event, if not null, it should be called before doing anything else in init();
custom keyboard event, if not null, it should be called before doing anything else in keyboardEvent.
custom mouse event, if not null, it should be called before doing anything else in mouseEvent.
custom resize event, if not null, it should be called before doing anything else in the resizeEvent
custom onTimer event, if not null, it should be called before doing anything else in timerEvent
used to write to terminal
whether this widget should be drawn or not
size of this widget
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
whether the widget wants input
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
Base class for all widgets, including layouts and QTerminal
Use this as parent-class for new widgets