library: libGui
#include "TGText.h"

TGTextLine


class description - header file - source file
viewCVS header - viewCVS source

class TGTextLine

Inheritance Inherited Members Includes Libraries
Class Charts

Function Members (Methods)

Display options:
Show inherited
Show non-public
public:
TGTextLine()
TGTextLine(TGTextLine* line)
TGTextLine(const char* string)
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)
voidInsChar(ULong_t pos, char character)
voidInsText(ULong_t pos, const char* text)
virtual TClass*IsA() const
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
protected:
TGTextLine(const TGTextLine&)
TGTextLine&operator=(const TGTextLine&)

Data Members

protected:
char*fStringline of text
ULong_tfLengthlenght of line
TGTextLine*fPrevprevious line
TGTextLine*fNextnext 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(const TGTextLine& tl)
copy constructor
TGTextLine& operator=(const TGTextLine& tl)
assignment operator
~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.
ULong_t GetLineLength()
{ return fLength; }
char * GetText(ULong_t pos, ULong_t length)

Author: Fons Rademakers 26/04/98
Last update: root/gui:$Name: $:$Id: TGText.cxx,v 1.19 2006/07/09 05:27:54 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.