ROOT logo
ROOT » GUI » GUI » TGWidget

class TGWidget


TGWidget

The widget base class. It is light weight (all inline service
methods) and is typically used as mixin class (via multiple
inheritance), see for example TGButton.


Function Members (Methods)

public:
TGWidget()
TGWidget(Int_t id)
virtual~TGWidget()
virtual voidAssociate(const TGWindow* w)
static TClass*Class()
const char*GetCommand() const
Bool_tHasFocus() const
virtual TClass*IsA() const
Bool_tIsEnabled() const
virtual voidSetCommand(const char* command)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
Bool_tWantFocus() const
Int_tWidgetId() const
protected:
TGWidget(const TGWidget& tgw)
Int_tClearFlags(Int_t flags)
TGWidget&operator=(const TGWidget& tgw)
Int_tSetFlags(Int_t flags)

Data Members

protected:
TStringfCommandcommand to be executed
const TGWindow*fMsgWindowwindow which handles widget events
Int_tfWidgetFlagswidget status flags (OR of EWidgetStatus)
Int_tfWidgetIdthe widget id (used for event processing)

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TGWidget(const TGWidget& tgw)
{ }
TGWidget& operator=(const TGWidget& tgw)
Int_t SetFlags(Int_t flags)
{ return fWidgetFlags |= flags; }
Int_t ClearFlags(Int_t flags)
{ return fWidgetFlags &= ~flags; }
TGWidget()
{ }
TGWidget(Int_t id)
{ }
virtual ~TGWidget()
{ }
Int_t WidgetId() const
{ return fWidgetId; }
Bool_t IsEnabled() const
{ return (Bool_t)((fWidgetFlags & kWidgetIsEnabled) != 0); }
Bool_t HasFocus() const
{ return (Bool_t)((fWidgetFlags & kWidgetHasFocus) != 0); }
Bool_t WantFocus() const
{ return (Bool_t)((fWidgetFlags & kWidgetWantFocus) != 0); }
void Associate(const TGWindow* w)
{ fMsgWindow = w; }
void SetCommand(const char* command)
{ fCommand = command; }
const char * GetCommand() const
{ return fCommand.Data(); }