ROOT  6.06/09
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 
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 
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);
69 }
70 
71 ////////////////////////////////////////////////////////////////////////////////
72 /// dtor
73 
75 {
76 }
ABC describing GUI independent main window (with menubar, scrollbars and a drawing area)...
Definition: TCanvasImp.h:32
TQCanvasImp(TCanvas *=0)
TQCanvasImp ctor.
Definition: TQCanvasImp.cxx:56
int Int_t
Definition: RtypesCore.h:41
TQRootCanvas * fQCanvas
Definition: TQCanvasImp.h:32
Double_t x[n]
Definition: legend1.C:17
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
TCanvas * GetCanvas()
Definition: TQRootCanvas.h:73
unsigned int UInt_t
Definition: RtypesCore.h:42
virtual ~TQCanvasImp()
dtor
Definition: TQCanvasImp.cxx:74
The Canvas class.
Definition: TCanvas.h:48
Double_t y[n]
Definition: legend1.C:17
#define name(a, b)
Definition: linkTestLib0.cpp:5
ClassImp(TQCanvasImp) TQCanvasImp
TQCanvasImp ctor.
Definition: TQCanvasImp.cxx:23
TCanvas * fCanvas
Definition: TCanvasImp.h:36