MyGUI  3.2.0
MyGUI_TextView.h
Go to the documentation of this file.
00001 
00006 #ifndef __MYGUI_TEXT_VIEW_H__
00007 #define __MYGUI_TEXT_VIEW_H__
00008 
00009 #include "MyGUI_Prerequest.h"
00010 #include "MyGUI_TextureUtility.h"
00011 #include "MyGUI_TextViewData.h"
00012 #include "MyGUI_IFont.h"
00013 
00014 namespace MyGUI
00015 {
00016 
00017     class TextView
00018     {
00019     public:
00020         TextView();
00021 
00022         void update(const UString& _text, IFont* _font, int _height, Align _align, VertexColourType _format, int _maxheight = -1);
00023 
00024         size_t getCursorPosition(const IntPoint& _value);
00025 
00026         IntPoint getCursorPoint(size_t _position);
00027 
00028         const IntSize& getViewSize() const;
00029 
00030         size_t getTextLength() const;
00031 
00032         const VectorLineInfo& getData() const;
00033 
00034     private:
00035         IntSize mViewSize;
00036         size_t mLength;
00037         VectorLineInfo mLineInfo;
00038         int mFontHeight;
00039     };
00040 
00041 } // namespace MyGUI
00042 
00043 #endif // __MYGUI_TEXT_VIEW_H__