Handle_t GContext_t
Graphics context handle.
Handle_t FontStruct_t
Pointer to font structure.
ULong_t Pixel_t
Pixel value.
#define ClassDef(name, id)
The color creation and management class.
void NeedRedraw(TGWindow *w, Bool_t force=kFALSE)
Set redraw flags.
Encapsulate fonts used in the GUI system.
FontStruct_t GetFontStruct() const
A subclasses of TGWindow, and is used as base class for some simple widgets (buttons,...
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Encapsulate a graphics context used in the low level graphics.
This class handles GUI labels.
virtual ~TGLabel()
Delete label.
void SetTextJustify(Int_t tmode)
Set text justification.
virtual const char * GetTitle() const
Returns title of object.
FontStruct_t GetFontStruct() const
virtual void SetTextColor(Pixel_t color, Bool_t global=kFALSE)
Changes text color.
Int_t f3DStyle
3D style (0 - normal, kRaisedFrame - raised, kSunkenFrame - sunken)
void SetText(const char *newText)
TGLabel(const TGLabel &)=delete
Bool_t HasOwnFont() const
Returns kTRUE if text attributes are unique.
virtual void DrawText(GContext_t gc, Int_t x, Int_t y)
Draw text at position (x, y).
Bool_t fDisabled
if kTRUE label looks disabled (shaded text)
static const TGGC * fgDefaultGC
GContext_t fNormGC
graphics context used for drawing label
virtual void SetForegroundColor(Pixel_t fore)
Int_t GetTextJustify() const
virtual void Layout()
Layout label.
virtual void DoRedraw()
Redraw label widget.
Int_t GetTopMargin() const
virtual void SetText(TGString *newText)
Set new text in label.
static const TGGC & GetDefaultGC()
Static returning label default graphics context.
void SetText(Int_t number)
void Set3DStyle(Int_t style)
Bool_t fHasOwnFont
kTRUE - font defined locally, kFALSE - globally
Bool_t IsDisabled() const
TGLabel & operator=(const TGLabel &)=delete
Int_t fMRight
margin right
TGFont * fFont
font to draw label
Int_t GetBottomMargin() const
Int_t GetLeftMargin() const
GContext_t GetNormGC() const
UInt_t fTHeight
text height
Int_t fWrapLength
wrap length
static FontStruct_t GetDefaultFontStruct()
Static returning label default font struct.
virtual void ChangeText(const char *newText)
void SetMargins(Int_t left=0, Int_t right=0, Int_t top=0, Int_t bottom=0)
Int_t GetWrapLength() const
Int_t fTMode
text alignment
Bool_t fTextChanged
has text changed
static const TGFont * fgDefaultFont
virtual TGDimension GetDefaultSize() const
Return default size.
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a label widget as a C++ statement(s) on output stream out.
virtual void Disable(Bool_t on=kTRUE)
Int_t fMBottom
margin bottom
virtual void SetTextFont(TGFont *font, Bool_t global=kFALSE)
Changes text font specified by pointer to TGFont object.
Int_t fTFlags
text flags (see TGFont.h ETextLayoutFlags)
TGTextLayout * fTLayout
text layout
void SetWrapLength(Int_t wl)
const TGString * GetText() const
TGString * fText
label text
Int_t GetRightMargin() const
virtual void SetTitle(const char *label)
TGClient * fClient
Connection to display server.
TGString wraps a TString and adds some graphics routines like drawing, size of string on screen depen...
Is used to keep track of string measurement information when using the text layout facilities.
ROOT GUI Window base class.
const char * Data() const