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
31 void DoRedraw() override {}
32
33public:
34 TGShapedFrame(const char *fname = nullptr, const TGWindow *p = nullptr, UInt_t w = 1, UInt_t h = 1, UInt_t options = 0);
35 virtual ~TGShapedFrame();
36
37 const TGPicture GetPicture() const { return *fBgnd; }
38 TImage GetImage() const { return *fImage; }
39
40 void SavePrimitive(std::ostream &out, Option_t *option = "") override;
41
42 ClassDefOverride(TGShapedFrame, 0) // Shaped composite frame
43};
44
45#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 ClassDefOverride(name, id)
Definition Rtypes.h:341
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t option
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
TImage * fImage
image used as background/shape
void DoRedraw() override
Redraw the frame.
TGShapedFrame & operator=(const TGShapedFrame &)=delete
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save a shaped frame as a C++ statement(s) on output stream out.
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