class TGTextBuffer


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)

public:
TGTextBuffer()
TGTextBuffer(Int_t length)
virtual~TGTextBuffer()
voidAddText(Int_t pos, const char* text)
voidAddText(Int_t pos, const char* text, Int_t length)
static TClass*Class()
voidClear()
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)
protected:
TGTextBuffer(const TGTextBuffer& tb)
TGTextBuffer&operator=(const TGTextBuffer& tb)

Data Members

private:
TString*fBuffer

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()
{ }
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 change: root/gui:$Id: TGTextBuffer.h 23115 2008-04-10 13:35:37Z rdm $
Last generated: 2008-06-25 08:43
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.