MyGUI
3.5.3
Main Page
Related Pages
Namespaces
Data Structures
Files
Examples
File List
Globals
MyGUIEngine
include
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
15
namespace
MyGUI
16
{
17
18
class
MYGUI_EXPORT
TextView
19
{
20
public
:
21
void
update(
22
const
UString& _text,
23
IFont* _font,
24
int
_height,
25
Align _align,
26
VertexColourType _format,
27
int
_maxWidth = -1);
28
29
size_t
getCursorPosition(
const
IntPoint& _value)
const
;
30
31
IntPoint
getCursorPoint(
size_t
_position)
const
;
32
33
const
IntSize
& getViewSize()
const
;
34
35
size_t
getTextLength()
const
;
36
37
const
VectorLineInfo
& getData()
const
;
38
39
private
:
40
IntSize
mViewSize;
41
size_t
mLength{0};
42
VectorLineInfo
mLineInfo;
43
int
mFontHeight{0};
44
};
45
46
}
// namespace MyGUI
47
48
#endif
// MYGUI_TEXT_VIEW_H_
MyGUI_IFont.h
MYGUI_EXPORT
#define MYGUI_EXPORT
Definition
MyGUI_Platform.h:57
MyGUI_Prerequest.h
MyGUI_TextViewData.h
MyGUI_TextureUtility.h
MyGUI
Definition
MyGUI_ActionController.h:15
MyGUI::VectorLineInfo
std::vector< LineInfo > VectorLineInfo
Definition
MyGUI_TextViewData.h:139
MyGUI::IntPoint
types::TPoint< int > IntPoint
Definition
MyGUI_Types.h:26
MyGUI::IntSize
types::TSize< int > IntSize
Definition
MyGUI_Types.h:29
Generated by
1.18.0