| library: libGui #include "TGText.h" |
| Inheritance Chart: | |||||
|
public:
TGTextLine()
TGTextLine(TGTextLine* line)
TGTextLine(const char* string)
TGTextLine(const TGTextLine&)
virtual ~TGTextLine()
static TClass* Class()
void Clear()
void DelChar(ULong_t pos)
void DelText(ULong_t pos, ULong_t length)
char GetChar(ULong_t pos)
ULong_t GetLineLength()
char* GetText(ULong_t pos, ULong_t length)
char* GetText() const
void InsChar(ULong_t pos, char character)
void InsText(ULong_t pos, const char* text)
virtual TClass* IsA() const
TGTextLine& operator=(const TGTextLine&)
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
protected:
char* fString line of text
ULong_t fLength lenght of line
TGTextLine* fPrev previous line
TGTextLine* fNext next line
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
and the TGTextEntry widget.
Create empty line of text (default ctor).
Initialize line of text with other line of text (not copy ctor).
Initialize line of text with a const char*.
Delete a line of text.
Clear a line of text.
Delete length chars from line starting at position pos.
Insert text in line starting at position pos.
Get length characters from line starting at pos. Returns 0 in case pos and length are out of range. The returned string must be freed by the user.
Delete a character from the line.
Insert a character at the specified position.
Get a character at the specified position from the line. Returns -1 if pos is out of range.
ULong_t GetLineLength()
char* GetText() const
TClass* Class()
TClass* IsA() const
void ShowMembers(TMemberInspector& insp, char* parent)
void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
TGTextLine TGTextLine(const TGTextLine&)
TGTextLine& operator=(const TGTextLine&)