Definition at line 209 of file CMenuWindow.hpp.
Exponent::GUI::Windowing::CMenuWindow::CMenuRoot::CMenuRoot | ( | IWindow * | parent | ) |
Construction
parent | The parent menu window, this may be NULL |
virtual Exponent::GUI::Windowing::CMenuWindow::CMenuRoot::~CMenuRoot | ( | ) | [virtual] |
Destruction
bool Exponent::GUI::Windowing::CMenuWindow::CMenuRoot::doesMenuHaveExtraItems | ( | bool & | selectable | ) | [protected] |
Does it have a sub menu item
selectable | On return is true if selectable items found, false otherwise |
bool | True if sub menus found, false ohterwise |
virtual void Exponent::GUI::Windowing::CMenuWindow::CMenuRoot::drawRootControl | ( | CGraphics & | graphics | ) | [virtual] |
Draw the root control
graphics | The graphics handle to draw with |
bool Exponent::GUI::Windowing::CMenuWindow::CMenuRoot::findMaxIconDimension | ( | CDimension & | maxDimension | ) | [protected] |
Find the max icon dimensions
maxDimension | On return holds the max dimensions of the images contained within the menu |
bool | True if icons were found, false otherwise |
void Exponent::GUI::Windowing::CMenuWindow::CMenuRoot::findMaxStringDimension | ( | CDimension & | maxDimension | ) | [protected] |
Find the biggest dimensions in the string sthat we have
maxDimension | On return stores the max dimension string we are using |
virtual CFont* Exponent::GUI::Windowing::CMenuWindow::CMenuRoot::getFont | ( | ) | [inline, virtual] |
Get the font
CFont* | The font in use |
Definition at line 292 of file CMenuWindow.hpp.
References m_font.
virtual CMenu* Exponent::GUI::Windowing::CMenuWindow::CMenuRoot::getMenu | ( | ) | const [inline, virtual] |
Get the mneu
CMenu* | The menu |
Definition at line 271 of file CMenuWindow.hpp.
References m_menu.
virtual const SMenuColours& Exponent::GUI::Windowing::CMenuWindow::CMenuRoot::getMenuColours | ( | ) | const [inline, virtual] |
Get the menu colours
const | SMenuColours& The menu colours |
Definition at line 304 of file CMenuWindow.hpp.
References m_colours.
virtual void Exponent::GUI::Windowing::CMenuWindow::CMenuRoot::handleLeftButtonDown | ( | CMouseEvent & | event | ) | [virtual] |
Handle left button being clicked
event | The mouse event to handle |
virtual void Exponent::GUI::Windowing::CMenuWindow::CMenuRoot::handleLeftButtonUp | ( | CMouseEvent & | event | ) | [virtual] |
Handle left button being released
event | The mouse event to handle |
virtual void Exponent::GUI::Windowing::CMenuWindow::CMenuRoot::handleMouseLeavingArea | ( | CMouseEvent & | event | ) | [virtual] |
Handle a mouse leaving movement
event | The mouse event to handle |
virtual void Exponent::GUI::Windowing::CMenuWindow::CMenuRoot::handleMouseMovement | ( | CMouseEvent & | event | ) | [virtual] |
Handle the mouse movement
event | The mouse event to handle |
virtual void Exponent::GUI::Windowing::CMenuWindow::CMenuRoot::setCurrentSelection | ( | const long | selection = CMENU_WINDOW_NO_SELECTION |
) | [virtual] |
Set the selected entry
selection | If CMENU_WINDOW_NO_SELECTION Then nothing is selected, else the entry |
virtual void Exponent::GUI::Windowing::CMenuWindow::CMenuRoot::setFont | ( | CFont * | font | ) | [virtual] |
Set the font
font | The font to use |
virtual CDimension* Exponent::GUI::Windowing::CMenuWindow::CMenuRoot::setMenu | ( | CMenu * | menu | ) | [virtual] |
Set the menu
menu | The menu to use |
CDimension* | The total dimension of the mneu |
virtual void Exponent::GUI::Windowing::CMenuWindow::CMenuRoot::setMenuColours | ( | const SMenuColours & | colours | ) | [virtual] |
Set the window colours
colours | The colours of the menu items |
virtual void Exponent::GUI::Windowing::CMenuWindow::CMenuRoot::setMinimumWidth | ( | const long | width | ) | [virtual] |
Set the minimum Width
width | The minimum menu width in pixels |
virtual void Exponent::GUI::Windowing::CMenuWindow::CMenuRoot::setRootArea | ( | const CRect & | area | ) | [inline, virtual] |
Set the area
area | The area of the control root |
Definition at line 277 of file CMenuWindow.hpp.
References m_rootArea.
virtual void Exponent::GUI::Windowing::CMenuWindow::CMenuRoot::useIcons | ( | const bool | icons = true |
) | [virtual] |
Use icons
icons | If true then menu items will have icons shown (if they have them) if false, no icons are shown |
long Exponent::GUI::Windowing::CMenuWindow::CMenuRoot::m_currentSelection [protected] |
The currently selected item
Definition at line 365 of file CMenuWindow.hpp.
CFont* Exponent::GUI::Windowing::CMenuWindow::CMenuRoot::m_font [protected] |
long Exponent::GUI::Windowing::CMenuWindow::CMenuRoot::m_guardSelection [protected] |
Item selected on mouse down
Definition at line 366 of file CMenuWindow.hpp.
CMenu* Exponent::GUI::Windowing::CMenuWindow::CMenuRoot::m_menu [protected] |
long Exponent::GUI::Windowing::CMenuWindow::CMenuRoot::m_minimumWidth [protected] |
Width should be >= this
Definition at line 364 of file CMenuWindow.hpp.
CRect Exponent::GUI::Windowing::CMenuWindow::CMenuRoot::m_rootArea [protected] |
The are of the root control
Definition at line 370 of file CMenuWindow.hpp.
Referenced by setRootArea().
bool Exponent::GUI::Windowing::CMenuWindow::CMenuRoot::m_useIcons [protected] |
Should icons be used?
Definition at line 371 of file CMenuWindow.hpp.