PopUpMenu

To create drop-down lists, menu bars, etc.

Constructors

this
this(PopUpMenuElement[] elements, string source, int iconWidth)
Undocumented in source.

Members

Functions

draw
void draw()
Undocumented in source. Be warned that the author may not have intended to support it.
onClick
void onClick(int offsetX, int offsetY, int type)
Undocumented in source. Be warned that the author may not have intended to support it.
onMouseMovement
void onMouseMovement(int x, int y)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

elements
PopUpMenuElement[] elements;
height
int height;
iconWidth
int iconWidth;
Undocumented in source.
icons
Bitmap8Bit[int] icons;
Undocumented in source.
minwidth
int minwidth;
select
int select;
width
int width;
Undocumented in source.

Inherited Members

From PopUpElement

output
BitmapDrawer output;
Undocumented in source.
inputhandler
InputHandler inputhandler;
Undocumented in source.
styleSheet
StyleSheet styleSheet;
Undocumented in source.
coordinates
Coordinate coordinates;
Undocumented in source.
customStyle
StyleSheet customStyle;
Undocumented in source.
parent
PopUpHandler parent;
Undocumented in source.
source
string source;
Undocumented in source.
text
dstring text;
Undocumented in source.
onDraw
void delegate() onDraw;

Called when the element finished drawing

onMouseClick
void delegate(Event ev) onMouseClick;

Called on mouse click on element

draw
void draw()
Undocumented in source.
onClick
void onClick(int offsetX, int offsetY, int type)

Mouse click events passed here

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

Mouse scroll events passed here

onMouseMovement
void onMouseMovement(int x, int y)

Mouse movement events passed here

addParent
void addParent(PopUpHandler p)
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.
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.

Meta