31 virtual void SetString(
const char *s) { *
this = s; }
Handle_t Drawable_t
Drawable handle.
Handle_t GContext_t
Graphics context handle.
Handle_t FontStruct_t
Pointer to font structure.
#define ClassDef(name, id)
TGHotString is a string with a "hot" character underlined.
virtual 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.
Int_t fOff1
variable used during drawing (cache)
char fHotChar
hot character
void DrawHotChar(Drawable_t id, GContext_t gc, Int_t x, Int_t y)
Draw the underline under the hot character.
GContext_t fLastGC
context used during last drawing
Int_t fHotPos
position of hot character
Int_t fOff2
variable used during drawing (cache)
TGString wraps a TString and adds some graphics routines like drawing, size of string on screen depen...
virtual void SetString(const char *s)
const char * GetString() const
virtual Int_t GetLines(FontStruct_t font, UInt_t w)
Get number of lines of width w the string would take using a certain font.
virtual void DrawWrapped(Drawable_t id, GContext_t gc, Int_t x, Int_t y, UInt_t w, FontStruct_t font)
Draw a string in a column with width w.
const char * Data() const