|
HDK
|
#include <DT_Plugin.h>
Inheritance diagram for DT_MenuItem:Public Member Functions | |
| DT_MenuItem (const UT_StringHolder &token, const UT_StringHolder &label) | |
| const UT_StringHolder & | token () const |
| const UT_StringHolder & | label () const |
| bool | operator== (const DT_MenuItem &other) const |
Static Public Member Functions | |
| static int | compare (const DT_MenuItem *m1, const DT_MenuItem *m2) |
A single menu item object. A menu item consists of a label, which is used for display, and a token, which is used for setting a value, and is not user-visible. The token should be globally unique for the top menu and all its sub-menus. A menu item can also be marked as having sub-menu. This, however, only applies to node menus, not parameter menus. For parameter menus, the flag is ignored.
Definition at line 56 of file DT_Plugin.h.
| DT_MenuItem::DT_MenuItem | ( | const UT_StringHolder & | token, |
| const UT_StringHolder & | label | ||
| ) |
|
static |
| const UT_StringHolder& DT_MenuItem::label | ( | ) | const |
| bool DT_MenuItem::operator== | ( | const DT_MenuItem & | other | ) | const |
| const UT_StringHolder& DT_MenuItem::token | ( | ) | const |