Creates an instance of WindowHandler.
Adds a background to the spritelayer without disrupting window priorities.
Adds a popup element into the environment and moves it to the current cursor position.
Adds a pop-up element into the environment and moves it to the given location.
Adds a window to the handler, then sets it to top and hands over the focus to it.
Called when an axis is being operated. The id should be generated from a string, usually the name of the binding. code is a duplicate of the code used for fast lookup of the binding, which also contains other info (deviceID, etc). timestamp is the time lapsed since the start of the program, can be used to measure time between keypresses. value is the current position of the axis normalized between -1.0 and +1.0 for joysticks, and 0.0 and +1.0 for analog triggers.
Removes the given popup element.
Removes the window from the list of windows, essentially closing it.
Ends the current pop-up session.
Returns the current cursor type.
Returns the default stylesheet (popup).
Returns the default stylesheet, either one that has been set locally to this handler, or the global one.
Initializes mouse drag event. Used to avoid issues from stray mouse release, etc.
Called when a keybinding event is generated. The id should be generated from a string, usually the name of the binding. code is a duplicate of the code used for fast lookup of the binding, which also contains other info (deviceID, etc). timestamp is the time lapsed since the start of the program, can be used to measure time between keypresses. NOTE: Hat events on joysticks don't generate keyReleased events, instead they generate keyPressed events on release.
Adds a DefaultDialog as a message box.
Called on mouse click events.
Called on mouse motion events.
Called on mouse wheel events.
Replaces the window's old sprite in the spritelayer's display list with the new one.
Sets the BaseWindow to the given object.
Sets the cursor to the given type.
Sets sender to be top priority, and hands focus to it.
Updates the sprite order by removing everything, then putting them back again.
Updates the window's coordinates. DUPLICATE FUNCTION OF refreshWindow! REMOVE IT BY RELEASE VERSION OF 0.10.0, AND REPLACE IT WITH AN ALIAS!
Returns the window priority or -1 if the window can't be found.
A window that is used for top-level stuff, like elements in the background, or an integrated window.
The type of the current cursor
Sets the default style for the windowhandler. If null, the global default will be used instead.
SDL cursor pointer to operate it
Handles windows as well as PopUpElements.