TGTextLine


class description - source file - inheritance tree

class TGTextLine


    public:
TGTextLine TGTextLine() TGTextLine TGTextLine(TGTextLine* line) TGTextLine TGTextLine(const char* string) TGTextLine TGTextLine(TGTextLine&) virtual void ~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) void InsChar(ULong_t pos, char character) void InsText(ULong_t pos, const char* text) virtual TClass* IsA() const virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members

protected:
char* fString line of text ULong_t fLength lenght of line TGTextLine* fPrev previous line TGTextLine* fNext next line

Class Description

                                                                      
 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.                                          
                                                                      


TGTextLine()
 Create empty line of text (default ctor).

TGTextLine(TGTextLine *line)
 Initialize line of text with other line of text (not copy ctor).

TGTextLine(const char *string)
 Initialize line of text with a const char*.

~TGTextLine()
 Delete a line of text.

void Clear()
 Clear a line of text.

void DelText(ULong_t pos, ULong_t length)
 Delete length chars from line starting at position pos.

void InsText(ULong_t pos, const char *text)
 Insert text in line starting at position pos.

char* GetText(ULong_t pos, ULong_t length)
 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.

void DelChar(ULong_t pos)
 Delete a character from the line.

void InsChar(ULong_t pos, char character)
 Insert a character at the specified position.

char GetChar(ULong_t pos)
 Get a character at the specified position from the line.
 Returns -1 if pos is out of range.



Inline Functions


            ULong_t GetLineLength()
            TClass* Class()
            TClass* IsA() const
               void ShowMembers(TMemberInspector& insp, char* parent)
               void Streamer(TBuffer& b)
               void StreamerNVirtual(TBuffer& b)
         TGTextLine TGTextLine(TGTextLine&)


Author: Fons Rademakers 26/04/98
Last update: root/gui:$Name: $:$Id: TGText.cxx,v 1.11 2000/10/29 14:31:14 rdm Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *


ROOT page - Class index - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.