Creates a new RasterWindow.
Adds a new layer then reorders the display list.
Adds a palette chunk to the end of the main palette.
Called when selection needs to be armed.
Clears an area of the palette with zeroes. Returns the original area.
Overrides the original onExit function for safe close.
Called when selection needs to be disarmed.
Returns the given palette index.
Copies and sets all alpha values to 255 to avoid transparency issues
Returns true if selection is armed
Loads a palette into the object. Returns the new palette of the object.
Loads a palette chunk into the object. The offset determines where the palette should be loaded. If it points to an existing place, the indices after that will be overwritten until the whole palette will be copied. If it points to the end or after it, then the palette will be made longer, and will pad with values #00000000 if needed. Returns the new palette of the object.
Enables or disables move
Called when the document settings window is needed to be opened.
Called when any of the modes are selected.
Passes mouse click event
Passes mouse move event
Removes a layer then reorders the display list.
Sets the given palette index to the given value.
Updates the raster of the window.
Overrides the original getOutput function to return a 32 bit bitmap instead.
Returns the palette of the object.
Redirect mouse events to document
Selection is armed, draw box, and redirect event to document
All focusable objects belonging to the window
Stores all window elements here
Title of the window
Used for mouse move and wheel events
The index of the currently focused element, or -1 if none
The handler of the window
Graphics output of the window
Relative x and y coordinates for drag events
Stores various flags
Stores the last mouse position.
Contains the icons of the extra buttons. Might be replaced with a WindowElement in the future
Position of the window
Custom stylesheet for this window
Stores child windows
Stores reference to the parent
Called when the window is closed
Called if not null after every draw update
Returns the window's position.
Sets the new position for the window.
If the current window doesn't contain a custom StyleSheet, it gets from it's parent.
Adds an element to the window.
Removes the WindowElement if 'we' is found within its ranges, does nothing otherwise.
Adds a smallbutton to the header.
Removes a smallbutton from the header.
Draws the window. Intended to be used by the WindowHandler.
Draws the header.
Returns true if the window is focused
Sets the IS_ACTIVE flag to the given value
Returns whether the window is moved or not
Sets whether the window is moved or not
Sets the title of the window
Returns the title of the window
Closes the window by calling the WindowHandler's closeWindow function.
Adds a WindowHandler to the window.
Moves the window to the exact location.
Moves the window by the given values.
Sets the size of the window, also issues a redraw.
Returns the outputted bitmap. Can be overridden for 32 bit outputs.
Gives focus to the windowelement requesting it.
Sets the cursor to the given type on request.
Adds a child window to the current window.
Removes a child window from the current window.
Returns the child windows.
Draws a line.
Draws a line pattern.
Draws an empty rectangle.
Draws an empty rectangle with line patterns.
Draws a filled rectangle with a specified color,
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.
XOR blits a repeated bitmap pattern over the specified area.
XOR blits a color index over a specified area.
Fills an area with the specified color.
Draws a single line text within the given prelimiter.
Draws a multi line text within the given prelimiter.
Clears the area within the target
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.
Passes mouse click event
Passes mouse move event
Passes mouse scroll event
Puts a PopUpElement on the GUI.
Puts a PopUpElement on the GUI at the given position.
Ends the popup session and closes all popups.
Closes a single popup element.
Generates a generic close button
Returns the palette of the object.
Returns the given palette index.
Sets the given palette index to the given value.
Adds a palette chunk to the end of the main palette.
Loads a palette into the object. Returns the new palette of the object.
Loads a palette chunk into the object. The offset determines where the palette should be loaded. If it points to an existing place, the indices after that will be overwritten until the whole palette will be copied. If it points to the end or after it, then the palette will be made longer, and will pad with values #00000000 if needed. Returns the new palette of the object.
Clears an area of the palette with zeroes. Returns the original area.
Implements a subraster using a window. Has the capability of skipping over individual layers.