#define ClassDef(name, id)
const char * GetString() const
void Init()
Common initialization used by the different ctors.
Int_t GetWrapLength() const
const TGHotString * GetText() const
Int_t GetLeftMargin() const
Int_t GetRightMargin() const
virtual const char * GetTitle() const
Returns title of object.
virtual void Layout()
layout text button
virtual Bool_t HandleKey(Event_t *event)
Handle key event. This function will be called when the hotkey is hit.
TGTextButton(const TGTextButton &)
static FontStruct_t GetDefaultFontStruct()
Return default font structure.
virtual void SetTopMargin(Int_t val)
Int_t GetTopMargin() const
virtual void SetLeftMargin(Int_t val)
virtual void SetTitle(const char *label)
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a text button widget as a C++ statement(s) on output stream out.
FontStruct_t GetFontStruct() const
virtual void SetTextJustify(Int_t tmode)
Set text justification.
virtual void SetForegroundColor(Pixel_t fore)
virtual void SetBottomMargin(Int_t val)
virtual void SetRightMargin(Int_t val)
virtual void SetText(TGHotString *new_label)
Set new button text.
Int_t GetBottomMargin() const
static const TGFont * fgDefaultFont
Int_t GetTextJustify() const
void ChangeText(const char *title)
virtual ~TGTextButton()
Delete a text button widget.
Bool_t HasOwnFont() const
Returns kTRUE if text attributes are unique, returns kFALSE if text attributes are shared (global).
virtual void DoRedraw()
Draw the text button.
void SetWrapLength(Int_t wl)
virtual void SetFont(FontStruct_t font, Bool_t global=kFALSE)
Changes text font.
virtual TGDimension GetDefaultSize() const
returns default size
TGTextButton & operator=(const TGTextButton &)
TString GetString() const
void SetMargins(Int_t left=0, Int_t right=0, Int_t top=0, Int_t bottom=0)
virtual void SetTextColor(Pixel_t color, Bool_t global=kFALSE)
Changes text color.
void Emit(const char *signal, const T &arg)
Activate signal with single parameter.
const char * Data() const
static constexpr double s