Cycles the focus on a single element. Returns -1 if end is reached, or the number of remaining elements that are cycleable in the direction.
Updates the output. Every subclass must override it.
Called when an object receives focus.
Called when an object loses focus.
Returns the next available StyleSheet.
Returns the text of this element.
Passes key events to the focused element when not in text editing mode.
Returns the source string.
Returns whether the element is checked
Sets whether the element is checked
Returns whether the element is focused
Returns whether the element is pressed
Returns true if the element will generate events on mouse press and mouse release. By default, only release is used.
Returns true if the element will generate events on mouse press and mouse release. By default, only release is used.
Sets whether the element is enabled or not.
Returns whether the element is enabled or not.
Common input handler, must be set upon program initialization for text input, etc.
Called when drawing is finished
Sets a custom style for this element. If not set, then it'll get the style from it's parent.
Contains various status flags.
Stores the last known mouse position for future reference
Called on left mouseclick released
Called on middle mouseclick released
Called if mouse is moved on object
Called on right mouseclick released
Called if mouse is scrolled on object
Points to the container for two-way communication
Contains the position of the element. Should be only modified with functions to ensure consistency.
Passed with other event informations when event is caused. Can be something like the name of the instance.
Contains the text of the element if any. Should be modified with functions to ensure redraws.
All Window elements inherit from this class. Provides basic interfacing with containers.