A++ » INCLUDE » TGTextLine

class TGTextLine


TGText

A TGText is a multi line text buffer. It allows the text to be
loaded from file, saved to file and edited. It is used in the
TGTextEdit widget. Single line text is handled by TGTextBuffer.


Function Members (Methods)

public:
virtual~TGTextLine()
static TClass*Class()
voidClear()
voidDelChar(ULong_t pos)
voidDelText(ULong_t pos, ULong_t length)
charGetChar(ULong_t pos)
ULong_tGetLineLength()
char*GetText() const
char*GetText(ULong_t pos, ULong_t length)
char*GetWord(ULong_t pos)
voidInsChar(ULong_t pos, char character)
voidInsText(ULong_t pos, const char* text)
virtual TClass*IsA() const
virtual voidShowMembers(TMemberInspector& insp) const
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
TGTextLine()
TGTextLine(TGTextLine* line)
TGTextLine(const char* string)

Data Members

protected:
ULong_tfLengthlength of line
TGTextLine*fNextnext line
TGTextLine*fPrevprevious line
char*fStringline of text

Class Charts

Inheritance Chart:
TGTextLine

Function documentation

TGTextLine(const TGTextLine& )
TGTextLine& operator=(const TGTextLine& )
TGTextLine()
TGTextLine(TGTextLine* line)
TGTextLine(const char* string)
virtual ~TGTextLine()
void Clear()
ULong_t GetLineLength()
{ return fLength; }
void DelText(ULong_t pos, ULong_t length)
void InsText(ULong_t pos, const char* text)
char * GetText(ULong_t pos, ULong_t length)
char * GetText() const
{ return fString; }
char * GetWord(ULong_t pos)
void DelChar(ULong_t pos)
void InsChar(ULong_t pos, char character)
char GetChar(ULong_t pos)