genesis-3d_engine/Engine/addons/myguiengine/include/MyGUI_TextView.h
zhongdaohuan 6e8fbca745 genesis-3d engine version 1.3.
match the genesis editor version 1.3.0.653.
2014-05-05 14:50:33 +08:00

39 lines
738 B
C++

#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:
TextView();
void update(const UString& _text, IFont* _font, int _height, Align _align, VertexColourType _format, int _maxWidth = -1);
size_t getCursorPosition(const IntPoint& _value);
IntPoint getCursorPoint(size_t _position);
const IntSize& getViewSize() const;
size_t getTextLength() const;
const VectorLineInfo& getData() const;
private:
IntSize mViewSize;
size_t mLength;
VectorLineInfo mLineInfo;
int mFontHeight;
};
} // namespace MyGUI
#endif // __MYGUI_TEXT_VIEW_H__