#include <TextArea.h>
Inheritance diagram for OglGui::TextArea:


Public Member Functions | |
| TextArea (Window *parent, int width, int height, strconst text, bool drawBorder=true) | |
| TextArea (Window *parent, int x, int y, int width, int nrLines, strconst text, bool drawBorder=true) | |
| void | SetText (strconst text) |
| void | SetFirstVis (int nr) |
| void | SetTextShadowing (bool doShadow) |
| bool | GetTextShadowing () const |
| void | SetTextColor (ULONG fg) |
| ULONG | GetTextColor () const |
| bool | GetBreakOnLines () const |
| void | SetBreakOnLines (bool doBreak) |
| void | SetTextShadowColor (ULONG shadow) |
| ULONG | GetTextShadowColor () const |
| virtual void | DisplayFunc () |
| virtual int | SetState (int nState) |
| virtual void | MouseFunc (INT msg, INT but, INT state, INT x, INT y) |
| virtual void | KeyboardFunc (INT c, int state) |
| virtual void | ReshapeFunc (INT width, INT height) |
| void | OnScroll (ScrollBar *src, int position, void *data) |
Private Member Functions | |
| void | Init (int nrLines, strconst text, bool drawBorder) |
| void | CreateScrollBar () |
| void | CheckTextFormat () |
| int | StringWidth (OGLWND *top, std::string::size_type start, std::string::size_type end) |
Private Attributes | |
| int | mNrLines |
| bool | mDrawBorder |
| int | mFirstVisible |
| bool | mDoTextShadow |
| ULONG | mTextColor |
| ULONG | mShadowColor |
| std::string | mText |
| bool | mFormatted |
| bool | mBreakOnLines |
| std::vector< std::string > | mStrings |
| WindowScrollBar * | mScrollBar |
Static Private Attributes | |
| static const int | cLineHeight = 18 |
Definition at line 17 of file TextArea.h.
1.5.1