Public Member Functions | |
HMENU | handle () |
The Windows handle of the menu. | |
void | addAtBottom (MenuItem item) |
Adds a new item at the bottom of this menu. | |
void | add (int index, MenuItem item) |
Adds an item to this menu at the given position. | |
void | remove (int index) |
Removes an item from this menu. | |
void | refresh () |
Refreshes the item list of this Menu object. | |
~this () | |
Properties | |
final override uint | toHash () |
Returns the hash value of this Menu. | |
int | length () |
The number of items in this menu. | |
Operators | |
final override intBool | opEquals (Object o) |
final bool | opEquals (Menu a) |
Menu | opCatAssign (MenuItem item) |
Adds a new item at the bottom of this menu. | |
MenuItem | opIndex (int index) |
Gets an item from the menu by index. | |
Protected Member Functions | |
this (HMENU h, bool autoDelete) | |
bool | shouldDelete () |
void | update (MenuItem it) |
void | updateDisplay () |
smjg.libs.sdwf.menu.Menu.this | ( | HMENU | h, | |
bool | autoDelete | |||
) | [protected] |
Reimplemented in smjg.libs.sdwf.menu.MenuBar, and smjg.libs.sdwf.menu.MenuPopup.
smjg.libs.sdwf.menu.Menu.~this | ( | ) |
HMENU smjg.libs.sdwf.menu.Menu.handle | ( | ) |
The Windows handle of the menu.
void smjg.libs.sdwf.menu.Menu.addAtBottom | ( | MenuItem | item | ) |
void smjg.libs.sdwf.menu.Menu.add | ( | int | index, | |
MenuItem | item | |||
) |
void smjg.libs.sdwf.menu.Menu.remove | ( | int | index | ) |
Removes an item from this menu.
index | zero-based index of item to remove. |
void smjg.libs.sdwf.menu.Menu.refresh | ( | ) |
Refreshes the item list of this Menu object.
This is primarily for internal use, but applications can also use it in case the menu can be modified by means external to the Menu and MenuItem SDWF objects.
final override uint smjg.libs.sdwf.menu.Menu.toHash | ( | ) |
Returns the hash value of this Menu.
int smjg.libs.sdwf.menu.Menu.length | ( | ) |
The number of items in this menu.
final override intBool smjg.libs.sdwf.menu.Menu.opEquals | ( | Object | o | ) |
Determines whether this Menu object is equal to another object.
final bool smjg.libs.sdwf.menu.Menu.opEquals | ( | Menu | a | ) |
MenuItem smjg.libs.sdwf.menu.Menu.opIndex | ( | int | index | ) |
Gets an item from the menu by index.
index | zero-based index of item to retrieve. |
bool smjg.libs.sdwf.menu.Menu.shouldDelete | ( | ) | [protected] |
Reimplemented in smjg.libs.sdwf.menu.MenuBar, and smjg.libs.sdwf.menu.MenuPopup.
void smjg.libs.sdwf.menu.Menu.update | ( | MenuItem | it | ) | [protected] |
void smjg.libs.sdwf.menu.Menu.updateDisplay | ( | ) | [protected] |
Reimplemented in smjg.libs.sdwf.menu.MenuBar.