library: libGui #include "TGButton.h" |
TGButton
class description - header file - source file - inheritance tree (.pdf)
protected:
virtual void EmitSignals(Bool_t wasUp)
TGButton& operator=(const TGButton&)
virtual void SetToggleButton(Bool_t)
public:
TGButton(const TGWindow* p = 0, Int_t id = -1, GContext_t norm = GetDefaultGC()(), UInt_t option = kRaisedFrame|kDoubleBorder)
TGButton(const TGButton& tgb)
virtual ~TGButton()
virtual void AllowStayDown(Bool_t a)
static TClass* Class()
virtual void Clicked()
static const TGGC& GetDefaultGC()
TGButtonGroup* GetGroup() const
static const TGGC& GetHibckgndGC()
GContext_t GetNormGC() const
virtual EButtonState GetState() const
virtual TGToolTip* GetToolTip() const
virtual void* GetUserData() const
virtual Bool_t HandleButton(Event_t* event)
virtual Bool_t HandleCrossing(Event_t* event)
virtual TClass* IsA() const
virtual Bool_t IsDown() const
virtual Bool_t IsExclusiveToggle() const
virtual Bool_t IsOn() const
virtual Bool_t IsToggleButton() const
virtual void Pressed()
virtual void Released()
virtual void SavePrimitive(ostream& out, Option_t* option = "")
virtual void SetDown(Bool_t on = kTRUE, Bool_t emit = kFALSE)
virtual void SetEnabled(Bool_t e = kTRUE)
virtual void SetGroup(TGButtonGroup* gr)
virtual void SetOn(Bool_t on = kTRUE, Bool_t emit = kFALSE)
virtual void SetState(EButtonState state, Bool_t emit = kFALSE)
virtual void SetToolTipText(const char* text, Long_t delayms = 400)
virtual void SetUserData(void* userData)
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
virtual void Toggle(Bool_t emit = kFALSE)
virtual void Toggled(Bool_t on)
protected:
UInt_t fTWidth button width
UInt_t fTHeight button height
EButtonState fState button state
Bool_t fStayDown true if button has to stay down
GContext_t fNormGC graphics context used for drawing button
void* fUserData pointer to user data structure
TGToolTip* fTip tool tip associated with button
TGButtonGroup* fGroup button group this button belongs to
static const TGGC* fgDefaultGC
static const TGGC* fgHibckgndGC
static Window_t fgReleaseBtn the last released button
TGButton, TGTextButton, TGPictureButton, TGCheckButton and
TGRadioButton
This header defines all GUI button widgets.
TGButton is a button abstract base class. It defines general button
behaviour.
Selecting a text or picture button will generate the event:
kC_COMMAND, kCM_BUTTON, button id, user data.
Selecting a check button will generate the event:
kC_COMMAND, kCM_CHECKBUTTON, button id, user data.
Selecting a radio button will generate the event:
kC_COMMAND, kCM_RADIOBUTTON, button id, user data.
If a command string has been specified (via SetCommand()) then this
command string will be executed via the interpreter whenever a
button is selected. A command string can contain the macros:
$MSG -- kC_COMMAND, kCM[CHECK|RADIO]BUTTON packed message
(use GET_MSG() and GET_SUBMSG() to unpack)
$PARM1 -- button id
$PARM2 -- user data pointer
Before executing these macros are expanded into the respective
Long_t's
void SetToolTipText(const char *text, Long_t delayms)
Set tool tip text associated with this button. The delay is in
milliseconds (minimum 250). To remove tool tip call method with
text = 0.
const TGGC & GetHibckgndGC()
Return graphics context for highlighted frame background.
Author: Fons Rademakers 06/01/98
Last update: root/gui:$Name: $:$Id: TGButton.cxx,v 1.71 2006/07/09 05:27:54 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
ROOT page - Class index - Class Hierarchy - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.