Custom constructor. "size" sets both the initial position and the size of the window. Buttons in the header can be set through the smallButtons parameter
Default constructor. "size" sets both the initial position and the size of the window. Adds a close button to the header.
Adds a child window to the current window.
Adds an element to the window.
Adds a WindowHandler to the window.
Adds a smallbutton to the header.
Puts a PopUpElement on the GUI.
Puts a PopUpElement on the GUI at the given position.
Pastes a bitmap to the given point using blitter, which threats color #0 as transparency.
Pastes a slice of a bitmap to the given point using blitter, which threats color #0 as transparency.
Pastes a repeated bitmap pattern over the specified area.
Clears the area within the target
Closes the window by calling the WindowHandler's closeWindow function.
Closes a single popup element.
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.
Draws the window. Intended to be used by the WindowHandler.
Draws an empty rectangle.
Draws an empty rectangle with line patterns.
Draws a filled rectangle with a specified color,
Draws the header.
Draws a line.
Draws a line pattern.
Draws a multi line text within the given prelimiter.
Draws a single line text within the given prelimiter.
Ends the popup session and closes all popups.
Fills an area with the specified color.
Called when an object receives focus.
Called when an object loses focus.
Returns the child windows.
Returns the window's position.
If the current window doesn't contain a custom StyleSheet, it gets from it's parent.
Returns the title of the window
Moves the window to the exact location.
Passes key events to the focused element when not in text editing mode.
Passes mouse click event
Passes mouse move event
Passes mouse scroll event
Moves the window by the given values.
Removes a child window from the current window.
Removes the WindowElement if 'we' is found within its ranges, does nothing otherwise.
Removes a smallbutton from the header.
Sets the cursor to the given type on request.
Gives focus to the windowelement requesting it.
Sets the size of the window, also issues a redraw.
Sets the new position for the window.
Sets the title of the window
XOR blits a repeated bitmap pattern over the specified area.
XOR blits a color index over a specified area.
Returns true if the window is focused
Sets the IS_ACTIVE flag to the given value
Returns the outputted bitmap. Can be overridden for 32 bit outputs.
Returns whether the window is moved or not
Sets whether the window is moved or not
Generates a generic close button
Called if not null after every draw update
Stores child windows
Custom stylesheet for this window
Stores all window elements here
Stores various flags
All focusable objects belonging to the window
The index of the currently focused element, or -1 if none
The handler of the window
Used for mouse move and wheel events
Stores the last mouse position.
Relative x and y coordinates for drag events
Called when the window is closed
Graphics output of the window
Stores reference to the parent
Position of the window
Contains the icons of the extra buttons. Might be replaced with a WindowElement in the future
Title of the window
Basic window. All other windows are inherited from this class.