Handle_t GContext_t
Graphics context handle.
Handle_t FontStruct_t
Pointer to font structure.
ULong_t Pixel_t
Pixel value.
int Int_t
Signed integer 4 bytes (int).
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
bool Bool_t
Boolean (0=false, 1=true) (bool).
const char Option_t
Option string (const char).
#define ClassDefOverride(name, id)
Encapsulate fonts used in the GUI system.
TGFrame(const TGFrame &)=delete
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Encapsulate a graphics context used in the low level graphics.
void SetTextJustify(Int_t tmode)
Set text justification.
FontStruct_t GetFontStruct() const
void Layout() override
Layout label.
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)
~TGLabel() override
Delete label.
static const TGGC * fgDefaultGC
GContext_t fNormGC
graphics context used for drawing label
Int_t GetTextJustify() const
void DoRedraw() override
Redraw label widget.
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save a label widget as a C++ statement(s) on output stream out.
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
void SetForegroundColor(Pixel_t fore) override
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.
const char * GetTitle() const override
Returns title of object.
virtual void ChangeText(const char *newText)
TGDimension GetDefaultSize() const override
Return default size.
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 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.