00001 // @(#)root/gui:$Id: TGShapedFrame.h 23115 2008-04-10 13:35:37Z rdm $ 00002 // Author: Bertrand Bellenot 23/01/2008 00003 00004 /************************************************************************* 00005 * Copyright (C) 1995-2008, Rene Brun and Fons Rademakers. * 00006 * All rights reserved. * 00007 * * 00008 * For the licensing terms see $ROOTSYS/LICENSE. * 00009 * For the list of contributors see $ROOTSYS/README/CREDITS. * 00010 *************************************************************************/ 00011 00012 #ifndef ROOT_TGShapedFrame 00013 #define ROOT_TGShapedFrame 00014 00015 #ifndef ROOT_TGFrame 00016 #include "TGFrame.h" 00017 #endif 00018 00019 #ifndef ROOT_TString 00020 #include "TString.h" 00021 #endif 00022 00023 #ifndef ROOT_TImage 00024 #include "TImage.h" 00025 #endif 00026 00027 #ifndef ROOT_TGPicture 00028 #include "TGPicture.h" 00029 #endif 00030 00031 class TGShapedFrame : public TGCompositeFrame { 00032 00033 private: 00034 TGShapedFrame(const TGShapedFrame&); // Not implemented 00035 TGShapedFrame& operator=(const TGShapedFrame&); // Not implemented 00036 00037 protected: 00038 const TGPicture *fBgnd; // picture used as background/shape 00039 TImage *fImage; // image used as background/shape 00040 virtual void DoRedraw() {} 00041 00042 public: 00043 TGShapedFrame(const char *fname=0, const TGWindow *p=0, UInt_t w=1, UInt_t h=1, UInt_t options=0); 00044 virtual ~TGShapedFrame(); 00045 00046 const TGPicture GetPicture() const { return *fBgnd; } 00047 TImage GetImage() const { return *fImage; } 00048 00049 virtual void SavePrimitive(ostream &out, Option_t *option = ""); 00050 00051 ClassDef(TGShapedFrame, 0) // Shaped composite frame 00052 }; 00053 00054 #endif