Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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
 
virtual TClassIsA () const
 
Bool_t IsEnabled () const
 
virtual void SetCommand (const char *command)
 
virtual void Streamer (TBuffer &)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
Bool_t WantFocus () const
 
Int_t WidgetId () const
 

Static Public Member Functions

static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 

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
 
const TGWindowfMsgWindow
 window which handles widget events
 
Int_t fWidgetFlags
 widget status flags (OR of EWidgetStatus)
 
Int_t fWidgetId
 the widget id (used for event processing)
 

#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.

◆ Class()

static TClass * TGWidget::Class ( )
static
Returns
TClass describing this class

◆ Class_Name()

static const char * TGWidget::Class_Name ( )
static
Returns
Name of this class

◆ Class_Version()

static constexpr Version_t TGWidget::Class_Version ( )
inlinestaticconstexpr
Returns
Version of this class

Definition at line 76 of file TGWidget.h.

◆ ClearFlags()

Int_t TGWidget::ClearFlags ( Int_t  flags)
inlineprotected

Definition at line 59 of file TGWidget.h.

◆ DeclFileName()

static const char * TGWidget::DeclFileName ( )
inlinestatic
Returns
Name of the file containing the class declaration

Definition at line 76 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.

◆ IsA()

◆ 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.

◆ Streamer()

◆ StreamerNVirtual()

void TGWidget::StreamerNVirtual ( TBuffer ClassDef_StreamerNVirtual_b)
inline

Definition at line 76 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:

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