Logo ROOT   6.16/01
Reference Guide
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
24
25////////////////////////////////////////////////////////////////////////////////
26/// TQCanvasImp ctor
27
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
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
57{
58 fQCanvas = 0;
59}
60
61////////////////////////////////////////////////////////////////////////////////
62/// Build the TQRootCanvas
63
64void 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);
69}
70
71////////////////////////////////////////////////////////////////////////////////
72/// dtor
73
75{
76}
#define c(i)
Definition: RSha256.hxx:101
int Int_t
Definition: RtypesCore.h:41
unsigned int UInt_t
Definition: RtypesCore.h:42
#define ClassImp(name)
Definition: Rtypes.h:363
include TDocParser_001 C image html pict1_TDocParser_001 png width
Definition: TDocParser.cxx:121
ABC describing GUI independent main window (with menubar, scrollbars and a drawing area).
Definition: TCanvasImp.h:30
TCanvas * fCanvas
Definition: TCanvasImp.h:34
The Canvas class.
Definition: TCanvas.h:31
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
virtual ~TQCanvasImp()
dtor
Definition: TQCanvasImp.cxx:74
TQCanvasImp(TCanvas *=0)
TQCanvasImp ctor.
Definition: TQCanvasImp.cxx:56
TQRootCanvas * fQCanvas
Definition: TQCanvasImp.h:30
TCanvas * GetCanvas()
Definition: TQRootCanvas.h:52
Double_t y[n]
Definition: legend1.C:17
Double_t x[n]
Definition: legend1.C:17