#ifndef ROOT_TGIcon #define ROOT_TGIcon //+SEQ,CopyRight,T=NOINCLUDE. ////////////////////////////////////////////////////////////////////////// // // // TGIcon // // // // This class handles GUI icons. // // // ////////////////////////////////////////////////////////////////////////// #ifndef ROOT_TGFrame //*KEEP,TGFrame. #include "TGFrame.h" //*KEND. #endif #ifndef ROOT_TGDimension //*KEEP,TGDimension,T=C++. #include "TGDimension.h" //*KEND. #endif class TGPicture; class TGIcon : public TGFrame { protected: const TGPicture *fPic; // icon picture virtual void DoRedraw(); public: TGIcon(const TGWindow *p, const TGPicture *pic, UInt_t w, UInt_t h, UInt_t options = kChildFrame, ULong_t back = fgDefaultFrameBackground) : TGFrame(p, w, h, options, back) { fPic = pic; } ~TGIcon(); const TGPicture *GetPicture() const { return fPic; } virtual void SetPicture(const TGPicture *pic); virtual TGDimension GetDefaultSize() const; ClassDef(TGIcon,0) // Icon GUI class }; #endif