Logo ROOT  
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 "TImage.h"
18 
19 #include "TGPicture.h"
20 
22 
23 private:
24  TGShapedFrame(const TGShapedFrame&) = delete;
25  TGShapedFrame& operator=(const TGShapedFrame&) = delete;
26 
27 protected:
28  const TGPicture *fBgnd; // picture used as background/shape
29  TImage *fImage; // image used as background/shape
30  virtual void DoRedraw() {}
31 
32 public:
33  TGShapedFrame(const char *fname=0, const TGWindow *p=0, UInt_t w=1, UInt_t h=1, UInt_t options=0);
34  virtual ~TGShapedFrame();
35 
36  const TGPicture GetPicture() const { return *fBgnd; }
37  TImage GetImage() const { return *fImage; }
38 
39  virtual void SavePrimitive(std::ostream &out, Option_t *option = "");
40 
41  ClassDef(TGShapedFrame, 0) // Shaped composite frame
42 };
43 
44 #endif
TGShapedFrame::operator=
TGShapedFrame & operator=(const TGShapedFrame &)=delete
TGWindow
Definition: TGWindow.h:31
TGPicture
Definition: TGPicture.h:36
TGPicture.h
TImage
Definition: TImage.h:29
TGShapedFrame::SavePrimitive
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a shaped frame as a C++ statement(s) on output stream out.
Definition: TGShapedFrame.cxx:70
TImage.h
Option_t
const typedef char Option_t
Definition: RtypesCore.h:66
h
#define h(i)
Definition: RSha256.hxx:124
TGShapedFrame::fImage
TImage * fImage
Definition: TGShapedFrame.h:35
TGFrame.h
TGShapedFrame::GetImage
TImage GetImage() const
Definition: TGShapedFrame.h:43
TGShapedFrame::GetPicture
const TGPicture GetPicture() const
Definition: TGShapedFrame.h:42
TGShapedFrame
Definition: TGShapedFrame.h:21
unsigned int
TGShapedFrame::~TGShapedFrame
virtual ~TGShapedFrame()
Destructor.
Definition: TGShapedFrame.cxx:61
TGShapedFrame::fBgnd
const TGPicture * fBgnd
Definition: TGShapedFrame.h:34
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
TGShapedFrame::DoRedraw
virtual void DoRedraw()
Redraw the frame.
Definition: TGShapedFrame.h:36
TGCompositeFrame
Definition: TGFrame.h:324
TGShapedFrame::TGShapedFrame
TGShapedFrame(const TGShapedFrame &)=delete