Standard constructor. "size" sets both the initial position and the size of the window. Extra buttons are handled from the StyleSheet, currently unimplemented.
Adds a new WindowElement with the given event properties.
Adds a WindowHandler to the window.
Closes the window by calling the WindowHandler's closeWindow function.
Draws the window. Intended to be used by the WindowHandler.
Updates the output of the elements.
Called if an extra button was pressed.
If the current window doesn't contain a custom StyleSheet, it gets from it's parent.
Moves the window to the exact location.
Passes a keyboard event.
Passes a mouseDragEvent if the user clicked on an element, held down the button, and moved the mouse.
Detects where the mouse is clicked, then it either passes to an element, or tests whether the close button, an extra button was clicked, also tests for the header, which creates a drag event for moving the window.
Passes a mouseMotionEvent if the user moved the mouse.
Passes the scroll event to the element where the mouse pointer currently stands.
Moves the window by the given values.
Removes the WindowElement if 'we' is found within its ranges, does nothing otherwise.
Sets the height of the window, also issues a redraw.
Sets the size of the window, also issues a redraw.
Sets the width of the window, also issues a redraw.
Basic window. All other windows are inherited from this class.