|  | OGRE
    1.11.6
    Object-Oriented Graphics Rendering Engine | 
Scrollable text box widget. More...
#include <OgreTrays.h>
 Inheritance diagram for OgreBites::TextBox:
 Inheritance diagram for OgreBites::TextBox:| Public Member Functions | |
| TextBox (const Ogre::String &name, const Ogre::DisplayString &caption, Ogre::Real width, Ogre::Real height) | |
| Do not instantiate any widgets directly. Use TrayManager.  More... | |
| void | _assignListener (TrayListener *listener) | 
| void | _assignToTray (TrayLocation trayLoc) | 
| void | _cursorMoved (const Ogre::Vector2 &cursorPos, float wheelDelta) | 
| void | _cursorPressed (const Ogre::Vector2 &cursorPos) | 
| void | _cursorReleased (const Ogre::Vector2 &cursorPos) | 
| void | _focusLost () | 
| void | appendText (const Ogre::DisplayString &text) | 
| void | cleanup () | 
| void | clearText () | 
| const Ogre::DisplayString & | getCaption () | 
| unsigned int | getHeightInLines () | 
| Gets how many lines of text can fit in this window.  More... | |
| const Ogre::String & | getName () | 
| Ogre::OverlayElement * | getOverlayElement () | 
| Ogre::Real | getPadding () | 
| Ogre::Real | getScrollPercentage () | 
| Gets how far scrolled down the text is as a percentage.  More... | |
| const Ogre::DisplayString & | getText () | 
| TrayLocation | getTrayLocation () | 
| void | hide () | 
| bool | isVisible () | 
| void | refitContents () | 
| Makes adjustments based on new padding, size, or alignment info.  More... | |
| void | setCaption (const Ogre::DisplayString &caption) | 
| void | setPadding (Ogre::Real padding) | 
| void | setScrollPercentage (Ogre::Real percentage) | 
| Sets how far scrolled down the text is as a percentage.  More... | |
| void | setText (const Ogre::DisplayString &text) | 
| Sets text box content.  More... | |
| void | setTextAlignment (Ogre::TextAreaOverlayElement::Alignment ta) | 
| Sets text box content horizontal alignment.  More... | |
| void | show () | 
| 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... | |
Scrollable text box widget.
| OgreBites::TextBox::TextBox | ( | const Ogre::String & | name, | 
| const Ogre::DisplayString & | caption, | ||
| Ogre::Real | width, | ||
| Ogre::Real | height | ||
| ) | 
Do not instantiate any widgets directly. Use TrayManager.
| void OgreBites::TextBox::setPadding | ( | Ogre::Real | padding | ) | 
| 
 | inline | 
| 
 | inline | 
| 
 | inline | 
| 
 | inline | 
| void OgreBites::TextBox::setText | ( | const Ogre::DisplayString & | text | ) | 
Sets text box content.
Most of this method is for wordwrap.
| void OgreBites::TextBox::setTextAlignment | ( | Ogre::TextAreaOverlayElement::Alignment | ta | ) | 
Sets text box content horizontal alignment.
| 
 | inline | 
| 
 | inline | 
| void OgreBites::TextBox::refitContents | ( | ) | 
Makes adjustments based on new padding, size, or alignment info.
| void OgreBites::TextBox::setScrollPercentage | ( | Ogre::Real | percentage | ) | 
Sets how far scrolled down the text is as a percentage.
| 
 | inline | 
Gets how far scrolled down the text is as a percentage.
| 
 | inline | 
Gets how many lines of text can fit in this window.
| 
 | 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 |