MyGUI 3.2.0

- Main Page
- Related Pages
- Namespaces
- Data Structures
- Files
- Examples

- File List
- Globals

MyGUI_TextView.h
Go to the documentation of this file.
1
6 #ifndef __MYGUI_TEXT_VIEW_H__
7 #define __MYGUI_TEXT_VIEW_H__
8
9 #include "MyGUI_Prerequest.h"
10 #include "MyGUI_TextureUtility.h"
11 #include "MyGUI_TextViewData.h"
12 #include "MyGUI_IFont.h"
13
14 namespace MyGUI
15 {
16
17 class TextView
18 {
19 public:
20 TextView();
21
22 void update(const UString& _text, IFont* _font, int _height, Align _align, VertexColourType _format, int _maxWidth = -1);
23
24 size_t getCursorPosition(const IntPoint& _value);
25
26 IntPoint getCursorPoint(size_t _position);
27
28 const IntSize& getViewSize() const;
29
30 size_t getTextLength() const;
31
32 const VectorLineInfo& getData() const;
33
34 private:
35 IntSize mViewSize;
36 size_t mLength;
37 VectorLineInfo mLineInfo;
38 int mFontHeight;
39 };
40
41 } // namespace MyGUI
42
43 #endif // __MYGUI_TEXT_VIEW_H__
MyGUI::TextView::getTextLength
size_t getTextLength() const
Definition: MyGUI_TextView.cpp:393
MyGUI_TextureUtility.h
MyGUI::TextView::getViewSize
const IntSize & getViewSize() const
Definition: MyGUI_TextView.cpp:388
MyGUI::types::TPoint< int >
MyGUI_Prerequest.h
MyGUI::types::TSize< int >
MyGUI::VectorLineInfo
std::vector< LineInfo > VectorLineInfo
Definition: MyGUI_TextViewData.h:136
MyGUI_IFont.h
MyGUI::TextView::getData
const VectorLineInfo & getData() const
Definition: MyGUI_TextView.cpp:398
MyGUI::TextView::TextView
TextView()
Definition: MyGUI_TextView.cpp:109
MyGUI::TextView
Definition: MyGUI_TextView.h:17
MyGUI::VertexColourType
Definition: MyGUI_RenderFormat.h:30
MyGUI::IFont
Definition: MyGUI_IFont.h:35
MyGUI_TextViewData.h
MyGUI::TextView::getCursorPosition
size_t getCursorPosition(const IntPoint &_value)
Definition: MyGUI_TextView.cpp:309
MyGUI::UString
A UTF-16 string with implicit conversion to/from std::string and std::wstring.
Definition: MyGUI_UString.h:169
MyGUI::TextView::getCursorPoint
IntPoint getCursorPoint(size_t _position)
Definition: MyGUI_TextView.cpp:356
MyGUI::Align
Definition: MyGUI_Align.h:34
MyGUI::TextView::update
void update(const UString &_text, IFont *_font, int _height, Align _align, VertexColourType _format, int _maxWidth=-1)
Definition: MyGUI_TextView.cpp:115