PopUpMenuElement

Defines a single MenuElement, also can contain multiple subelements.

Constructors

this
this(string source, dstring text, dstring secondaryText, PopUpMenuElement[] subElements)

Generates a menu element with the supplied parameters. Uses the default formatting to initialize texts.

this
this(string source, Text text, Text secondaryText, PopUpMenuElement[] subElements)

Generates a menu element with the supplied parameters. Text formatting can be supplied with the objects.

Members

Functions

getIcon
deprecated Bitmap8Bit getIcon()

DEPRECATED! REMOVE BY VER 0.11!

getLength
size_t getLength()

Returns the lenght of the underlying array.

getSubElements
PopUpMenuElement[] getSubElements()

Returns all subelements of this menu element.

loadSubElements
void loadSubElements(PopUpMenuElement[] e)

Assigns this current object's all subelements at once.

opIndex
PopUpMenuElement opIndex(size_t i)

Gets the subelement at the given index.

opIndexAssign
PopUpMenuElement opIndexAssign(PopUpMenuElement value, size_t i)

Sets the subelement at the given index.

opOpAssign
PopUpMenuElement opOpAssign(PopUpMenuElement value)

Implements appending to the last position of the underlying array.

setIcon
deprecated void setIcon(Bitmap8Bit icon)

DEPRECATED! REMOVE BY VER 0.11!

setLength
void setLength(int l)

Sets the lenght of the underlying array.

Static functions

createSeparator
PopUpMenuElement createSeparator()

Creates an empty separator element.

Variables

secondaryText
Text secondaryText;

Primary and secondary display texts

source
string source;

Source identifier.

text
Text text;
Undocumented in source.

Meta