Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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
23private:
24 TGShapedFrame(const TGShapedFrame&) = delete;
26
27protected:
28 const TGPicture *fBgnd; ///< picture used as background/shape
29 TImage *fImage; ///< image used as background/shape
30 virtual void DoRedraw() {}
31
32public:
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
#define h(i)
Definition RSha256.hxx:106
unsigned int UInt_t
Definition RtypesCore.h:46
const char Option_t
Definition RtypesCore.h:66
#define ClassDef(name, id)
Definition Rtypes.h:325
The base class for composite widgets (menu bars, list boxes, etc.).
Definition TGFrame.h:287
The TGPicture class implements pictures and icons used in the different GUI elements and widgets.
Definition TGPicture.h:25
A Shaped window.
virtual ~TGShapedFrame()
Destructor.
const TGPicture GetPicture() const
TGShapedFrame(const TGShapedFrame &)=delete
TImage GetImage() const
virtual void DoRedraw()
Redraw the frame.
TImage * fImage
image used as background/shape
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 &)=delete
const TGPicture * fBgnd
picture used as background/shape
ROOT GUI Window base class.
Definition TGWindow.h:23
An abstract interface to image processing library.
Definition TImage.h:29