CFx SDK Documentation  2023 SP0
Public Member Functions | List of all members
CFxGripMenu Class Referenceabstract

#include <FxGripMenu.h>

Inheritance diagram for CFxGripMenu:
OdRxObject

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 OdRxObjectqueryX (const OdRxClass *pClass) const
 
virtual OdRxObjectx (const OdRxClass *pClass) const
 
virtual OdRxClassisA () 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 OdRxClassdesc ()
 

Detailed Description

Description: Represents User Grip Menu. Library: DDKERNEL

Definition at line 29 of file FxGripMenu.h.

Constructor & Destructor Documentation

◆ CFxGripMenu()

CFxGripMenu::CFxGripMenu ( )

Constructor

◆ ~CFxGripMenu()

CFxGripMenu::~CFxGripMenu ( )
override

Destructor

Member Function Documentation

◆ AddItem()

virtual void CFxGripMenu::AddItem ( const CFxString sItemText,
bool  bChecked = false 
)
pure virtual

Description: Adds an menu item to this menu.

Parameters
sItemTextAdds specified string as menu item
bCheckedif true check mark will appear with menu item

◆ Exec()

virtual int CFxGripMenu::Exec ( int  posX,
int  posY 
)
pure virtual

Description: Displays this menu at specified location Returns one-based index of selected item and return 0 if no item is selected.

Parameters
posXLocation X co-ordinate
posYLocation Y co-ordinate

◆ ODRX_DECLARE_MEMBERS()

CFxGripMenu::ODRX_DECLARE_MEMBERS ( CFxGripMenu  )

◆ SetMenu()

virtual bool CFxGripMenu::SetMenu ( void pMenu)
pure virtual

Description: Sets pre-created menu to this object. Returns true if menu is valid.

Parameters
pMenupointer of pre-created menu.It can be another CFxGripMenu or any OS specific menu(i.e HMENU on Windows,NSMenu on Mac)

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