Returns the length of the scrollbar in pixels.
Returns the maximum value of the slider.
Sets the new maximum value and bar lenght of the slider. Position is kept or lowered if maximum is reached.
Returns the slider position.
Sets the slider position, and redraws the slider. Returns the new slider position.
Set to double.nan if value is less than travellength, or the ratio between
Called shen the scrollbar's value is changed
Common input handler, must be set upon program initialization for text input, etc.
Contains the position of the element. Should be only modified with functions to ensure consistency.
Points to the container for two-way communication
Contains the text of the element if any. Should be modified with functions to ensure redraws.
Passed with other event informations when event is caused. Can be something like the name of the instance.
Contains various status flags.
Sets a custom style for this element. If not set, then it'll get the style from it's parent.
Called on left mouseclick released
Called on right mouseclick released
Called on middle mouseclick released
Called if mouse is moved on object
Called if mouse is scrolled on object
Stores the last known mouse position for future reference
Returns the text of this element.
Sets whether the element is enabled or not.
Returns whether the element is enabled or not.
Updates the output. Every subclass must override it.
Returns the source string.
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.
Returns the next available StyleSheet.
Called when an object receives focus.
Called when an object loses focus.
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.
Passes key events to the focused element when not in text editing mode.
Returns whether the element is focused
Returns whether the element is pressed
Returns whether the element is checked