ROOT  6.06/09
Reference Guide
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 #ifndef ROOT_TGFrame
16 #include "TGFrame.h"
17 #endif
18 
19 #ifndef ROOT_TString
20 #include "TString.h"
21 #endif
22 
23 #ifndef ROOT_TImage
24 #include "TImage.h"
25 #endif
26 
27 #ifndef ROOT_TGPicture
28 #include "TGPicture.h"
29 #endif
30 
32 
33 private:
34  TGShapedFrame(const TGShapedFrame&); // Not implemented
35  TGShapedFrame& operator=(const TGShapedFrame&); // Not implemented
36 
37 protected:
38  const TGPicture *fBgnd; // picture used as background/shape
39  TImage *fImage; // image used as background/shape
40  virtual void DoRedraw() {}
41 
42 public:
43  TGShapedFrame(const char *fname=0, const TGWindow *p=0, UInt_t w=1, UInt_t h=1, UInt_t options=0);
44  virtual ~TGShapedFrame();
45 
46  const TGPicture GetPicture() const { return *fBgnd; }
47  TImage GetImage() const { return *fImage; }
48 
49  virtual void SavePrimitive(std::ostream &out, Option_t *option = "");
50 
51  ClassDef(TGShapedFrame, 0) // Shaped composite frame
52 };
53 
54 #endif
TGShapedFrame & operator=(const TGShapedFrame &)
const TGPicture * fBgnd
Definition: TGShapedFrame.h:38
const char Option_t
Definition: RtypesCore.h:62
TH1 * h
Definition: legend2.C:5
An abstract interface to image processing library.
Definition: TImage.h:45
#define ClassDef(name, id)
Definition: Rtypes.h:254
char * out
Definition: TBase64.cxx:29
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a shaped frame as a C++ statement(s) on output stream out.
TImage * fImage
Definition: TGShapedFrame.h:39
unsigned int UInt_t
Definition: RtypesCore.h:42
virtual ~TGShapedFrame()
Destructor.
TImage GetImage() const
Definition: TGShapedFrame.h:47
const TGPicture GetPicture() const
Definition: TGShapedFrame.h:46
virtual void DoRedraw()
Redraw the frame.
Definition: TGShapedFrame.h:40
TGShapedFrame(const TGShapedFrame &)