Logo ROOT   6.16/01
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
25private:
26 TGShapedFrame(const TGShapedFrame&); // Not implemented
27 TGShapedFrame& operator=(const TGShapedFrame&); // Not implemented
28
29protected:
30 const TGPicture *fBgnd; // picture used as background/shape
31 TImage *fImage; // image used as background/shape
32 virtual void DoRedraw() {}
33
34public:
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
#define h(i)
Definition: RSha256.hxx:106
unsigned int UInt_t
Definition: RtypesCore.h:42
const char Option_t
Definition: RtypesCore.h:62
#define ClassDef(name, id)
Definition: Rtypes.h:324
TGShapedFrame(const TGShapedFrame &)
virtual ~TGShapedFrame()
Destructor.
const TGPicture GetPicture() const
Definition: TGShapedFrame.h:38
TImage GetImage() const
Definition: TGShapedFrame.h:39
virtual void DoRedraw()
Redraw the frame.
Definition: TGShapedFrame.h:32
TImage * fImage
Definition: TGShapedFrame.h:31
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a shaped frame as a C++ statement(s) on output stream out.
TGShapedFrame & operator=(const TGShapedFrame &)
const TGPicture * fBgnd
Definition: TGShapedFrame.h:30
An abstract interface to image processing library.
Definition: TImage.h:29