library: libGui
#include "TGTextBuffer.h"


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

class TGTextBuffer

Inheritance Inherited Members Includes Libraries
Class Charts

Function Members (Methods)

Display options:
Show inherited
Show non-public
TGTextBuffer(Int_t length)
voidAddText(Int_t pos, const char* text)
voidAddText(Int_t pos, const char* text, Int_t length)
static TClass*Class()
UInt_tGetBufferLength() const
const char*GetString() const
UInt_tGetTextLength() const
virtual TClass*IsA() const
voidRemoveText(Int_t pos, Int_t length)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
TGTextBuffer(const TGTextBuffer& tb)
TGTextBuffer&operator=(const TGTextBuffer& tb)

Data Members


Class Description

 A text buffer is used in several widgets, like TGTextEntry,          
 TGFileDialog, etc. It is a little wrapper around the powerful        
 TString class and used for single line texts. For multi line texts   
 use TGText.                                                          

TGTextBuffer(const TGTextBuffer& tb)
{ }
TGTextBuffer& operator=(const TGTextBuffer& tb)
{if(this!=&tb) fBuffer=tb.fBuffer; return *this;}
{ }
TGTextBuffer(Int_t length)
{ }
virtual ~TGTextBuffer()
{ delete fBuffer; }
UInt_t GetTextLength()
{ return fBuffer->Length(); }
UInt_t GetBufferLength()
{ return fBuffer->Capacity(); }
const char * GetString()
{ return fBuffer->Data(); }
void AddText(Int_t pos, const char *text)
{ fBuffer->Insert(pos, text); }
void AddText(Int_t pos, const char *text, Int_t length)
{ fBuffer->Insert(pos, text, length); }
void RemoveText(Int_t pos, Int_t length)
{ fBuffer->Remove(pos, length); }
void Clear()
{ fBuffer->Remove(0, fBuffer->Length()); }

Author: Fons Rademakers 05/05/98
Last update: root/gui:$Name: $:$Id: TGTextBuffer.cxx,v 1.2 2002/02/23 16:05:11 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.