#ifndef ROOT_TGObject #define ROOT_TGObject //+SEQ,CopyRight,T=NOINCLUDE. ////////////////////////////////////////////////////////////////////////// // // // TGObject // // // // This class is the baseclass for all ROOT GUI widgets. // // The ROOT GUI components emulate the Win95 look and feel and the code // // is based on the XClass'95 code (see Copyleft in source). // // // ////////////////////////////////////////////////////////////////////////// #ifndef ROOT_TObject //*KEEP,TObject. #include "TObject.h" //*KEND. #endif #ifndef ROOT_GuiTypes //*KEEP,GuiTypes. #include "GuiTypes.h" //*KEND. #endif class TGClient; class TGObject : public TObject { protected: Handle_t fId; // X11/Win32 Window identifier TGClient *fClient; // Connection to display server public: TGObject() { fId = 0; fClient = 0; } virtual ~TGObject() { } Handle_t GetId() const { return fId; } ULong_t Hash() { return (ULong_t) fId >> 0; } Bool_t IsEqual(TObject *obj) { return fId == ((TGObject *) obj)->fId; } ClassDef(TGObject,0) //ROOT GUI base class }; #endif