Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
TGShapedFrame.h
Go to the documentation of this file.
1 // @(#)root/gui:$Id$
2 // Author: Bertrand Bellenot 23/01/2008
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2008, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TGShapedFrame
13 #define ROOT_TGShapedFrame
14 
15 #include "TGFrame.h"
16 
17 #include "TString.h"
18 
19 #include "TImage.h"
20 
21 #include "TGPicture.h"
22 
23 class TGShapedFrame : public TGCompositeFrame {
24 
25 private:
26  TGShapedFrame(const TGShapedFrame&); // Not implemented
27  TGShapedFrame& operator=(const TGShapedFrame&); // Not implemented
28 
29 protected:
30  const TGPicture *fBgnd; // picture used as background/shape
31  TImage *fImage; // image used as background/shape
32  virtual void DoRedraw() {}
33 
34 public:
35  TGShapedFrame(const char *fname=0, const TGWindow *p=0, UInt_t w=1, UInt_t h=1, UInt_t options=0);
36  virtual ~TGShapedFrame();
37 
38  const TGPicture GetPicture() const { return *fBgnd; }
39  TImage GetImage() const { return *fImage; }
40 
41  virtual void SavePrimitive(std::ostream &out, Option_t *option = "");
42 
43  ClassDef(TGShapedFrame, 0) // Shaped composite frame
44 };
45 
46 #endif