ROOT » GUI » GUI » TGHotString

class TGHotString: public TGString


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.


Function Members (Methods)

public:
virtual~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
static TStringTString::BaseConvert(const TString& s_in, Int_t base_in, Int_t base_out)
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()
voidTString::Clear()
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* pat, 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
Bool_tTString::EqualTo(const char* cs, TString::ECaseCompare cmp = kExact) const
Bool_tTString::EqualTo(const TString& st, TString::ECaseCompare cmp = kExact) const
virtual voidTString::FillBuffer(char*& buffer) const
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
static UInt_tTString::Hash(const void* txt, Int_t ntxt)
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* pat, 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& s, 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* s)
TString&TString::Insert(Ssiz_t pos, const TString& s)
TString&TString::Insert(Ssiz_t pos, const char* s, Ssiz_t extent)
TString&TString::Insert(Ssiz_t pos, const TString& s, Ssiz_t extent)
virtual TClass*IsA() const
Bool_tTString::IsAlnum() const
Bool_tTString::IsAlpha() const
Bool_tTString::IsAscii() const
Bool_tTString::IsBin() const
Bool_tTString::IsDec() const
Bool_tTString::IsDigit() const
Bool_tTString::IsFloat() const
Bool_tTString::IsHex() const
Bool_tTString::IsInBaseN(Int_t base) const
Bool_tTString::IsNull() const
Bool_tTString::IsOct() const
Bool_tTString::IsWhitespace() const
static TStringTString::Itoa(Int_t value, Int_t base)
Ssiz_tTString::Last(char c) const
Ssiz_tTString::Length() const
static TStringTString::LLtoa(Long64_t value, Int_t base)
static Ssiz_tTString::MaxWaste(Ssiz_t mw = 15)
Bool_tTString::MaybeRegexp() const
Bool_tTString::MaybeWildcard() const
TStringTString::MD5() const
const char*TString::operator const char *() const
char&TString::operator()(Ssiz_t i)
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) const
TSubStringTString::operator()(const TRegexp& re, Ssiz_t start) const
TSubStringTString::operator()(TPRegexp& re, Ssiz_t start) const
TString&TString::operator+=(const char* s)
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 i)
TString&TString::operator+=(ULong64_t i)
TGHotString&operator=(const TGHotString&)
TGHotString&operator=(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* s)
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) const
virtual Int_tTString::Sizeof() const
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
TSubStringTString::Strip(TString::EStripType s = kTrailing, char c = ' ') const
TSubStringTString::SubString(const char* pat, Ssiz_t start = 0, TString::ECaseCompare cmp = kExact) const
TString&TString::Swap(TString& other)
TGHotString(const char* s)
TGHotString(TGHotString&&)
TGHotString(const TGHotString&)
TObjArray*TString::Tokenize(const TString& delim) const
Bool_tTString::Tokenize(TString& tok, Ssiz_t& from, const char* delim = " ") const
voidTString::ToLower()
voidTString::ToUpper()
static TStringTString::UItoa(UInt_t value, Int_t base)
static TStringTString::ULLtoa(ULong64_t value, Int_t base)
static voidTString::WriteString(TBuffer& b, const TString* a)

Data Members

public:
static TString::EStripTypeTString::kBoth
static TString::ECaseCompareTString::kExact
static TString::ECaseCompareTString::kIgnoreCase
static TString::EStripTypeTString::kLeading
static const Ssiz_tTString::kNPOS
static TString::EStripTypeTString::kTrailing
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)
TString::Rep_tTString::fRep! String data
static TString::<anonymous>TString::kAlignment

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

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() const
{ return fHotChar; }
Int_t GetHotPos() const
{ return fHotPos; }