Inheritance diagram for Exponent::GUI::Controls::CMenuItemDisplay:
Definition at line 47 of file CMenuItemDisplay.hpp.
Exponent::GUI::Controls::CMenuItemDisplay::CMenuItemDisplay | ( | IControlRoot * | root, | |
const long | uniqueId, | |||
const CRect & | area, | |||
CMenuItem * | menuItem, | |||
const bool | useIcons, | |||
const bool | selectable, | |||
const bool | subMenu, | |||
const long | iconSize | |||
) |
Construction
root | The root control | |
uniqueId | The id of this control | |
area | The area of this control | |
menuItem | The menu item to display | |
useIcons | If true icons are drawn, if false they are not | |
selectable | If true the itemis a selectable entry | |
subMenu | If true item has submenu | |
iconSize | The size of the icons if used |
virtual Exponent::GUI::Controls::CMenuItemDisplay::~CMenuItemDisplay | ( | ) | [virtual] |
Destruction
virtual void Exponent::GUI::Controls::CMenuItemDisplay::drawControl | ( | CGraphics & | graphics | ) | [virtual] |
Draw the control
graphics | The graphics context |
Reimplemented from Exponent::GUI::Controls::CControlPanel.
virtual const CMenuItem* Exponent::GUI::Controls::CMenuItemDisplay::getMenuItem | ( | ) | const [inline, virtual] |
Get the menu item
const | CMenuItem* The menu item |
Definition at line 95 of file CMenuItemDisplay.hpp.
References m_menuItem.
virtual CMenuItem* Exponent::GUI::Controls::CMenuItemDisplay::getMutableMenuItem | ( | ) | [inline, virtual] |
Get the menu item
CMenuItem* | The menu item |
Definition at line 101 of file CMenuItemDisplay.hpp.
References m_menuItem.
virtual void Exponent::GUI::Controls::CMenuItemDisplay::mouseIsOver | ( | const bool | mouseOver = true |
) | [virtual] |
Is the mouse over this control
mouseOver | True if you want to spoof mouse over, false otherwise |
virtual void Exponent::GUI::Controls::CMenuItemDisplay::setColours | ( | const SMenuColours & | colours | ) | [virtual] |
Set the colours
colours | The menu colours |
virtual void Exponent::GUI::Controls::CMenuItemDisplay::setFont | ( | CFont * | font | ) | [virtual] |
Set the font
font | The font to draw with |
virtual void Exponent::GUI::Controls::CMenuItemDisplay::setMenuItem | ( | CMenuItem * | item | ) | [virtual] |
Set the menu item
item | The item to display |
virtual void Exponent::GUI::Controls::CMenuItemDisplay::useIcons | ( | const bool | useIcons = true |
) | [inline, virtual] |
Use icons
useIcons | If true icons are drawn, if false they are not |
Definition at line 130 of file CMenuItemDisplay.hpp.
References m_useIcons.
const long Exponent::GUI::Controls::CMenuItemDisplay::CMENUITEM_DISPLAY_SEPERATOR_WIDTH_FROM_RIGHT = 12 [static] |
Distance for the seperator
Definition at line 61 of file CMenuItemDisplay.hpp.
const long Exponent::GUI::Controls::CMenuItemDisplay::CMENUITEM_DISPLAY_WIDTH_FROM_LEFT = 24 [static] |
Distance from the left
Definition at line 59 of file CMenuItemDisplay.hpp.
const long Exponent::GUI::Controls::CMenuItemDisplay::CMENUITEM_DISPLAY_WIDTH_FROM_RIGHT = 48 [static] |
Distance from the right
Definition at line 60 of file CMenuItemDisplay.hpp.
The colours of the menu
Definition at line 237 of file CMenuItemDisplay.hpp.
bool Exponent::GUI::Controls::CMenuItemDisplay::m_hasSelect [protected] |
Is there a select?
Definition at line 241 of file CMenuItemDisplay.hpp.
bool Exponent::GUI::Controls::CMenuItemDisplay::m_hasSubMenu [protected] |
Is there a sub menu?
Definition at line 240 of file CMenuItemDisplay.hpp.
long Exponent::GUI::Controls::CMenuItemDisplay::m_iconSize [protected] |
What is the icon size..
Definition at line 242 of file CMenuItemDisplay.hpp.
The image label
Definition at line 246 of file CMenuItemDisplay.hpp.
The menu item
Definition at line 244 of file CMenuItemDisplay.hpp.
Referenced by getMenuItem(), and getMutableMenuItem().
bool Exponent::GUI::Controls::CMenuItemDisplay::m_mouseOver [protected] |
The mouse is over this control
Definition at line 238 of file CMenuItemDisplay.hpp.
TAutomaticPointer<CMenuItemSelectable> Exponent::GUI::Controls::CMenuItemDisplay::m_selectableControl [protected] |
The selectable tick
Definition at line 248 of file CMenuItemDisplay.hpp.
TAutomaticPointer<CMenuItemSubMenuPointer> Exponent::GUI::Controls::CMenuItemDisplay::m_subMenuPointer [protected] |
The sub menu arrow pointer
Definition at line 247 of file CMenuItemDisplay.hpp.
The title label
Definition at line 245 of file CMenuItemDisplay.hpp.
bool Exponent::GUI::Controls::CMenuItemDisplay::m_useIcons [protected] |