ROOT
v6-20
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
23
class
TGShapedFrame
:
public
TGCompositeFrame
{
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
h
#define h(i)
Definition:
RSha256.hxx:106
UInt_t
unsigned int UInt_t
Definition:
RtypesCore.h:42
Option_t
const char Option_t
Definition:
RtypesCore.h:62
ClassDef
#define ClassDef(name, id)
Definition:
Rtypes.h:326
TGFrame.h
TGPicture.h
TImage.h
TString.h
TGCompositeFrame
Definition:
TGFrame.h:346
TGPicture
Definition:
TGPicture.h:36
TGShapedFrame
Definition:
TGShapedFrame.h:23
TGShapedFrame::TGShapedFrame
TGShapedFrame(const TGShapedFrame &)
TGShapedFrame::~TGShapedFrame
virtual ~TGShapedFrame()
Destructor.
Definition:
TGShapedFrame.cxx:61
TGShapedFrame::GetPicture
const TGPicture GetPicture() const
Definition:
TGShapedFrame.h:38
TGShapedFrame::GetImage
TImage GetImage() const
Definition:
TGShapedFrame.h:39
TGShapedFrame::DoRedraw
virtual void DoRedraw()
Redraw the frame.
Definition:
TGShapedFrame.h:32
TGShapedFrame::fImage
TImage * fImage
Definition:
TGShapedFrame.h:31
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
TGShapedFrame::operator=
TGShapedFrame & operator=(const TGShapedFrame &)
TGShapedFrame::fBgnd
const TGPicture * fBgnd
Definition:
TGShapedFrame.h:30
TGWindow
Definition:
TGWindow.h:32
TImage
An abstract interface to image processing library.
Definition:
TImage.h:29
gui
gui
inc
TGShapedFrame.h
ROOT v6-20 - Reference Guide Generated on Fri Apr 1 2022 00:20:55 (GVA Time) using Doxygen 1.9.4