PopUpElement

For creating pop-up elements like menus.

Members

Functions

addParent
void addParent(PopUpHandler p)
Undocumented in source. Be warned that the author may not have intended to support it.
draw
void draw()
Undocumented in source.
getOutput
ABitmap getOutput()

Returns the output of the element.

getPosition
Box getPosition()
Undocumented in source. Be warned that the author may not have intended to support it.
getStyleSheet
StyleSheet getStyleSheet()
Undocumented in source. Be warned that the author may not have intended to support it.
move
Box move(int x, int y)

Moves the PopUp to the given location

onClick
void onClick(int offsetX, int offsetY, int type)

Mouse click events passed here

onMouseMovement
void onMouseMovement(int x, int y)

Mouse movement events passed here

onScroll
void onScroll(int x, int y, int wX, int wY)

Mouse scroll events passed here

passMCE
void passMCE(MouseEventCommons mec, MouseClickEvent mce)
Undocumented in source. Be warned that the author may not have intended to support it.
passMME
void passMME(MouseEventCommons mec, MouseMotionEvent mme)
Undocumented in source. Be warned that the author may not have intended to support it.
passMWE
void passMWE(MouseEventCommons mec, MouseWheelEvent mwe)
Undocumented in source. Be warned that the author may not have intended to support it.
relMove
Box relMove(int x, int y)

Relatively moves the PopUp by the given amount

setPosition
Box setPosition(Box val)
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

inputhandler
InputHandler inputhandler;
Undocumented in source.
onDraw
void delegate() onDraw;

Called when the element finished drawing

Variables

customStyle
StyleSheet customStyle;
Undocumented in source.
onMouseClick
void delegate(Event ev) onMouseClick;

Called on mouse click on element

output
BitmapDrawer output;
Undocumented in source.
parent
PopUpHandler parent;
Undocumented in source.
position
Box position;
Undocumented in source.
source
string source;
Undocumented in source.
text
Text text;
Undocumented in source.

Meta