Inheritance diagram for Exponent::GUI::Controls::CPopupButton:
Definition at line 41 of file CPopupButton.hpp.
Exponent::GUI::Controls::CPopupButton::CPopupButton | ( | IControlRoot * | root, | |
const long | uniqueId, | |||
const CRect & | area, | |||
CMenu * | menu, | |||
IActionListener * | listener | |||
) |
Construction
root | The root control that this control is being added to | |
uniqueId | The unique Identifier of this control or CCONTROL_NO_ID_REQUIRED if no id is required | |
area | The area of this control relative to the root controls top left | |
listener | The action listener | |
menu | The menu to display on click |
virtual Exponent::GUI::Controls::CPopupButton::~CPopupButton | ( | ) | [virtual] |
Destruction
virtual CMenuEvent* Exponent::GUI::Controls::CPopupButton::getLastMenuEvent | ( | ) | const [inline, virtual] |
Get the last menu event
CMenuEvent* | The last menu event recieved |
Definition at line 118 of file CPopupButton.hpp.
References myMenuEvent.
virtual const CMenu* Exponent::GUI::Controls::CPopupButton::getMenu | ( | ) | const [inline, virtual] |
Get the menu
const | CMenu* The menu |
Definition at line 112 of file CPopupButton.hpp.
References m_menu.
virtual CMenuWindow* Exponent::GUI::Controls::CPopupButton::getMenuWindow | ( | ) | const [inline, virtual] |
Get the menu window
CMenuWindow* | The menu window |
Definition at line 133 of file CPopupButton.hpp.
References m_menuWindow.
virtual CMenu* Exponent::GUI::Controls::CPopupButton::getMutableMenu | ( | ) | [inline, virtual] |
Get the menu
CMenu* | The menu |
Definition at line 106 of file CPopupButton.hpp.
References m_menu.
virtual void Exponent::GUI::Controls::CPopupButton::handleLeftButtonUp | ( | CMouseEvent & | event | ) | [virtual] |
Handle left button being released
event | The event to handle |
Implements Exponent::GUI::Controls::CLatchingButton.
virtual void Exponent::GUI::Controls::CPopupButton::handleMenuClosing | ( | const CMenuEvent & | event | ) | [virtual] |
Handle a menu closing
event | The event to handle |
virtual void Exponent::GUI::Controls::CPopupButton::handleMenuOpening | ( | const CMenuEvent & | event | ) | [inline, virtual] |
Handle a menu opening
event | The event to handle |
Definition at line 86 of file CPopupButton.hpp.
virtual void Exponent::GUI::Controls::CPopupButton::handleMenuSelection | ( | const CMenuEvent & | event | ) | [virtual] |
Handle a menu selection
event | The event to handle |
virtual void Exponent::GUI::Controls::CPopupButton::setMenu | ( | CMenu * | menu | ) | [virtual] |
Set the menu
menu | The menu to display |
virtual void Exponent::GUI::Controls::CPopupButton::setMenuWindowAttributes | ( | CWindowAttributes * | windowAttributes, | |
const bool | useIcons = true | |||
) | [virtual] |
Set menu window attributes
windowAttributes | The attributes for the menu window | |
useIcons | If true icons are displayed for menu items, if false they are not |
CMenu* Exponent::GUI::Controls::CPopupButton::m_menu [protected] |
The menu to display
Definition at line 141 of file CPopupButton.hpp.
Referenced by getMenu(), and getMutableMenu().
bool Exponent::GUI::Controls::CPopupButton::m_useIcons [protected] |
If true menu window draws icons
Definition at line 145 of file CPopupButton.hpp.
CWindowAttributes* Exponent::GUI::Controls::CPopupButton::m_windowAttributes [protected] |
The window attributes
Definition at line 143 of file CPopupButton.hpp.
CMenuEvent* Exponent::GUI::Controls::CPopupButton::myMenuEvent [protected] |
The menu event to send to listeners
Definition at line 144 of file CPopupButton.hpp.
Referenced by getLastMenuEvent().