constructor
background color
background color
the text to display
text color
milliseconds after it scrolls 1 pixel, in case text too long to fit in 1 line
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
Displays some text
And it can't handle new-line characters
If the text doesn't fit in width, it will move left-right