ROOT
6.06/09
Reference Guide
ROOT Home Page
Main Page
Related Pages
User's Classes
Namespaces
All Classes
Files
Release Notes
File List
File Members
gui
qtgsi
src
TQCanvasImp.cxx
Go to the documentation of this file.
1
// @(#)root/qtgsi:$Id$
2
// Author: Denis Bertini, M. Al-Turany 01/11/2000
3
4
/*************************************************************************
5
* Copyright (C) 1995-2006, 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
13
//////////////////////////////////////////////////////////////////////////
14
// //
15
// ABC describing GUI independent main window (with menubar, scrollbars //
16
// and a drawing area). //
17
// //
18
//////////////////////////////////////////////////////////////////////////
19
20
#include "
TQCanvasImp.h
"
21
#include "
TQRootCanvas.h
"
22
23
ClassImp
(
TQCanvasImp
)
24
25
////////////////////////////////////////////////////////////////////////////////
26
/// TQCanvasImp ctor
27
28
TQCanvasImp
::
TQCanvasImp
(
TCanvas
*
c
, const
char
*
name
,
UInt_t
width,
UInt_t
height)
29
{
30
// @param c (ptr to ROOT TCanvas)
31
// @param name (title for canvas)
32
// @param width
33
// @param height
34
35
Build(c,name,10,10,width,height);
36
}
37
38
////////////////////////////////////////////////////////////////////////////////
39
/// TQCanvasImp ctor
40
41
TQCanvasImp::TQCanvasImp
(
TCanvas
*
c
,
const
char
*
name
,
Int_t
x
,
Int_t
y
,
UInt_t
width,
UInt_t
height)
42
{
43
// @param c (ptr to ROOT TCanvas)
44
// @param name (title for canvas)
45
// @param x
46
// @param y
47
// @param width
48
// @param height
49
50
Build
(c,name,x,y,width,height);
51
}
52
53
////////////////////////////////////////////////////////////////////////////////
54
/// TQCanvasImp ctor
55
56
TQCanvasImp::TQCanvasImp
(
TCanvas
*
/*v*/
) :
TCanvasImp
()
57
{
58
fQCanvas
= 0;
59
}
60
61
////////////////////////////////////////////////////////////////////////////////
62
/// Build the TQRootCanvas
63
64
void
TQCanvasImp::Build
(
TCanvas
*
c
,
const
char
*
name
,
Int_t
/*x*/
,
Int_t
/*y*/
,
UInt_t
/*width*/
,
65
UInt_t
/*height*/
)
66
{
67
fQCanvas
=
new
TQRootCanvas
(0,name,c);
68
fCanvas
=
fQCanvas
->
GetCanvas
();
69
}
70
71
////////////////////////////////////////////////////////////////////////////////
72
/// dtor
73
74
TQCanvasImp::~TQCanvasImp
()
75
{
76
}
TCanvasImp
ABC describing GUI independent main window (with menubar, scrollbars and a drawing area)...
Definition:
TCanvasImp.h:32
TQRootCanvas.h
TQCanvasImp::TQCanvasImp
TQCanvasImp(TCanvas *=0)
TQCanvasImp ctor.
Definition:
TQCanvasImp.cxx:56
Int_t
int Int_t
Definition:
RtypesCore.h:41
TQRootCanvas
Definition:
TQRootCanvas.h:59
TQCanvasImp::fQCanvas
TQRootCanvas * fQCanvas
Definition:
TQCanvasImp.h:32
x
Double_t x[n]
Definition:
legend1.C:17
TQCanvasImp::Build
void Build(TCanvas *c, const char *name, Int_t x, Int_t y, UInt_t width, UInt_t height)
Build the TQRootCanvas.
Definition:
TQCanvasImp.cxx:64
TQRootCanvas::GetCanvas
TCanvas * GetCanvas()
Definition:
TQRootCanvas.h:73
UInt_t
unsigned int UInt_t
Definition:
RtypesCore.h:42
TQCanvasImp::~TQCanvasImp
virtual ~TQCanvasImp()
dtor
Definition:
TQCanvasImp.cxx:74
TQCanvasImp.h
TCanvas
The Canvas class.
Definition:
TCanvas.h:48
TQCanvasImp
Definition:
TQCanvasImp.h:30
y
Double_t y[n]
Definition:
legend1.C:17
name
#define name(a, b)
Definition:
linkTestLib0.cpp:5
sample_config.c
tuple c
Definition:
sample_config.py:3
ClassImp
ClassImp(TQCanvasImp) TQCanvasImp
TQCanvasImp ctor.
Definition:
TQCanvasImp.cxx:23
TCanvasImp::fCanvas
TCanvas * fCanvas
Definition:
TCanvasImp.h:36