MyGUI_TextView.h
Go to the documentation of this file.
/*
* This source file is part of MyGUI. For the latest info, see http://mygui.info/
* Distributed under the MIT License
* (See accompanying file COPYING.MIT or copy at http://opensource.org/licenses/MIT)
*/
#ifndef MYGUI_TEXT_VIEW_H_
#define MYGUI_TEXT_VIEW_H_
#include "MyGUI_Prerequest.h"
#include "MyGUI_TextureUtility.h"
#include "MyGUI_TextViewData.h"
#include "MyGUI_IFont.h"
namespace MyGUI
{
class TextView
{
public:
void update(
const UString::utf32string& _text,
IFont* _font,
int _height,
Align _align,
VertexColourType _format,
int _maxWidth = -1);
size_t getCursorPosition(const IntPoint& _value) const;
IntPoint getCursorPoint(size_t _position) const;
const IntSize& getViewSize() const;
size_t getTextLength() const;
const VectorLineInfo& getData() const;
private:
IntSize mViewSize;
size_t mLength{0};
VectorLineInfo mLineInfo;
int mFontHeight{0};
};
} // namespace MyGUI
#endif // MYGUI_TEXT_VIEW_H_
MyGUI_IFont.h
MyGUI_Prerequest.h
MyGUI_TextViewData.h
MyGUI_TextureUtility.h
MyGUI::IFont
Definition MyGUI_IFont.h:21
MyGUI::TextView
Definition MyGUI_TextView.h:19
MyGUI::TextView::getCursorPosition
size_t getCursorPosition(const IntPoint &_value) const
Definition MyGUI_TextView.cpp:282
MyGUI::TextView::getCursorPoint
IntPoint getCursorPoint(size_t _position) const
Definition MyGUI_TextView.cpp:325
MyGUI::TextView::getTextLength
size_t getTextLength() const
Definition MyGUI_TextView.cpp:362
MyGUI::TextView::update
void update(const UString::utf32string &_text, IFont *_font, int _height, Align _align, VertexColourType _format, int _maxWidth=-1)
Definition MyGUI_TextView.cpp:90
MyGUI::TextView::getData
const VectorLineInfo & getData() const
Definition MyGUI_TextView.cpp:367
MyGUI::TextView::getViewSize
const IntSize & getViewSize() const
Definition MyGUI_TextView.cpp:357
MyGUI::UString::utf32string
std::basic_string< unicode_char > utf32string
string type used for returning UTF-32 formatted data
Definition MyGUI_UString.h:177
MyGUI
Definition MyGUI_ActionController.h:15
MyGUI::VectorLineInfo
std::vector< LineInfo > VectorLineInfo
Definition MyGUI_TextViewData.h:129
MyGUI::IntPoint
types::TPoint< int > IntPoint
Definition MyGUI_Types.h:27
MyGUI::IntSize
types::TSize< int > IntSize
Definition MyGUI_Types.h:30
MyGUI::Align
Definition MyGUI_Align.h:20
MyGUI::VertexColourType
Definition MyGUI_RenderFormat.h:16