library: libGui
#include "TGString.h"

TGHotString


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

class TGHotString: public TGString

Inheritance Inherited Members Includes Libraries
Class Charts

Function Members (Methods)

Display options:
Show inherited
Show non-public
public:
TGHotString(const char* s)
TGHotString(const TGHotString&)
~TGHotString()
TString&TString::Append(const char* cs)
TString&TString::Append(const TString& s)
TString&TString::Append(const char* cs, Ssiz_t n)
TString&TString::Append(const TString& s, Ssiz_t n)
TString&TString::Append(char c, Ssiz_t rep = 1)
Double_tTString::Atof() const
Int_tTString::Atoi() const
Long64_tTString::Atoll() const
Bool_tTString::BeginsWith(const char* s, TString::ECaseCompare cmp = kExact) const
Bool_tTString::BeginsWith(const TString& pat, TString::ECaseCompare cmp = kExact) const
Ssiz_tTString::Capacity() const
Ssiz_tTString::Capacity(Ssiz_t n)
TString&TString::Chop()
static TClass*Class()
intTString::CompareTo(const char* cs, TString::ECaseCompare cmp = kExact) const
intTString::CompareTo(const TString& st, TString::ECaseCompare cmp = kExact) const
Bool_tTString::Contains(const TRegexp& pat) const
Bool_tTString::Contains(TPRegexp& pat) const
Bool_tTString::Contains(const char* s, TString::ECaseCompare cmp = kExact) const
Bool_tTString::Contains(const TString& pat, TString::ECaseCompare cmp = kExact) const
TStringTString::Copy() const
Int_tTString::CountChar(Int_t c) const
const char*TString::Data() const
virtual voidDraw(Drawable_t id, GContext_t gc, Int_t x, Int_t y)
virtual voidDrawWrapped(Drawable_t id, GContext_t gc, Int_t x, Int_t y, UInt_t w, FontStruct_t font)
Bool_tTString::EndsWith(const char* pat, TString::ECaseCompare cmp = kExact) const
virtual voidTString::FillBuffer(char*& buffer)
Ssiz_tTString::First(char c) const
Ssiz_tTString::First(const char* cs) const
voidTString::Form(const char* fmt)
static TStringTString::Format(const char* fmt)
Int_tGetHotChar() const
Int_tGetHotPos() const
static Ssiz_tTString::GetInitialCapacity()
Int_tTGString::GetLength() const
virtual Int_tTGString::GetLines(FontStruct_t font, UInt_t w)
static Ssiz_tTString::GetMaxWaste()
static Ssiz_tTString::GetResizeIncrement()
Bool_tTString::Gets(FILE* fp, Bool_t chop = kTRUE)
const char*TGString::GetString() const
UInt_tTString::Hash(TString::ECaseCompare cmp = kExact) const
Ssiz_tTString::Index(const TRegexp& pat, Ssiz_t i = 0) const
Ssiz_tTString::Index(TPRegexp& pat, Ssiz_t i = 0) const
Ssiz_tTString::Index(const char* s, Ssiz_t i = 0, TString::ECaseCompare cmp = kExact) const
Ssiz_tTString::Index(const TString& s, Ssiz_t i = 0, TString::ECaseCompare cmp = kExact) const
Ssiz_tTString::Index(const TRegexp& pat, Ssiz_t* ext, Ssiz_t i = 0) const
Ssiz_tTString::Index(TPRegexp& pat, Ssiz_t* ext, Ssiz_t i = 0) const
Ssiz_tTString::Index(const char* pat, Ssiz_t patlen, Ssiz_t i, TString::ECaseCompare cmp) const
Ssiz_tTString::Index(const TString& pat, Ssiz_t patlen, Ssiz_t i, TString::ECaseCompare cmp) const
static Ssiz_tTString::InitialCapacity(Ssiz_t ic = 15)
TString&TString::Insert(Ssiz_t pos, const char* cs)
TString&TString::Insert(Ssiz_t pos, const TString& s)
TString&TString::Insert(Ssiz_t pos, const char* cs, Ssiz_t n)
TString&TString::Insert(Ssiz_t pos, const TString& s, Ssiz_t n)
virtual TClass*IsA() const
Bool_tTString::IsAlnum() const
Bool_tTString::IsAlpha() const
Bool_tTString::IsAscii() const
Bool_tTString::IsDigit() const
Bool_tTString::IsFloat() const
Bool_tTString::IsHex() const
Bool_tTString::IsNull() const
Bool_tTString::IsWhitespace() const
Ssiz_tTString::Last(char c) const
Ssiz_tTString::Length() const
static Ssiz_tTString::MaxWaste(Ssiz_t mw = 15)
Bool_tTString::MaybeRegexp() const
Bool_tTString::MaybeWildcard() const
char*TString::operator const char*() const
char&TString::operator()(Ssiz_t i)
TSubStringTString::operator()(const TRegexp& re)
TSubStringTString::operator()(TPRegexp& re)
charTString::operator()(Ssiz_t i) const
TSubStringTString::operator()(const TRegexp& re) const
TSubStringTString::operator()(TPRegexp& re) const
TSubStringTString::operator()(Ssiz_t start, Ssiz_t len)
TSubStringTString::operator()(const TRegexp& re, Ssiz_t start)
TSubStringTString::operator()(TPRegexp& re, Ssiz_t start)
TSubStringTString::operator()(Ssiz_t start, Ssiz_t len) const
TSubStringTString::operator()(const TRegexp& re, Ssiz_t start) const
TSubStringTString::operator()(TPRegexp& re, Ssiz_t start) const
TString&TString::operator+=(const char* cs)
TString&TString::operator+=(const TString& s)
TString&TString::operator+=(char c)
TString&TString::operator+=(Short_t i)
TString&TString::operator+=(UShort_t i)
TString&TString::operator+=(Int_t i)
TString&TString::operator+=(UInt_t i)
TString&TString::operator+=(Long_t i)
TString&TString::operator+=(ULong_t i)
TString&TString::operator+=(Float_t f)
TString&TString::operator+=(Double_t f)
TString&TString::operator+=(Long64_t l)
TString&TString::operator+=(ULong64_t ul)
TGHotString&operator=(const TGHotString&)
char&TString::operator[](Ssiz_t i)
charTString::operator[](Ssiz_t i) const
TString&TString::Prepend(const char* cs)
TString&TString::Prepend(const TString& s)
TString&TString::Prepend(const char* cs, Ssiz_t n)
TString&TString::Prepend(const TString& s, Ssiz_t n)
TString&TString::Prepend(char c, Ssiz_t rep = 1)
voidTString::Puts(FILE* fp)
virtual voidTString::ReadBuffer(char*& buffer)
istream&TString::ReadFile(istream& str)
istream&TString::ReadLine(istream& str, Bool_t skipWhite = kTRUE)
istream&TString::ReadString(istream& str)
static TString*TString::ReadString(TBuffer& b, const TClass* clReq)
istream&TString::ReadToDelim(istream& str, char delim = \n)
istream&TString::ReadToken(istream& str)
TString&TString::Remove(Ssiz_t pos)
TString&TString::Remove(Ssiz_t pos, Ssiz_t n)
TString&TString::Remove(TString::EStripType s, char c)
TString&TString::Replace(Ssiz_t pos, Ssiz_t n, const char* cs)
TString&TString::Replace(Ssiz_t pos, Ssiz_t n, const TString& s)
TString&TString::Replace(Ssiz_t pos, Ssiz_t n, const char* s, Ssiz_t ns)
TString&TString::Replace(Ssiz_t pos, Ssiz_t n1, const TString& s, Ssiz_t n2)
TString&TString::ReplaceAll(const TString& s1, const TString& s2)
TString&TString::ReplaceAll(const TString& s1, const char* s2)
TString&TString::ReplaceAll(const char* s1, const TString& s2)
TString&TString::ReplaceAll(const char* s1, const char* s2)
TString&TString::ReplaceAll(const char* s1, Ssiz_t ls1, const char* s2, Ssiz_t ls2)
voidTString::Resize(Ssiz_t n)
static Ssiz_tTString::ResizeIncrement(Ssiz_t ri = 16)
virtual voidTGString::SetString(const char* s)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual Int_tTString::Sizeof() const
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
TSubStringTString::Strip(TString::EStripType s = kTrailing, char c = )
TSubStringTString::Strip(TString::EStripType s = kTrailing, char c = ) const
TSubStringTString::SubString(const char* pat, Ssiz_t start = 0, TString::ECaseCompare cmp = kExact)
TSubStringTString::SubString(const char* pat, Ssiz_t start = 0, TString::ECaseCompare cmp = kExact) const
TObjArray*TString::Tokenize(const TString& delim) const
Bool_tTString::Tokenize(TString& tok, Ssiz_t& from, const char* delim = " ") const
voidTString::ToLower()
voidTString::ToUpper()
static voidTString::WriteString(TBuffer& b, const TString* a)
protected:
static Ssiz_tTString::AdjustCapacity(Ssiz_t nc)
voidTString::AssertElement(Ssiz_t nc) const
voidTString::Clobber(Ssiz_t nc)
voidTString::Cow()
voidTString::Cow(Ssiz_t nc)
voidDrawHotChar(Drawable_t id, GContext_t gc, Int_t x, Int_t y)
voidTString::InitChar(char c)
TStringRef*TString::Pref() const

Data Members

public:
enum TString::EStripType { kLeading
kTrailing
kBoth
};
enum TString::ECaseCompare { kExact
kIgnoreCase
};
protected:
charfHotCharhot character
Int_tfHotPosposition of hot character
GContext_tfLastGCcontext used during last drawing
Int_tfOff1variable used during drawing (cache)
Int_tfOff2variable used during drawing (cache)
char*TString::fDataref. counted data (TStringRef is in front)

Class Description

                                                                      
 TGString and TGHotString                                             
                                                                      
 TGString wraps a TString and adds some graphics routines like        
 drawing, size of string on screen depending on font, etc.            
 TGHotString is a string with a "hot" character unerlined.            
                                                                      

TGHotString(const char *s)
 Create a hot string.
void Draw(Drawable_t id, GContext_t gc, Int_t x, Int_t y)
 Draw a hot string and underline the hot character.
void DrawWrapped(Drawable_t id, GContext_t gc, Int_t x, Int_t y, UInt_t w, FontStruct_t font)
 Draw a hot string in a column with width w. If string is longer than
 w wrap it to next line.
void DrawHotChar(Drawable_t id, GContext_t gc, Int_t x, Int_t y)
 Draw the underline under the hot character.
TGHotString(const char *s)
Int_t GetHotChar()
{ return fHotChar; }
Int_t GetHotPos()
{ return fHotPos; }

Author: Fons Rademakers 05/01/98
Last update: root/gui:$Name: $:$Id: TGString.cxx,v 1.6 2006/05/26 09:16:29 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.