All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DT_MenuItem Class Reference

#include <DT_Plugin.h>

+ Inheritance diagram for DT_MenuItem:

Public Member Functions

 DT_MenuItem (const UT_StringHolder &token, const UT_StringHolder &label)
const UT_StringHoldertoken () const
const UT_StringHolderlabel () const
bool operator== (const DT_MenuItem &other) const

Static Public Member Functions

static int compare (const DT_MenuItem *m1, const DT_MenuItem *m2)

Detailed Description

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.

Constructor & Destructor Documentation

DT_MenuItem::DT_MenuItem ( const UT_StringHolder token,
const UT_StringHolder label 

Member Function Documentation

static int DT_MenuItem::compare ( const DT_MenuItem m1,
const DT_MenuItem m2 
const UT_StringHolder& DT_MenuItem::label ( ) const
bool DT_MenuItem::operator== ( const DT_MenuItem other) const
const UT_StringHolder& DT_MenuItem::token ( ) const

The documentation for this class was generated from the following file: