MyGUI: MyGUI_TextView.h Source File

MyGUI 3.4.2

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

- File List
- Globals

MyGUI_TextView.h
Go to the documentation of this file.
1/*
2 * This source file is part of MyGUI. For the latest info, see http://mygui.info/
3 * Distributed under the MIT License
4 * (See accompanying file COPYING.MIT or copy at http://opensource.org/licenses/MIT)
5 */
6
7#ifndef MYGUI_TEXT_VIEW_H_
8#define MYGUI_TEXT_VIEW_H_
9
10#include "MyGUI_Prerequest.h"
11#include "MyGUI_TextureUtility.h"
12#include "MyGUI_TextViewData.h"
13#include "MyGUI_IFont.h"
14
15namespace MyGUI
16{
17
18 class TextView
19 {
20 public:
21 TextView();
22
23 void update(const UString::utf32string& _text, IFont* _font, int _height, Align _align, VertexColourType _format, int _maxWidth = -1);
24
25 size_t getCursorPosition(const IntPoint& _value) const;
26
27 IntPoint getCursorPoint(size_t _position) const;
28
29 const IntSize& getViewSize() const;
30
31 size_t getTextLength() const;
32
33 const VectorLineInfo& getData() const;
34
35 private:
36 IntSize mViewSize;
37 size_t mLength;
38 VectorLineInfo mLineInfo;
39 int mFontHeight;
40 };
41
42} // namespace MyGUI
43
44#endif // MYGUI_TEXT_VIEW_H_
MyGUI_IFont.h
MyGUI_Prerequest.h
MyGUI_TextViewData.h
MyGUI_TextureUtility.h
MyGUI::IFont
Definition MyGUI_IFont.h:22
MyGUI::TextView
Definition MyGUI_TextView.h:19
MyGUI::TextView::getCursorPosition
size_t getCursorPosition(const IntPoint &_value) const
Definition MyGUI_TextView.cpp:289
MyGUI::TextView::getCursorPoint
IntPoint getCursorPoint(size_t _position) const
Definition MyGUI_TextView.cpp:332
MyGUI::TextView::getTextLength
size_t getTextLength() const
Definition MyGUI_TextView.cpp:369
MyGUI::TextView::update
void update(const UString::utf32string &_text, IFont *_font, int _height, Align _align, VertexColourType _format, int _maxWidth=-1)
Definition MyGUI_TextView.cpp:100
MyGUI::TextView::getData
const VectorLineInfo & getData() const
Definition MyGUI_TextView.cpp:374
MyGUI::TextView::getViewSize
const IntSize & getViewSize() const
Definition MyGUI_TextView.cpp:364
MyGUI::TextView::TextView
TextView()
Definition MyGUI_TextView.cpp:94
MyGUI::UString::utf32string
std::basic_string< unicode_char > utf32string
string type used for returning UTF-32 formatted data
Definition MyGUI_UString.h:178
MyGUI
Definition MyGUI_ActionController.h:15
MyGUI::VectorLineInfo
std::vector< LineInfo > VectorLineInfo
Definition MyGUI_TextViewData.h:137
MyGUI::Align
Definition MyGUI_Align.h:20
MyGUI::VertexColourType
Definition MyGUI_RenderFormat.h:16
MyGUI::types::TPoint< int >
MyGUI::types::TSize< int >