Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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 17 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
 
virtual TClassIsA () const
 
void RemoveText (Int_t pos, Int_t length)
 
virtual void Streamer (TBuffer &)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 

Static Public Member Functions

static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 

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 26 of file TGTextBuffer.h.

◆ TGTextBuffer() [3/3]

TGTextBuffer::TGTextBuffer ( Int_t  length)
inline

Definition at line 27 of file TGTextBuffer.h.

◆ ~TGTextBuffer()

virtual TGTextBuffer::~TGTextBuffer ( )
inlinevirtual

Definition at line 28 of file TGTextBuffer.h.

Member Function Documentation

◆ AddText() [1/2]

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

Definition at line 34 of file TGTextBuffer.h.

◆ AddText() [2/2]

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

Definition at line 35 of file TGTextBuffer.h.

◆ Class()

static TClass * TGTextBuffer::Class ( )
static
Returns
TClass describing this class

◆ Class_Name()

static const char * TGTextBuffer::Class_Name ( )
static
Returns
Name of this class

◆ Class_Version()

static constexpr Version_t TGTextBuffer::Class_Version ( )
inlinestaticconstexpr
Returns
Version of this class

Definition at line 39 of file TGTextBuffer.h.

◆ Clear()

void TGTextBuffer::Clear ( )
inline

Definition at line 37 of file TGTextBuffer.h.

◆ DeclFileName()

static const char * TGTextBuffer::DeclFileName ( )
inlinestatic
Returns
Name of the file containing the class declaration

Definition at line 39 of file TGTextBuffer.h.

◆ GetBufferLength()

UInt_t TGTextBuffer::GetBufferLength ( ) const
inline

Definition at line 31 of file TGTextBuffer.h.

◆ GetString()

const char * TGTextBuffer::GetString ( ) const
inline

Definition at line 32 of file TGTextBuffer.h.

◆ GetTextLength()

UInt_t TGTextBuffer::GetTextLength ( ) const
inline

Definition at line 30 of file TGTextBuffer.h.

◆ IsA()

virtual TClass * TGTextBuffer::IsA ( ) const
inlinevirtual
Returns
TClass describing current object

Definition at line 39 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 36 of file TGTextBuffer.h.

◆ Streamer()

virtual void TGTextBuffer::Streamer ( TBuffer )
virtual

◆ StreamerNVirtual()

void TGTextBuffer::StreamerNVirtual ( TBuffer ClassDef_StreamerNVirtual_b)
inline

Definition at line 39 of file TGTextBuffer.h.

Member Data Documentation

◆ fBuffer

TString TGTextBuffer::fBuffer
private

Definition at line 20 of file TGTextBuffer.h.

Libraries for TGTextBuffer:

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