Logo ROOT  
Reference Guide
TGWidget Class Reference

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.

Definition at line 43 of file TGWidget.h.

Public Member Functions

 TGWidget ()
 
 TGWidget (Int_t id)
 
virtual ~TGWidget ()
 
virtual void Associate (const TGWindow *w)
 
const char * GetCommand () const
 
Bool_t HasFocus () const
 
Bool_t IsEnabled () const
 
virtual void SetCommand (const char *command)
 
Bool_t WantFocus () const
 
Int_t WidgetId () const
 

Protected Member Functions

 TGWidget (const TGWidget &tgw)
 
Int_t ClearFlags (Int_t flags)
 
TGWidgetoperator= (const TGWidget &tgw)
 
Int_t SetFlags (Int_t flags)
 

Protected Attributes

TString fCommand
 command to be executed More...
 
const TGWindowfMsgWindow
 window which handles widget events More...
 
Int_t fWidgetFlags
 widget status flags (OR of EWidgetStatus) More...
 
Int_t fWidgetId
 the widget id (used for event processing) More...
 

#include <TGWidget.h>

Inheritance diagram for TGWidget:
[legend]

Constructor & Destructor Documentation

◆ TGWidget() [1/3]

TGWidget::TGWidget ( const TGWidget tgw)
inlineprotected

Definition at line 51 of file TGWidget.h.

◆ TGWidget() [2/3]

TGWidget::TGWidget ( )
inline

Definition at line 62 of file TGWidget.h.

◆ TGWidget() [3/3]

TGWidget::TGWidget ( Int_t  id)
inline

Definition at line 64 of file TGWidget.h.

◆ ~TGWidget()

virtual TGWidget::~TGWidget ( )
inlinevirtual

Definition at line 66 of file TGWidget.h.

Member Function Documentation

◆ Associate()

virtual void TGWidget::Associate ( const TGWindow w)
inlinevirtual

Reimplemented in TGNumberEntry.

Definition at line 72 of file TGWidget.h.

◆ ClearFlags()

Int_t TGWidget::ClearFlags ( Int_t  flags)
inlineprotected

Definition at line 59 of file TGWidget.h.

◆ GetCommand()

const char* TGWidget::GetCommand ( ) const
inline

Definition at line 74 of file TGWidget.h.

◆ HasFocus()

Bool_t TGWidget::HasFocus ( ) const
inline

Definition at line 70 of file TGWidget.h.

◆ IsEnabled()

Bool_t TGWidget::IsEnabled ( ) const
inline

Definition at line 69 of file TGWidget.h.

◆ operator=()

TGWidget& TGWidget::operator= ( const TGWidget tgw)
inlineprotected

Definition at line 54 of file TGWidget.h.

◆ SetCommand()

virtual void TGWidget::SetCommand ( const char *  command)
inlinevirtual

Definition at line 73 of file TGWidget.h.

◆ SetFlags()

Int_t TGWidget::SetFlags ( Int_t  flags)
inlineprotected

Definition at line 58 of file TGWidget.h.

◆ WantFocus()

Bool_t TGWidget::WantFocus ( ) const
inline

Definition at line 71 of file TGWidget.h.

◆ WidgetId()

Int_t TGWidget::WidgetId ( ) const
inline

Definition at line 68 of file TGWidget.h.

Member Data Documentation

◆ fCommand

TString TGWidget::fCommand
protected

command to be executed

Definition at line 49 of file TGWidget.h.

◆ fMsgWindow

const TGWindow* TGWidget::fMsgWindow
protected

window which handles widget events

Definition at line 48 of file TGWidget.h.

◆ fWidgetFlags

Int_t TGWidget::fWidgetFlags
protected

widget status flags (OR of EWidgetStatus)

Definition at line 47 of file TGWidget.h.

◆ fWidgetId

Int_t TGWidget::fWidgetId
protected

the widget id (used for event processing)

Definition at line 46 of file TGWidget.h.

Libraries for TGWidget:
[legend]

The documentation for this class was generated from the following file: