// @(#)root/gui:$Name: $:$Id: TGIcon.h,v 1.2 2001/05/02 11:45:46 rdm Exp $ // Author: Fons Rademakers 05/01/98 /************************************************************************* * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * * All rights reserved. * * * * For the licensing terms see $ROOTSYS/LICENSE. * * For the list of contributors see $ROOTSYS/README/CREDITS. * *************************************************************************/ #ifndef ROOT_TGIcon #define ROOT_TGIcon ////////////////////////////////////////////////////////////////////////// // // // TGIcon // // // // This class handles GUI icons. // // // ////////////////////////////////////////////////////////////////////////// #ifndef ROOT_TGFrame #include "TGFrame.h" #endif #ifndef ROOT_TGDimension #include "TGDimension.h" #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 = GetDefaultFrameBackground()) : 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