class TGTextBuffer


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.

Function Members (Methods)

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 Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

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:$Id: TGTextBuffer.h 20882 2007-11-19 11:31:26Z rdm $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *

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.