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. This method is preferred over directly accessing output.output, which won't be available in later versions.

getStyleSheet
StyleSheet getStyleSheet()
Undocumented in source. Be warned that the author may not have intended to support it.
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

Static variables

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

Called when the element finished drawing

styleSheet
StyleSheet styleSheet;
Undocumented in source.

Variables

coordinates
Coordinate coordinates;
Undocumented in source.
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.
source
string source;
Undocumented in source.
text
dstring text;
Undocumented in source.

Meta