|  | OGRE 14.3
    Object-Oriented Graphics Rendering Engine | 
Basic selection menu widget. More...
#include <OgreTrays.h>
 Inheritance diagram for OgreBites::SelectMenu:
 Inheritance diagram for OgreBites::SelectMenu:| Public Member Functions | |
| SelectMenu (const Ogre::String &name, const Ogre::DisplayString &caption, Ogre::Real width, Ogre::Real boxWidth, size_t maxItemsShown) | |
| Do not instantiate any widgets directly. Use TrayManager. | |
| void | _cursorMoved (const Ogre::Vector2 &cursorPos, float wheelDelta) override | 
| void | _cursorPressed (const Ogre::Vector2 &cursorPos) override | 
| void | _cursorReleased (const Ogre::Vector2 &cursorPos) override | 
| void | _focusLost () override | 
| void | addItem (const Ogre::DisplayString &item) | 
| void | clearItems () | 
| bool | containsItem (const Ogre::DisplayString &item) | 
| void | copyItemsFrom (SelectMenu *other) | 
| const Ogre::DisplayString & | getCaption () | 
| const Ogre::StringVector & | getItems () | 
| size_t | getNumItems () | 
| Ogre::DisplayString | getSelectedItem () | 
| int | getSelectionIndex () | 
| void | insertItem (size_t index, const Ogre::DisplayString &item) | 
| bool | isExpanded () | 
| void | removeItem (const Ogre::DisplayString &item) | 
| void | removeItem (size_t index) | 
| void | selectItem (const Ogre::DisplayString &item, bool notifyListener=true) | 
| void | selectItem (size_t index, bool notifyListener=true) | 
| void | setCaption (const Ogre::DisplayString &caption) | 
| void | setItems (const Ogre::StringVector &items) | 
|  Public Member Functions inherited from OgreBites::Widget | |
| Widget () | |
| virtual | ~Widget () | 
| void | _assignListener (TrayListener *listener) | 
| void | _assignToTray (TrayLocation trayLoc) | 
| void | cleanup () | 
| const Ogre::String & | getName () | 
| Ogre::OverlayElement * | getOverlayElement () | 
| TrayLocation | getTrayLocation () | 
| void | hide () | 
| bool | isVisible () | 
| void | show () | 
| Additional Inherited Members | |
|  Static Public Member Functions inherited from OgreBites::Widget | |
| static Ogre::Vector2 | cursorOffset (Ogre::OverlayElement *element, const Ogre::Vector2 &cursorPos) | 
| Static utility method used to get the cursor's offset from the center of an overlay element in pixels. | |
| static void | fitCaptionToArea (const Ogre::DisplayString &caption, Ogre::TextAreaOverlayElement *area, Ogre::Real maxWidth) | 
| Static utility method to cut off a string to fit in a text area. | |
| static Ogre::Real | getCaptionWidth (const Ogre::DisplayString &caption, Ogre::TextAreaOverlayElement *area) | 
| Static utility method used to get the width of a caption in a text area. | |
| static bool | isCursorOver (Ogre::OverlayElement *element, const Ogre::Vector2 &cursorPos, Ogre::Real voidBorder=0) | 
| Static utility method to check if the cursor is over an overlay element. | |
| static void | nukeOverlayElement (Ogre::OverlayElement *element) | 
| Static utility method to recursively delete an overlay element plus all of its children from the system. | |
Basic selection menu widget.
| OgreBites::SelectMenu::SelectMenu | ( | const Ogre::String & | name, | 
| const Ogre::DisplayString & | caption, | ||
| Ogre::Real | width, | ||
| Ogre::Real | boxWidth, | ||
| size_t | maxItemsShown ) | 
Do not instantiate any widgets directly. Use TrayManager.
Referenced by copyItemsFrom().
| void OgreBites::SelectMenu::copyItemsFrom | ( | SelectMenu * | other | ) | 
References SelectMenu().
| 
 | inline | 
| 
 | inline | 
| void OgreBites::SelectMenu::setCaption | ( | const Ogre::DisplayString & | caption | ) | 
| 
 | inline | 
| 
 | inline | 
| void OgreBites::SelectMenu::setItems | ( | const Ogre::StringVector & | items | ) | 
Referenced by addItem(), and insertItem().
| 
 | inline | 
References setItems().
| 
 | inline | 
References setItems().
| void OgreBites::SelectMenu::removeItem | ( | const Ogre::DisplayString & | item | ) | 
| void OgreBites::SelectMenu::removeItem | ( | size_t | index | ) | 
| void OgreBites::SelectMenu::clearItems | ( | ) | 
| void OgreBites::SelectMenu::selectItem | ( | size_t | index, | 
| bool | notifyListener = true ) | 
| bool OgreBites::SelectMenu::containsItem | ( | const Ogre::DisplayString & | item | ) | 
| void OgreBites::SelectMenu::selectItem | ( | const Ogre::DisplayString & | item, | 
| bool | notifyListener = true ) | 
| Ogre::DisplayString OgreBites::SelectMenu::getSelectedItem | ( | ) | 
| 
 | inline | 
| 
 | overridevirtual | 
Reimplemented from OgreBites::Widget.
| 
 | inlineoverridevirtual | 
Reimplemented from OgreBites::Widget.
| 
 | overridevirtual | 
Reimplemented from OgreBites::Widget.
| 
 | inlineoverridevirtual | 
Reimplemented from OgreBites::Widget.