Logo ROOT   6.14/05
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 #include "TGFrame.h"
16 
17 #include "TString.h"
18 
19 #include "TImage.h"
20 
21 #include "TGPicture.h"
22 
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
TGShapedFrame & operator=(const TGShapedFrame &)
TImage GetImage() const
Definition: TGShapedFrame.h:39
const TGPicture * fBgnd
Definition: TGShapedFrame.h:30
const char Option_t
Definition: RtypesCore.h:62
const TGPicture GetPicture() const
Definition: TGShapedFrame.h:38
An abstract interface to image processing library.
Definition: TImage.h:29
#define ClassDef(name, id)
Definition: Rtypes.h:320
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:31
unsigned int UInt_t
Definition: RtypesCore.h:42
virtual ~TGShapedFrame()
Destructor.
#define h(i)
Definition: RSha256.hxx:106
virtual void DoRedraw()
Redraw the frame.
Definition: TGShapedFrame.h:32
TGShapedFrame(const TGShapedFrame &)