library: libGui
#include "TGWidget.h"

TGWidget


class description - header file - source file
viewCVS header - viewCVS source

class TGWidget

Inheritance Inherited Members Includes Libraries
Class Charts

Function Members (Methods)

Display options:
Show inherited
Show non-public
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:
Int_tfWidgetIdthe widget id (used for event processing)
Int_tfWidgetFlagswidget status flags (OR of EWidgetStatus)
const TGWindow*fMsgWindowwindow which handles widget events
TStringfCommandcommand to be executed

Class Description

                                                                      
 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.                              
                                                                      

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 update: root/gui:$Name: $:$Id: TGWidget.cxx,v 1.1.1.1 2000/05/16 17:00:42 rdm 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.