Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

OglGui::TextArea Class Reference

#include <TextArea.h>

Inheritance diagram for OglGui::TextArea:

Inheritance graph
[legend]
Collaboration diagram for OglGui::TextArea:

Collaboration graph
[legend]
List of all members.

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
WindowScrollBarmScrollBar

Static Private Attributes

static const int cLineHeight = 18

Detailed Description

Definition at line 17 of file TextArea.h.


The documentation for this class was generated from the following file:
Generated on Fri Mar 19 12:07:39 2010 for ImpalaSrc by  doxygen 1.5.1