library: libGui
#include "TGText.h"

TGTextLine


class description - source file - inheritance tree (.pdf)

class TGTextLine

Inheritance Chart:
TGTextLine

    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) 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)

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(const TGTextLine&)
        TGTextLine& operator=(const TGTextLine&)


Author: Fons Rademakers 26/04/98
Last update: root/gui:$Name: $:$Id: TGText.cxx,v 1.14 2004/05/24 11:45:08 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *


ROOT page - Class index - Class Hierarchy - 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.