CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
CFxUIMenu Class Reference

#include <FxUIMenu.h>

Inheritance diagram for CFxUIMenu:
CFxUIObject

Public Member Functions

 CFxUIMenu ()
 
 ~CFxUIMenu ()
 
void clear ()
 
void addAction (CFxUIAction *pAction)
 
void addMenu (CFxUIMenu *pMenu)
 
void addSeparator ()
 
void popup (CFxUIBaseView *anchorView)
 
void setTitle (const CFxUIString &text)
 
void hide ()
 
CFxUISignal< void(void)> & aboutToHide ()
 
CFxUISignal< void(void)> & aboutToShow ()
 
CFxUISignal< void(void)> & menuPressed ()
 
- Public Member Functions inherited from CFxUIObject
 CFxUIObject ()
 
virtual ~CFxUIObject ()
 
FxNativeHandle getHandle () const
 
void setHandle (FxNativeHandle handle)
 
void setParent (CFxUIObject *parent)
 
CFxUIObjectparent ()
 
const CFxUIObjectparent () const
 
void setObjectName (const CFxUIString &objectName)
 
CFxUIString objectName () const
 
bool setProperty (const char *name, const CFxUIVariant &value)
 
CFxUIVariant property (const char *name)
 
CFxUIList< CFxUIObject * > children () const
 
template<typename T >
CFxUIList< T > findChildren (const CFxUIString &name=CFxUIString())
 
void blockSignals (bool block)
 
bool signalsBlocked () const
 

Additional Inherited Members

- Protected Member Functions inherited from CFxUIObject
CFxUIObjectsender ()
 
- Protected Attributes inherited from CFxUIObject
CFxUIObjectImpl * m_pImpl
 
CFxUIObjectData * m_pData
 

Detailed Description

Class CFxUIMenu provides a menu widget for use in menu bars, context menus, and other popup menus.

Definition at line 27 of file FxUIMenu.h.

Constructor & Destructor Documentation

◆ CFxUIMenu()

CFxUIMenu::CFxUIMenu ( )

Constructor

◆ ~CFxUIMenu()

CFxUIMenu::~CFxUIMenu ( )

Destructor

Member Function Documentation

◆ aboutToHide()

CFxUISignal< void(void)> & CFxUIMenu::aboutToHide ( )

Signal is emitted when menu is about hide.

◆ aboutToShow()

CFxUISignal< void(void)> & CFxUIMenu::aboutToShow ( )

Signal is emitted when menu is about show.

◆ addAction()

void CFxUIMenu::addAction ( CFxUIAction pAction)

Adds the action action to the menu's list of actions.

Parameters
pActionPointer to the action that need to be added to list.

◆ addMenu()

void CFxUIMenu::addMenu ( CFxUIMenu pMenu)

Adds the pMenu menu to the menu's list of menu-items.

Parameters
pMenuPointer to the menu that need to be added to list.

◆ addSeparator()

void CFxUIMenu::addSeparator ( )

Adds a new separator action,

◆ clear()

void CFxUIMenu::clear ( )

Removes all the menu's actions. Actions owned by the menu and not shown in any other widget are deleted.

◆ hide()

void CFxUIMenu::hide ( )

Hide the menu

◆ menuPressed()

CFxUISignal< void(void)> & CFxUIMenu::menuPressed ( )

Signal is emitted when menu is pressed.

◆ popup()

void CFxUIMenu::popup ( CFxUIBaseView anchorView)

◆ setTitle()

void CFxUIMenu::setTitle ( const CFxUIString text)

Sets title of this menu


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