ROOT logo
// @(#)root/gui:$Id: TGShapedFrame.h 23115 2008-04-10 13:35:37Z rdm $
// Author: Bertrand Bellenot 23/01/2008

/*************************************************************************
 * Copyright (C) 1995-2008, 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_TGShapedFrame
#define ROOT_TGShapedFrame

#ifndef ROOT_TGFrame
#include "TGFrame.h"
#endif

#ifndef ROOT_TString
#include "TString.h"
#endif

#ifndef ROOT_TImage
#include "TImage.h"
#endif

#ifndef ROOT_TGPicture
#include "TGPicture.h"
#endif

class TGShapedFrame : public TGCompositeFrame {

private:
   TGShapedFrame(const TGShapedFrame&); // Not implemented
   TGShapedFrame& operator=(const TGShapedFrame&); // Not implemented

protected:
   const TGPicture      *fBgnd;     // picture used as background/shape
   TImage               *fImage;    // image used as background/shape
   virtual void          DoRedraw() {}

public:
   TGShapedFrame(const char *fname=0, const TGWindow *p=0, UInt_t w=1, UInt_t h=1, UInt_t options=0);
   virtual ~TGShapedFrame();

   const TGPicture   GetPicture() const { return *fBgnd; }
   TImage            GetImage() const { return *fImage; }

   virtual void      SavePrimitive(ostream &out, Option_t *option = "");

   ClassDef(TGShapedFrame, 0) // Shaped composite frame
};

#endif
 TGShapedFrame.h:1
 TGShapedFrame.h:2
 TGShapedFrame.h:3
 TGShapedFrame.h:4
 TGShapedFrame.h:5
 TGShapedFrame.h:6
 TGShapedFrame.h:7
 TGShapedFrame.h:8
 TGShapedFrame.h:9
 TGShapedFrame.h:10
 TGShapedFrame.h:11
 TGShapedFrame.h:12
 TGShapedFrame.h:13
 TGShapedFrame.h:14
 TGShapedFrame.h:15
 TGShapedFrame.h:16
 TGShapedFrame.h:17
 TGShapedFrame.h:18
 TGShapedFrame.h:19
 TGShapedFrame.h:20
 TGShapedFrame.h:21
 TGShapedFrame.h:22
 TGShapedFrame.h:23
 TGShapedFrame.h:24
 TGShapedFrame.h:25
 TGShapedFrame.h:26
 TGShapedFrame.h:27
 TGShapedFrame.h:28
 TGShapedFrame.h:29
 TGShapedFrame.h:30
 TGShapedFrame.h:31
 TGShapedFrame.h:32
 TGShapedFrame.h:33
 TGShapedFrame.h:34
 TGShapedFrame.h:35
 TGShapedFrame.h:36
 TGShapedFrame.h:37
 TGShapedFrame.h:38
 TGShapedFrame.h:39
 TGShapedFrame.h:40
 TGShapedFrame.h:41
 TGShapedFrame.h:42
 TGShapedFrame.h:43
 TGShapedFrame.h:44
 TGShapedFrame.h:45
 TGShapedFrame.h:46
 TGShapedFrame.h:47
 TGShapedFrame.h:48
 TGShapedFrame.h:49
 TGShapedFrame.h:50
 TGShapedFrame.h:51
 TGShapedFrame.h:52
 TGShapedFrame.h:53
 TGShapedFrame.h:54