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()
{ return fWidgetId; }
Bool_t IsEnabled()
{ return (Bool_t)((fWidgetFlags & kWidgetIsEnabled) != 0); }
Bool_t HasFocus()
{ return (Bool_t)((fWidgetFlags & kWidgetHasFocus) != 0); }
Bool_t WantFocus()
{ return (Bool_t)((fWidgetFlags & kWidgetWantFocus) != 0); }
void Associate(const TGWindow* w)
{ fMsgWindow = w; }
void SetCommand(const char* command)
{ fCommand = command; }
const char * GetCommand()
{ return fCommand.Data(); }

Author: Fons Rademakers 05/01/98
Last change: root/gui:$Id: TGWidget.h 23115 2008-04-10 13:35:37Z rdm $
Last generated: 2008-06-25 08:43
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *

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.