ElementContainer

Implements the

Members

Functions

getAbsolutePosition
Box getAbsolutePosition(WindowElement sender)

Returns the absolute position of the element.

requestCursor
void requestCursor(CursorType type)

Sets the cursor to the given type on request.

requestFocus
void requestFocus(WindowElement sender)

Gives focus to the element if applicable

Inherited Members

From PopUpHandler

addPopUpElement
void addPopUpElement(PopUpElement p)

Puts a PopUpElement on the GUI.

addPopUpElement
void addPopUpElement(PopUpElement p, int x, int y)

Puts a PopUpElement on the GUI at the given position.

endPopUpSession
void endPopUpSession(PopUpElement p)

Ends the popup session and closes all popups.

closePopUp
void closePopUp(PopUpElement p)

Closes a single popup element.

From Canvas

drawLine
void drawLine(Point from, Point to, ubyte color)

Draws a line.

drawLinePattern
void drawLinePattern(Point from, Point to, ubyte[] pattern)

Draws a line pattern.

drawBox
void drawBox(Box target, ubyte color)

Draws an empty rectangle.

drawBoxPattern
void drawBoxPattern(Box target, ubyte[] pattern)

Draws an empty rectangle with line patterns.

drawFilledBox
void drawFilledBox(Box target, ubyte color)

Draws a filled rectangle with a specified color.

bitBLT
void bitBLT(Point target, ABitmap source)

Pastes a bitmap to the given point using blitter, which threats color #0 as transparency.

bitBLT
void bitBLT(Point target, ABitmap source, Box slice)

Pastes a slice of a bitmap to the given point using blitter, which threats color #0 as transparency.

bitBLTPattern
void bitBLTPattern(Box target, ABitmap pattern)

Pastes a repeated bitmap pattern over the specified area.

xorBitBLT
void xorBitBLT(Box target, ABitmap pattern)

XOR blits a repeated bitmap pattern over the specified area.

xorBitBLT
void xorBitBLT(Box target, ubyte color)

XOR blits a color index over a specified area.

fill
void fill(Point target, ubyte color, ubyte background)

Fills an area with the specified color.

drawTextSL
void drawTextSL(Box target, Text text, Point offset)

Draws a single line text within the given prelimiter.

drawTextML
void drawTextML(Box target, Text text, Point offset)

Draws a multi line text within the given prelimiter.

clearArea
void clearArea(Box target)

Clears the area within the target

Meta