OGRE
1.10.12
Object-Oriented Graphics Rendering Engine
|
Basic selection menu widget. More...
#include <OgreTrays.h>
Static Public Member Functions | |
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. More... | |
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. More... | |
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. More... | |
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. More... | |
static void | nukeOverlayElement (Ogre::OverlayElement *element) |
Static utility method to recursively delete an overlay element plus all of its children from the system. More... | |
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.
void OgreBites::SelectMenu::copyItemsFrom | ( | SelectMenu * | other | ) |
|
inline |
|
inline |
void OgreBites::SelectMenu::setCaption | ( | const Ogre::DisplayString & | caption | ) |
|
inline |
|
inline |
void OgreBites::SelectMenu::setItems | ( | const Ogre::StringVector & | items | ) |
|
inline |
|
inline |
void OgreBites::SelectMenu::removeItem | ( | const Ogre::DisplayString & | item | ) |
void OgreBites::SelectMenu::removeItem | ( | size_t | index | ) |
void OgreBites::SelectMenu::clearItems | ( | ) |
|
inline |
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 |
|
virtual |
Reimplemented from OgreBites::Widget.
|
inlinevirtual |
Reimplemented from OgreBites::Widget.
|
virtual |
Reimplemented from OgreBites::Widget.
|
inlinevirtual |
Reimplemented from OgreBites::Widget.
|
inherited |
|
staticinherited |
Static utility method to recursively delete an overlay element plus all of its children from the system.
|
staticinherited |
Static utility method to check if the cursor is over an overlay element.
|
staticinherited |
Static utility method used to get the cursor's offset from the center of an overlay element in pixels.
|
staticinherited |
Static utility method used to get the width of a caption in a text area.
|
staticinherited |
Static utility method to cut off a string to fit in a text area.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |