CFx SDK Documentation
2022 SP0
|
#include <FxGripMenu.h>
Public Member Functions | |
ODRX_DECLARE_MEMBERS (CFxGripMenu) | |
CFxGripMenu () | |
~CFxGripMenu () override | |
virtual void | AddItem (const CFxString &sItemText, bool bChecked=false)=0 |
virtual int | Exec (int posX, int posY)=0 |
virtual bool | SetMenu (void *pMenu)=0 |
Public Member Functions inherited from OdRxObject | |
ODRX_HEAP_OPERATORS () | |
OdRxObject () | |
virtual | ~OdRxObject () |
virtual OdRxObject * | queryX (const OdRxClass *pClass) const |
virtual OdRxObject * | x (const OdRxClass *pClass) const |
virtual OdRxClass * | isA () const |
virtual void | addRef ()=0 |
virtual void | release ()=0 |
virtual long | numRefs () const |
bool | isKindOf (const OdRxClass *pClass) const |
virtual OdRxObjectPtr | clone () const |
virtual void | copyFrom (const OdRxObject *pSource) |
virtual OdRx::Ordering | comparedTo (const OdRxObject *pOther) const |
virtual bool | isEqualTo (const OdRxObject *pOther) const |
Additional Inherited Members | |
Static Public Member Functions inherited from OdRxObject | |
static OdRxObjectPtr | cast (const OdRxObject *pointer) |
static OdRxClass * | desc () |
Description: Represents User Grip Menu. Library: DDKERNEL
Definition at line 29 of file FxGripMenu.h.
CFxGripMenu::CFxGripMenu | ( | ) |
Constructor
|
override |
Destructor
|
pure virtual |
Description: Adds an menu item to this menu.
sItemText | Adds specified string as menu item |
bChecked | if true check mark will appear with menu item |
|
pure virtual |
Description: Displays this menu at specified location Returns one-based index of selected item and return 0 if no item is selected.
posX | Location X co-ordinate |
posY | Location Y co-ordinate |
CFxGripMenu::ODRX_DECLARE_MEMBERS | ( | CFxGripMenu | ) |
|
pure virtual |
Description: Sets pre-created menu to this object. Returns true if menu is valid.
pMenu | pointer of pre-created menu.It can be another CFxGripMenu or any OS specific menu(i.e HMENU on Windows,NSMenu on Mac) |