|
CFx SDK Documentation 2026 SP0
|
#include <FxUIMenu.h>
Additional Inherited Members | |
Public Types inherited from CFxUIBaseView | |
| enum | TextAlignment { AlignLeft = 0x0001 , AlignRight = 0x0002 , AlignHCenter = 0x0004 , AlignJustify = 0x0008 , AlignTop = 0x0020 , AlignBottom = 0x0040 , AlignVCenter = 0x0080 , AlignBaseline = 0x0100 , AlignCenter = AlignVCenter | AlignHCenter } |
| enum | FocusPolicyType { eNoFocus = 0 , eTabFocus = 0x1 , eClickFocus = 0x2 , eStrongFocus = eTabFocus | eClickFocus | 0x8 , eWheelFocus = eStrongFocus | 0x4 , eKeyboardOnSetfocus = 0x10 } |
| enum | UIWidthSizePolicy { eExpanding = -1 , eXS = 0 , eS , eM , eL , eXL } |
| enum | UIScrollBarPolicy { eScrollBarAsNeeded = 0 , eScrollBarAlwaysOff , eScrollBarAlwaysOn } |
Static Public Member Functions inherited from CFxUIBaseView | |
| static void | setTabOrder (CFxUIObject *first, CFxUIObject *second) |
Protected Member Functions inherited from CFxUIObject | |
| CFxUIObject * | sender () |
Protected Attributes inherited from CFxUIObject | |
| CFxUIObjectImpl * | m_pImpl |
| CFxUIObjectData * | m_pData |
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.
| CFxUIMenu::CFxUIMenu | ( | ) |
Constructor
| CFxUIMenu::~CFxUIMenu | ( | ) |
Destructor
| CFxUISignal< void(void)> & CFxUIMenu::aboutToHide | ( | ) |
Signal is emitted when menu is about hide.
| CFxUISignal< void(void)> & CFxUIMenu::aboutToShow | ( | ) |
Signal is emitted when menu is about show.
| void CFxUIMenu::addAction | ( | CFxUIAction * | pAction | ) |
Adds the action action to the menu's list of actions.
| pAction | Pointer to the action that need to be added to list. |
Adds the pMenu menu to the menu's list of menu-items.
| pMenu | Pointer to the menu that need to be added to list. |
| void CFxUIMenu::addSeparator | ( | ) |
Adds a new separator action,
| void CFxUIMenu::clear | ( | ) |
Removes all the menu's actions. Actions owned by the menu and not shown in any other widget are deleted.
| CFxUIAction * CFxUIMenu::getActiveAction | ( | ) |
Get active action of this menu
| void CFxUIMenu::hide | ( | ) |
Hide the menu
| CFxUISignal< void(void)> & CFxUIMenu::menuPressed | ( | ) |
Signal is emitted when menu is pressed.
| CFxUIPalette CFxUIMenu::palette | ( | ) |
Get the menu palette.
Return The palette is used by the menu style in rendering menu.
| void CFxUIMenu::popup | ( | CFxUIBaseView * | anchorView | ) |
| void CFxUIMenu::setActiveAction | ( | CFxUIAction * | action | ) |
Sets active action of this menu
| action |
| void CFxUIMenu::setBorderWidth | ( | float | width | ) |
Sets the border width of view.
| width | Input |
| void CFxUIMenu::setPalette | ( | const CFxUIPalette & | palette | ) |
Sets the view paltte.
The palette is used by the menu style in rendering menu.
| palette | Input |
| void CFxUIMenu::setPosition | ( | const CFxUIPoint & | pt | ) |
Sets the position of Menu.
| pt. |
| void CFxUIMenu::setTitle | ( | const CFxUIString & | text | ) |
Sets title of this menu