Logo ROOT  
Reference Guide
TCanvas.h
Go to the documentation of this file.
1 // @(#)root/gpad:$Id$
2 // Author: Rene Brun 12/12/94
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2000, 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_TCanvas
13 #define ROOT_TCanvas
14 
15 #include "TPad.h"
16 
17 #include "TAttCanvas.h"
18 
19 class TCanvasImp;
20 class TContextMenu;
21 class TControlBar;
22 
23 class TCanvas : public TPad {
24 
25 friend class TCanvasImp;
26 friend class TThread;
27 friend class TInterpreter;
28 
29 protected:
30  TAttCanvas fCatt; ///< Canvas attributes
31  TString fDISPLAY; ///< Name of destination screen
32  Size_t fXsizeUser; ///< User specified size of canvas along X in CM
33  Size_t fYsizeUser; ///< User specified size of canvas along Y in CM
34  Size_t fXsizeReal; ///< Current size of canvas along X in CM
35  Size_t fYsizeReal; ///< Current size of canvas along Y in CM
36  Color_t fHighLightColor; ///< Highlight color of active pad
37  Int_t fDoubleBuffer; ///< Double buffer flag (0=off, 1=on)
38  Int_t fWindowTopX; ///< Top X position of window (in pixels)
39  Int_t fWindowTopY; ///< Top Y position of window (in pixels)
40  UInt_t fWindowWidth; ///< Width of window (including borders, etc.)
41  UInt_t fWindowHeight; ///< Height of window (including menubar, borders, etc.)
42  UInt_t fCw; ///< Width of the canvas along X (pixels)
43  UInt_t fCh; ///< Height of the canvas along Y (pixels)
44  Int_t fEvent; ///<! Type of current or last handled event
45  Int_t fEventX; ///<! Last X mouse position in canvas
46  Int_t fEventY; ///<! Last Y mouse position in canvas
47  Int_t fCanvasID; ///<! Canvas identifier
48  TObject *fSelected; ///<! Currently selected object
49  TObject *fClickSelected; ///<! Currently click-selected object
50  Int_t fSelectedX; ///<! X of selected object
51  Int_t fSelectedY; ///<! Y of selected object
52  TString fSelectedOpt; ///<! Drawing option of selected object
53  TPad *fSelectedPad; ///<! Pad containing currently selected object
54  TPad *fClickSelectedPad;///<! Pad containing currently click-selected object
55  TPad *fPadSave; ///<! Pointer to saved pad in HandleInput
56  TCanvasImp *fCanvasImp; ///<! Window system specific canvas implementation
57  TContextMenu *fContextMenu; ///<! Context menu pointer
58  Bool_t fBatch; ///<! True when in batchmode
59  Bool_t fUpdating; ///<! True when Updating the canvas
60  Bool_t fRetained; ///< Retain structure flag
61  Bool_t fUseGL; ///<! True when rendering is with GL
62  Bool_t fDrawn; ///<! Set to True when the Draw method is called
63  //
64  TVirtualPadPainter *fPainter; ///<! Canvas (pad) painter.
65 
66  static Bool_t fgIsFolder; ///< Indicates if canvas can be browsed as a folder
67 
68 private:
69  TCanvas(const TCanvas &canvas); // cannot copy canvas, use TObject::Clone()
70  TCanvas &operator=(const TCanvas &rhs); // idem
71  void Build();
72  void CopyPixmaps();
73  void DrawEventStatus(Int_t event, Int_t x, Int_t y, TObject *selected);
74  void RunAutoExec();
75 
76  //Initialize PadPainter.
77  void CreatePainter();
78 
79 protected:
80  virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py);
81  //-- used by friend TThread class
82  void Init();
83 
84 public:
85  // TCanvas status bits
86  enum {
88  kAutoExec = BIT(16),
89  kMenuBar = BIT(17),
96  };
97 
98  TCanvas(Bool_t build=kTRUE);
99  TCanvas(const char *name, const char *title="", Int_t form=1);
100  TCanvas(const char *name, const char *title, Int_t ww, Int_t wh);
101  TCanvas(const char *name, const char *title, Int_t wtopx, Int_t wtopy,
102  Int_t ww, Int_t wh);
103  TCanvas(const char *name, Int_t ww, Int_t wh, Int_t winid);
104  virtual ~TCanvas();
105 
106  //-- used by friend TThread class
107  void Constructor();
108  void Constructor(const char *name, const char *title, Int_t form);
109  void Constructor(const char *name, const char *title, Int_t ww, Int_t wh);
110  void Constructor(const char *name, const char *title,
111  Int_t wtopx, Int_t wtopy, Int_t ww, Int_t wh);
112  void Destructor();
113 
114  TVirtualPad *cd(Int_t subpadnumber=0);
115  virtual void Browse(TBrowser *b);
116  void Clear(Option_t *option="");
117  void Close(Option_t *option="");
118  virtual void Delete(Option_t * = "") { MayNotUse("Delete()"); }
119  void DisconnectWidget(); // used by TCanvasImp
120  virtual void Draw(Option_t *option="");
121  virtual TObject *DrawClone(Option_t *option="") const; // *MENU*
122  virtual TObject *DrawClonePad(); // *MENU*
123  virtual void EditorBar();
124  void EmbedInto(Int_t winid, Int_t ww, Int_t wh);
125  void EnterLeave(TPad *prevSelPad, TObject *prevSelObj);
126  void FeedbackMode(Bool_t set);
127  void Flush();
128  void UseCurrentStyle(); // *MENU*
129  void ForceUpdate();
130  const char *GetDISPLAY() const {return fDISPLAY.Data();}
133  Int_t GetEvent() const { return fEvent; }
134  Int_t GetEventX() const { return fEventX; }
135  Int_t GetEventY() const { return fEventY; }
137  TVirtualPad *GetPadSave() const { return fPadSave; }
138  void ClearPadSave() { fPadSave = 0; }
139  TObject *GetSelected() const {return fSelected;}
141  Int_t GetSelectedX() const {return fSelectedX;}
142  Int_t GetSelectedY() const {return fSelectedY;}
150  Bool_t GetAutoExec() const { return TestBit(kAutoExec); }
151  Size_t GetXsizeUser() const {return fXsizeUser;}
152  Size_t GetYsizeUser() const {return fYsizeUser;}
153  Size_t GetXsizeReal() const {return fXsizeReal;}
154  Size_t GetYsizeReal() const {return fYsizeReal;}
155  Int_t GetCanvasID() const {return fCanvasID;}
156  TCanvasImp *GetCanvasImp() const {return fCanvasImp;}
159  UInt_t GetWindowWidth() const { return fWindowWidth; }
161  UInt_t GetWw() const { return fCw; }
162  UInt_t GetWh() const { return fCh; }
163  virtual void GetCanvasPar(Int_t &wtopx, Int_t &wtopy, UInt_t &ww, UInt_t &wh)
164  {wtopx=GetWindowTopX(); wtopy=fWindowTopY; ww=fWindowWidth; wh=fWindowHeight;}
165  virtual void HandleInput(EEventType button, Int_t x, Int_t y);
166  Bool_t HasMenuBar() const { return TestBit(kMenuBar); }
167  virtual void HighlightConnect(const char *slot);
168  void Iconify();
169  Bool_t IsBatch() const { return fBatch; }
170  Bool_t IsDrawn() { return fDrawn; }
171  Bool_t IsFolder() const;
173  Bool_t IsRetained() const { return fRetained; }
174  Bool_t IsWeb() const;
175  virtual void ls(Option_t *option="") const;
176  void MoveOpaque(Int_t set=1);
177  Bool_t OpaqueMoving() const { return TestBit(kMoveOpaque); }
179  virtual void Paint(Option_t *option="");
180  virtual TPad *Pick(Int_t px, Int_t py, TObjLink *&pickobj) { return TPad::Pick(px, py, pickobj); }
181  virtual TPad *Pick(Int_t px, Int_t py, TObject *prevSelObj);
182  virtual void Picked(TPad *selpad, TObject *selected, Int_t event); // *SIGNAL*
183  virtual void Highlighted(TVirtualPad *pad, TObject *obj, Int_t x, Int_t y); // *SIGNAL*
184  virtual void ProcessedEvent(Int_t event, Int_t x, Int_t y, TObject *selected); // *SIGNAL*
185  virtual void Selected(TVirtualPad *pad, TObject *obj, Int_t event); // *SIGNAL*
186  virtual void Cleared(TVirtualPad *pad); // *SIGNAL*
187  virtual void Closed(); // *SIGNAL*
188  void RaiseWindow();
190  virtual void Resize(Option_t *option="");
191  void ResizeOpaque(Int_t set=1);
192  void SaveSource(const char *filename="", Option_t *option="");
193  void SavePrimitive(std::ostream &out, Option_t *option = "");
194  virtual void SetCursor(ECursor cursor);
195  virtual void SetDoubleBuffer(Int_t mode=1);
196  virtual void SetName(const char *name="");
197  virtual void SetFixedAspectRatio(Bool_t fixed = kTRUE); // *TOGGLE*
198  void SetGrayscale(Bool_t set = kTRUE); // *TOGGLE* *GETTER=IsGrayscale
200  void SetWindowSize(UInt_t ww, UInt_t wh);
202  void SetCanvasSize(UInt_t ww, UInt_t wh); // *MENU*
204  void SetSelected(TObject *obj);
206  void SetSelectedPad(TPad *pad) { fSelectedPad = pad; }
208  void Show();
209  virtual void Size(Float_t xsizeuser=0, Float_t ysizeuser=0);
210  void SetBatch(Bool_t batch=kTRUE);
211  static void SetFolder(Bool_t isfolder=kTRUE);
212  void SetPadSave(TPad *pad) {fPadSave = pad;}
213  bool SetRealAspectRatio(const Int_t axis = 1); // *MENU*
214  void SetRetained(Bool_t retained=kTRUE) { fRetained=retained;}
215  void SetTitle(const char *title="");
216  virtual void ToggleEventStatus();
217  virtual void ToggleAutoExec();
218  virtual void ToggleToolBar();
219  virtual void ToggleEditor();
220  virtual void ToggleToolTips();
221  virtual void Update();
222 
223  Bool_t UseGL() const { return fUseGL; }
224  void SetSupportGL(Bool_t support) {fUseGL = support;}
226  void DeleteCanvasPainter();
227 
228  static TCanvas *MakeDefCanvas();
229  static Bool_t SupportAlpha();
230 
231  ClassDef(TCanvas,8) //Graphics canvas
232 };
233 
234 #endif
TCanvas::fgIsFolder
static Bool_t fgIsFolder
Indicates if canvas can be browsed as a folder.
Definition: TCanvas.h:66
TCanvas::GetCanvasImp
TCanvasImp * GetCanvasImp() const
Get canvas implementation pointer if any.
Definition: TCanvas.h:156
TCanvas::fCatt
TAttCanvas fCatt
Canvas attributes.
Definition: TCanvas.h:30
TCanvas::SetGrayscale
void SetGrayscale(Bool_t set=kTRUE)
Set whether this canvas should be painted in grayscale, and re-paint it if necessary.
Definition: TCanvas.cxx:2568
TCanvas::kShowEditor
@ kShowEditor
Definition: TCanvas.h:91
TCanvas::fDrawn
Bool_t fDrawn
! Set to True when the Draw method is called
Definition: TCanvas.h:62
TCanvas::SavePrimitive
void SavePrimitive(std::ostream &out, Option_t *option="")
Save primitives in this canvas in C++ macro file with GUI.
Definition: TCanvas.cxx:1779
TCanvas::fEventX
Int_t fEventX
! Last X mouse position in canvas
Definition: TCanvas.h:45
TBrowser
Definition: TBrowser.h:37
TThread
Definition: TThread.h:40
kTRUE
const Bool_t kTRUE
Definition: RtypesCore.h:91
TObject::TestBit
R__ALWAYS_INLINE Bool_t TestBit(UInt_t f) const
Definition: TObject.h:172
TCanvas::fXsizeReal
Size_t fXsizeReal
Current size of canvas along X in CM.
Definition: TCanvas.h:34
TCanvas::fBatch
Bool_t fBatch
! True when in batchmode
Definition: TCanvas.h:58
TCanvas::ToggleAutoExec
virtual void ToggleAutoExec()
Toggle pad auto execution of list of TExecs.
Definition: TCanvas.cxx:2433
TCanvas::IsRetained
Bool_t IsRetained() const
Is pad retained ?
Definition: TCanvas.h:173
TCanvas::GetAutoExec
Bool_t GetAutoExec() const
Definition: TCanvas.h:150
TCanvas::SetTitle
void SetTitle(const char *title="")
Set canvas title.
Definition: TCanvas.cxx:2179
TPad
Definition: TPad.h:26
TCanvas::HasMenuBar
Bool_t HasMenuBar() const
Definition: TCanvas.h:166
TCanvas::Pick
virtual TPad * Pick(Int_t px, Int_t py, TObjLink *&pickobj)
Search for an object at pixel position px,py.
Definition: TCanvas.h:180
ECursor
ECursor
Definition: GuiTypes.h:371
TCanvas::DisconnectWidget
void DisconnectWidget()
Used by friend class TCanvasImp.
Definition: TCanvas.cxx:2550
TCanvas::GetWw
UInt_t GetWw() const
Get Ww.
Definition: TCanvas.h:161
TString::Data
const char * Data() const
Definition: TString.h:369
TCanvas::Selected
virtual void Selected(TVirtualPad *pad, TObject *obj, Int_t event)
Emit Selected() signal.
Definition: TCanvas.cxx:1637
TAttCanvas.h
TCanvas::ls
virtual void ls(Option_t *option="") const
List all pads.
Definition: TCanvas.cxx:1490
TCanvas::OpaqueResizing
Bool_t OpaqueResizing() const
Is pad resizing in opaque mode ?
Definition: TCanvas.h:178
TCanvas::IsWeb
Bool_t IsWeb() const
Is web canvas.
Definition: TCanvas.cxx:1482
TCanvas::ResizeOpaque
void ResizeOpaque(Int_t set=1)
Set option to resize objects/pads in a canvas.
Definition: TCanvas.cxx:1760
TCanvas::GetYsizeUser
Size_t GetYsizeUser() const
Definition: TCanvas.h:152
TCanvas::IsDrawn
Bool_t IsDrawn()
Definition: TCanvas.h:170
TCanvas::kShowEventStatus
@ kShowEventStatus
Definition: TCanvas.h:87
TCanvas::EditorBar
virtual void EditorBar()
Get editor bar.
Definition: TCanvas.cxx:1026
TCanvas::fYsizeReal
Size_t fYsizeReal
Current size of canvas along Y in CM.
Definition: TCanvas.h:35
TCanvas::IsFolder
Bool_t IsFolder() const
Is folder ?
Definition: TCanvas.cxx:1474
TCanvas::CreatePainter
void CreatePainter()
Probably, TPadPainter must be placed in a separate ROOT module - "padpainter" (the same as "histpaint...
Definition: TCanvas.cxx:2582
TCanvas::GetEvent
Int_t GetEvent() const
Get Event.
Definition: TCanvas.h:133
TCanvas::EnterLeave
void EnterLeave(TPad *prevSelPad, TObject *prevSelObj)
Generate kMouseEnter and kMouseLeave events depending on the previously selected object and the curre...
Definition: TCanvas.cxx:1061
Float_t
float Float_t
Definition: RtypesCore.h:57
TCanvas::GetSelectedOpt
Option_t * GetSelectedOpt() const
Definition: TCanvas.h:143
TCanvas::fPainter
TVirtualPadPainter * fPainter
! Canvas (pad) painter.
Definition: TCanvas.h:64
TCanvas::kResizeOpaque
@ kResizeOpaque
Definition: TCanvas.h:93
TCanvas::fSelectedY
Int_t fSelectedY
! Y of selected object
Definition: TCanvas.h:51
EEventType
EEventType
Definition: Buttons.h:15
Int_t
int Int_t
Definition: RtypesCore.h:45
TCanvas::GetClickSelected
TObject * GetClickSelected() const
Definition: TCanvas.h:140
TCanvas::FeedbackMode
void FeedbackMode(Bool_t set)
Turn rubberband feedback mode on or off.
Definition: TCanvas.cxx:1116
TCanvas::fSelectedPad
TPad * fSelectedPad
! Pad containing currently selected object
Definition: TCanvas.h:53
TCanvas::kShowToolTips
@ kShowToolTips
Definition: TCanvas.h:95
TPad.h
x
Double_t x[n]
Definition: legend1.C:17
TCanvas::SetFolder
static void SetFolder(Bool_t isfolder=kTRUE)
If isfolder=kTRUE, the canvas can be browsed like a folder by default a canvas is not browsable.
Definition: TCanvas.cxx:2052
TCanvas::fEventY
Int_t fEventY
! Last Y mouse position in canvas
Definition: TCanvas.h:46
TCanvas::kAutoExec
@ kAutoExec
Definition: TCanvas.h:88
TCanvas::GetHighLightColor
Color_t GetHighLightColor() const
Get highlight color.
Definition: TCanvas.h:136
TCanvas::GetContextMenu
TContextMenu * GetContextMenu() const
Definition: TCanvas.h:131
TCanvas::SetSupportGL
void SetSupportGL(Bool_t support)
Definition: TCanvas.h:224
TCanvas::IsGrayscale
Bool_t IsGrayscale()
Check whether this canvas is to be drawn in grayscale mode.
Definition: TCanvas.cxx:2559
TCanvas::Clear
void Clear(Option_t *option="")
Remove all primitives from the canvas.
Definition: TCanvas.cxx:723
TCanvas::GetWh
UInt_t GetWh() const
Get Wh.
Definition: TCanvas.h:162
TObject::MayNotUse
void MayNotUse(const char *method) const
Use this method to signal that a method (defined in a base class) may not be called in a derived clas...
Definition: TObject.cxx:943
TCanvas::RunAutoExec
void RunAutoExec()
Execute the list of TExecs in the current pad.
Definition: TCanvas.cxx:1768
TCanvas::UseGL
Bool_t UseGL() const
Definition: TCanvas.h:223
TCanvas::SetSelected
void SetSelected(TObject *obj)
Set selected canvas.
Definition: TCanvas.cxx:2170
TCanvas::GetCanvasID
Int_t GetCanvasID() const
Get canvas identifier.
Definition: TCanvas.h:155
TCanvas::Size
virtual void Size(Float_t xsizeuser=0, Float_t ysizeuser=0)
Set the canvas scale in centimeters.
Definition: TCanvas.cxx:2225
TCanvas::GetSelectedY
Int_t GetSelectedY() const
Definition: TCanvas.h:142
TCanvas::fCanvasID
Int_t fCanvasID
! Canvas identifier
Definition: TCanvas.h:47
TString
Definition: TString.h:136
TCanvas::fCh
UInt_t fCh
Height of the canvas along Y (pixels)
Definition: TCanvas.h:43
Bool_t
bool Bool_t
Definition: RtypesCore.h:63
Color_t
short Color_t
Definition: RtypesCore.h:83
TCanvas::fCw
UInt_t fCw
Width of the canvas along X (pixels)
Definition: TCanvas.h:42
TCanvas::SaveSource
void SaveSource(const char *filename="", Option_t *option="")
Save primitives in this canvas as a C++ macro file.
Definition: TCanvas.cxx:1824
b
#define b(i)
Definition: RSha256.hxx:118
TControlBar
Definition: TControlBar.h:26
TCanvas::kMoveOpaque
@ kMoveOpaque
Definition: TCanvas.h:92
TCanvas::fPadSave
TPad * fPadSave
! Pointer to saved pad in HandleInput
Definition: TCanvas.h:55
TCanvas::fSelected
TObject * fSelected
! Currently selected object
Definition: TCanvas.h:48
TCanvas::CopyPixmaps
void CopyPixmaps()
Copy the canvas pixmap of the pad to the canvas.
Definition: TCanvas.cxx:823
TCanvas::Constructor
void Constructor()
Canvas default constructor.
Definition: TCanvas.cxx:183
bool
TCanvas::GetClickSelectedPad
TVirtualPad * GetClickSelectedPad() const
Definition: TCanvas.h:145
TCanvas::fDoubleBuffer
Int_t fDoubleBuffer
Double buffer flag (0=off, 1=on)
Definition: TCanvas.h:37
TCanvas::HandleInput
virtual void HandleInput(EEventType button, Int_t x, Int_t y)
Handle Input Events.
Definition: TCanvas.cxx:1221
TCanvas::GetEventX
Int_t GetEventX() const
Get X event.
Definition: TCanvas.h:134
TCanvas::Destructor
void Destructor()
Actual canvas destructor.
Definition: TCanvas.cxx:680
TCanvas::kShowToolBar
@ kShowToolBar
Definition: TCanvas.h:90
TCanvas::UseCurrentStyle
void UseCurrentStyle()
Force a copy of current style for all objects in canvas.
Definition: TCanvas.cxx:1172
TCanvas::Draw
virtual void Draw(Option_t *option="")
Draw a canvas.
Definition: TCanvas.cxx:841
TCanvas::fDISPLAY
TString fDISPLAY
Name of destination screen.
Definition: TCanvas.h:31
TContextMenu
Definition: TContextMenu.h:44
TCanvas::ResetDrawn
void ResetDrawn()
Definition: TCanvas.h:189
TCanvas::SetPadSave
void SetPadSave(TPad *pad)
Definition: TCanvas.h:212
TCanvas::ExecuteEvent
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Execute action corresponding to one event.
Definition: TCanvas.cxx:1098
TCanvas::fYsizeUser
Size_t fYsizeUser
User specified size of canvas along Y in CM.
Definition: TCanvas.h:33
TCanvas::SupportAlpha
static Bool_t SupportAlpha()
Static function returning "true" if transparency is supported.
Definition: TCanvas.cxx:2487
Option_t
const typedef char Option_t
Definition: RtypesCore.h:66
TCanvas::DrawClonePad
virtual TObject * DrawClonePad()
Draw a clone of this canvas into the current pad In an interactive session, select the destination/cu...
Definition: TCanvas.cxx:905
TCanvas::Highlighted
virtual void Highlighted(TVirtualPad *pad, TObject *obj, Int_t x, Int_t y)
Emit Highlighted() signal.
Definition: TCanvas.cxx:1610
TCanvas::Close
void Close(Option_t *option="")
Close canvas.
Definition: TCanvas.cxx:774
TCanvas::GetCanvasPainter
TVirtualPadPainter * GetCanvasPainter()
Access and (probably) creation of pad painter.
Definition: TCanvas.cxx:2603
TCanvas::GetDoubleBuffer
Int_t GetDoubleBuffer() const
Definition: TCanvas.h:132
TCanvas::ProcessedEvent
virtual void ProcessedEvent(Int_t event, Int_t x, Int_t y, TObject *selected)
Emit ProcessedEvent() signal.
Definition: TCanvas.cxx:1651
TCanvas::MoveOpaque
void MoveOpaque(Int_t set=1)
Set option to move objects/pads in a canvas.
Definition: TCanvas.cxx:1533
TCanvas::GetShowToolTips
Bool_t GetShowToolTips() const
Definition: TCanvas.h:149
TCanvas::GetShowToolBar
Bool_t GetShowToolBar() const
Definition: TCanvas.h:147
TCanvas::SetWindowPosition
void SetWindowPosition(Int_t x, Int_t y)
Set canvas window position.
Definition: TCanvas.cxx:2188
TCanvas::Closed
virtual void Closed()
Emit Closed signal.
Definition: TCanvas.cxx:764
TCanvas::SetSelectedPad
void SetSelectedPad(TPad *pad)
Definition: TCanvas.h:206
TCanvas::GetShowEventStatus
Bool_t GetShowEventStatus() const
Definition: TCanvas.h:146
TCanvas::cd
TVirtualPad * cd(Int_t subpadnumber=0)
Set current canvas & pad.
Definition: TCanvas.cxx:704
TCanvas::ToggleToolBar
virtual void ToggleToolBar()
Toggle toolbar.
Definition: TCanvas.cxx:2453
TCanvas::fClickSelected
TObject * fClickSelected
! Currently click-selected object
Definition: TCanvas.h:49
TCanvas::GetPadSave
TVirtualPad * GetPadSave() const
Definition: TCanvas.h:137
kFALSE
const Bool_t kFALSE
Definition: RtypesCore.h:92
TCanvas::fWindowWidth
UInt_t fWindowWidth
Width of window (including borders, etc.)
Definition: TCanvas.h:40
TCanvas::DrawEventStatus
void DrawEventStatus(Int_t event, Int_t x, Int_t y, TObject *selected)
Report name and title of primitive below the cursor.
Definition: TCanvas.cxx:960
TCanvas::SetClickSelectedPad
void SetClickSelectedPad(TPad *pad)
Definition: TCanvas.h:207
TCanvas::SetCanvasSize
void SetCanvasSize(UInt_t ww, UInt_t wh)
Set Width and Height of canvas to ww and wh respectively.
Definition: TCanvas.cxx:1991
TCanvas::Show
void Show()
Show canvas.
Definition: TCanvas.cxx:2236
TCanvas::GetXsizeReal
Size_t GetXsizeReal() const
Definition: TCanvas.h:153
TCanvas::~TCanvas
virtual ~TCanvas()
Canvas destructor.
Definition: TCanvas.cxx:662
TCanvasImp
Definition: TCanvasImp.h:30
TCanvas::fSelectedX
Int_t fSelectedX
! X of selected object
Definition: TCanvas.h:50
TCanvas::GetSelected
TObject * GetSelected() const
Get selected.
Definition: TCanvas.h:139
BIT
#define BIT(n)
Definition: Rtypes.h:85
UInt_t
unsigned int UInt_t
Definition: RtypesCore.h:46
TCanvas::GetWindowWidth
UInt_t GetWindowWidth() const
Definition: TCanvas.h:159
y
Double_t y[n]
Definition: legend1.C:17
TCanvas::GetWindowHeight
UInt_t GetWindowHeight() const
Definition: TCanvas.h:160
TCanvas::fWindowTopY
Int_t fWindowTopY
Top Y position of window (in pixels)
Definition: TCanvas.h:39
TCanvas::EmbedInto
void EmbedInto(Int_t winid, Int_t ww, Int_t wh)
Embedded a canvas into a TRootEmbeddedCanvas.
Definition: TCanvas.cxx:1035
TCanvas::GetYsizeReal
Size_t GetYsizeReal() const
Definition: TCanvas.h:154
TCanvas::Init
void Init()
Initialize the TCanvas members. Called by all constructors.
Definition: TCanvas.cxx:523
TCanvas::OpaqueMoving
Bool_t OpaqueMoving() const
Is pad moving in opaque mode ?
Definition: TCanvas.h:177
TCanvas::ToggleToolTips
virtual void ToggleToolTips()
Toggle tooltip display.
Definition: TCanvas.cxx:2475
TCanvas::GetEventY
Int_t GetEventY() const
Get Y event.
Definition: TCanvas.h:135
TCanvas::fWindowTopX
Int_t fWindowTopX
Top X position of window (in pixels)
Definition: TCanvas.h:38
TCanvas::Iconify
void Iconify()
Iconify canvas.
Definition: TCanvas.cxx:1465
TCanvas::SetBatch
void SetBatch(Bool_t batch=kTRUE)
Toggle batch mode.
Definition: TCanvas.cxx:1975
TCanvas::ToggleEventStatus
virtual void ToggleEventStatus()
Toggle event statusbar.
Definition: TCanvas.cxx:2442
TCanvas::fXsizeUser
Size_t fXsizeUser
User specified size of canvas along X in CM.
Definition: TCanvas.h:32
TCanvas::Build
void Build()
Build a canvas. Called by all constructors.
Definition: TCanvas.cxx:572
TCanvas::SetName
virtual void SetName(const char *name="")
Set canvas name. In case name is an empty string, a default name is set.
Definition: TCanvas.cxx:2060
TCanvas::fCanvasImp
TCanvasImp * fCanvasImp
! Window system specific canvas implementation
Definition: TCanvas.h:56
unsigned int
TCanvas::kIsGrayscale
@ kIsGrayscale
Definition: TCanvas.h:94
TCanvas::fContextMenu
TContextMenu * fContextMenu
! Context menu pointer
Definition: TCanvas.h:57
TCanvas::MakeDefCanvas
static TCanvas * MakeDefCanvas()
Static function to build a default canvas.
Definition: TCanvas.cxx:1502
TCanvas::SetDoubleBuffer
virtual void SetDoubleBuffer(Int_t mode=1)
Set Double Buffer On/Off.
Definition: TCanvas.cxx:2013
TCanvas::ClearPadSave
void ClearPadSave()
Definition: TCanvas.h:138
TCanvas::Picked
virtual void Picked(TPad *selpad, TObject *selected, Int_t event)
Emit Picked() signal.
Definition: TCanvas.cxx:1591
TCanvas::SetFixedAspectRatio
virtual void SetFixedAspectRatio(Bool_t fixed=kTRUE)
Fix canvas aspect ratio to current value if fixed is true.
Definition: TCanvas.cxx:2030
TCanvas::fClickSelectedPad
TPad * fClickSelectedPad
! Pad containing currently click-selected object
Definition: TCanvas.h:54
TVirtualPad
Definition: TVirtualPad.h:50
TCanvas::RaiseWindow
void RaiseWindow()
Raise canvas window.
Definition: TCanvas.cxx:1745
TCanvas::GetSelectedX
Int_t GetSelectedX() const
Definition: TCanvas.h:141
TCanvas
Definition: TCanvas.h:23
TCanvas::SetCanvasImp
void SetCanvasImp(TCanvasImp *i)
Definition: TCanvas.h:201
TCanvas::Resize
virtual void Resize(Option_t *option="")
Recompute canvas parameters following a X11 Resize.
Definition: TCanvas.cxx:1666
TCanvas::SetWindowSize
void SetWindowSize(UInt_t ww, UInt_t wh)
Set canvas window size.
Definition: TCanvas.cxx:2197
TCanvas::Paint
virtual void Paint(Option_t *option="")
Paint canvas.
Definition: TCanvas.cxx:1541
TObject
Definition: TObject.h:37
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
TCanvas::SetClickSelected
void SetClickSelected(TObject *obj)
Definition: TCanvas.h:205
TCanvas::Update
virtual void Update()
Update canvas pad buffers.
Definition: TCanvas.cxx:2500
name
char name[80]
Definition: TGX11.cxx:110
TCanvas::ForceUpdate
void ForceUpdate()
Force canvas update.
Definition: TCanvas.cxx:1164
TCanvas::fRetained
Bool_t fRetained
Retain structure flag.
Definition: TCanvas.h:60
TCanvas::Cleared
virtual void Cleared(TVirtualPad *pad)
Emit pad Cleared signal.
Definition: TCanvas.cxx:756
TCanvas::fWindowHeight
UInt_t fWindowHeight
Height of window (including menubar, borders, etc.)
Definition: TCanvas.h:41
TCanvas::SetRetained
void SetRetained(Bool_t retained=kTRUE)
Definition: TCanvas.h:214
TCanvas::DrawClone
virtual TObject * DrawClone(Option_t *option="") const
Draw a clone of this canvas A new canvas is created that is a clone of this canvas.
Definition: TCanvas.cxx:888
TCanvas::GetSelectedPad
TVirtualPad * GetSelectedPad() const
Definition: TCanvas.h:144
TCanvas::GetCanvasPar
virtual void GetCanvasPar(Int_t &wtopx, Int_t &wtopy, UInt_t &ww, UInt_t &wh)
Definition: TCanvas.h:163
TCanvas::GetWindowTopX
Int_t GetWindowTopX()
Returns current top x position of window on screen.
Definition: TCanvas.cxx:1197
TCanvas::SetRealAspectRatio
bool SetRealAspectRatio(const Int_t axis=1)
Function to resize a canvas so that the plot inside is shown in real aspect ratio.
Definition: TCanvas.cxx:2103
TCanvas::kMenuBar
@ kMenuBar
Definition: TCanvas.h:89
TInterpreter
Definition: TInterpreter.h:63
TCanvas::GetDISPLAY
const char * GetDISPLAY() const
Definition: TCanvas.h:130
TVirtualPadPainter
Definition: TVirtualPadPainter.h:19
TCanvas::fUseGL
Bool_t fUseGL
! True when rendering is with GL
Definition: TCanvas.h:61
TCanvas::IsBatch
Bool_t IsBatch() const
Is pad in batch mode ?
Definition: TCanvas.h:169
TCanvas::TCanvas
TCanvas(const TCanvas &canvas)
TCanvas::SetCursor
virtual void SetCursor(ECursor cursor)
Set cursor.
Definition: TCanvas.cxx:2004
TCanvas::Delete
virtual void Delete(Option_t *="")
Delete this object.
Definition: TCanvas.h:118
TCanvas::SetHighLightColor
void SetHighLightColor(Color_t col)
Definition: TCanvas.h:203
TCanvas::GetXsizeUser
Size_t GetXsizeUser() const
Definition: TCanvas.h:151
TCanvas::operator=
TCanvas & operator=(const TCanvas &rhs)
TCanvas::DeleteCanvasPainter
void DeleteCanvasPainter()
assert on IsBatch() == false?
Definition: TCanvas.cxx:2613
TCanvas::Flush
void Flush()
Flush canvas buffers.
Definition: TCanvas.cxx:1130
TCanvas::fHighLightColor
Color_t fHighLightColor
Highlight color of active pad.
Definition: TCanvas.h:36
TCanvas::Browse
virtual void Browse(TBrowser *b)
Browse.
Definition: TCanvas.cxx:670
TCanvas::HighlightConnect
virtual void HighlightConnect(const char *slot)
This is "simplification" for function TCanvas::Connect with Highlighted signal for specific slot.
Definition: TCanvas.cxx:1629
TCanvas::fUpdating
Bool_t fUpdating
! True when Updating the canvas
Definition: TCanvas.h:59
TCanvas::GetShowEditor
Bool_t GetShowEditor() const
Definition: TCanvas.h:148
TCanvas::fEvent
Int_t fEvent
! Type of current or last handled event
Definition: TCanvas.h:44
int
TCanvas::GetWindowTopY
Int_t GetWindowTopY()
Returns current top y position of window on screen.
Definition: TCanvas.cxx:1208
Size_t
float Size_t
Definition: RtypesCore.h:87
TPad::Pick
virtual TPad * Pick(Int_t px, Int_t py, TObjLink *&pickobj)
Search for an object at pixel position px,py.
Definition: TPad.cxx:4508
TCanvas::ToggleEditor
virtual void ToggleEditor()
Toggle editor.
Definition: TCanvas.cxx:2464
TAttCanvas
Definition: TAttCanvas.h:17
TCanvas::fSelectedOpt
TString fSelectedOpt
! Drawing option of selected object
Definition: TCanvas.h:52