Logo ROOT  
Reference Guide
TGTextBuffer Class Reference

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.

Definition at line 19 of file TGTextBuffer.h.

Public Member Functions

 TGTextBuffer ()
 
 TGTextBuffer (Int_t length)
 
virtual ~TGTextBuffer ()
 
void AddText (Int_t pos, const char *text)
 
void AddText (Int_t pos, const char *text, Int_t length)
 
void Clear ()
 
UInt_t GetBufferLength () const
 
const char * GetString () const
 
UInt_t GetTextLength () const
 
void RemoveText (Int_t pos, Int_t length)
 

Private Member Functions

 TGTextBuffer (const TGTextBuffer &)=delete
 
TGTextBufferoperator= (const TGTextBuffer &)=delete
 

Private Attributes

TString fBuffer
 

#include <TGTextBuffer.h>

Constructor & Destructor Documentation

◆ TGTextBuffer() [1/3]

TGTextBuffer::TGTextBuffer ( const TGTextBuffer )
privatedelete

◆ TGTextBuffer() [2/3]

TGTextBuffer::TGTextBuffer ( )
inline

Definition at line 28 of file TGTextBuffer.h.

◆ TGTextBuffer() [3/3]

TGTextBuffer::TGTextBuffer ( Int_t  length)
inline

Definition at line 29 of file TGTextBuffer.h.

◆ ~TGTextBuffer()

virtual TGTextBuffer::~TGTextBuffer ( )
inlinevirtual

Definition at line 30 of file TGTextBuffer.h.

Member Function Documentation

◆ AddText() [1/2]

void TGTextBuffer::AddText ( Int_t  pos,
const char *  text 
)
inline

Definition at line 36 of file TGTextBuffer.h.

◆ AddText() [2/2]

void TGTextBuffer::AddText ( Int_t  pos,
const char *  text,
Int_t  length 
)
inline

Definition at line 37 of file TGTextBuffer.h.

◆ Clear()

void TGTextBuffer::Clear ( )
inline

Definition at line 39 of file TGTextBuffer.h.

◆ GetBufferLength()

UInt_t TGTextBuffer::GetBufferLength ( ) const
inline

Definition at line 33 of file TGTextBuffer.h.

◆ GetString()

const char * TGTextBuffer::GetString ( ) const
inline

Definition at line 34 of file TGTextBuffer.h.

◆ GetTextLength()

UInt_t TGTextBuffer::GetTextLength ( ) const
inline

Definition at line 32 of file TGTextBuffer.h.

◆ operator=()

TGTextBuffer & TGTextBuffer::operator= ( const TGTextBuffer )
privatedelete

◆ RemoveText()

void TGTextBuffer::RemoveText ( Int_t  pos,
Int_t  length 
)
inline

Definition at line 38 of file TGTextBuffer.h.

Member Data Documentation

◆ fBuffer

TString TGTextBuffer::fBuffer
private

Definition at line 22 of file TGTextBuffer.h.

Libraries for TGTextBuffer:
[legend]

The documentation for this class was generated from the following file: