Logo ROOT  
Reference Guide
TGCanvas.h
Go to the documentation of this file.
1// @(#)root/gui:$Id$
2// Author: Fons Rademakers 11/01/98
3
4/*************************************************************************
5 * Copyright (C) 1995-2021, 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_TGCanvas
13#define ROOT_TGCanvas
14
15
16#include "TGFrame.h"
17
18class TGHScrollBar;
19class TGVScrollBar;
20class TGClient;
21class TGViewPort;
22class TGCanvas;
23class TGFrameElement;
24class TGContainerTimer;
27class TGListView;
28class TGPicture;
29class TGRectangle;
30
32
33friend class TGViewPort;
34friend class TGCanvas;
37friend class TGListView;
38
39protected:
40 TGViewPort *fViewPort; ///< container viewport
41 TGCanvas *fCanvas; ///< pointer to canvas
42 const TGWindow *fMsgWindow; ///< window handling container messages
43 TGFrameElement *fLastActiveEl; ///< last active item
44 Int_t fXp, fYp; ///< previous pointer position
45 Int_t fX0, fY0; ///< corner of rubber band box
46 Int_t fXf, fYf; ///< other corner of rubber band box
47 Bool_t fDragging; ///< true if in dragging mode
48 Int_t fTotal; ///< total items
49 Int_t fSelected; ///< number of selected items
50 TTimer *fScrollTimer; ///< autoscroll timer
51 Bool_t fOnMouseOver; ///< kTRUE when mouse pointer is over entry
52 Bool_t fLastDir; ///< direction of last search
53 Bool_t fLastCase; ///< case sensitivity of last search
54 Bool_t fLastSubstring; ///< substring search option of last search
55 TString fLastName; ///< the name of object of last search
56 TTimer *fKeyTimer; ///< keyboard timer
57 TString fKeyInput; ///< keyboard input (buffer)
58 Bool_t fKeyTimerActive;///< kTRUE - keyboard timer is active
59 Bool_t fScrolling; ///< kTRUE - when scrolling is ON
62 TGRectangle fExposedRegion; ///< exposed area
63
64 static TGGC *fgLineGC;
65 static const TGGC &GetLineGC();
66
67 virtual void DoRedraw();
68 virtual void ActivateItem(TGFrameElement* el);
69 virtual void DeActivateItem(TGFrameElement* el);
70 virtual void SearchPattern();
71 virtual void OnAutoScroll();
72 virtual void RepeatSearch();
73
74private:
75 TGContainer(const TGContainer&) = delete;
77
78public:
79 TGContainer(const TGWindow *p = nullptr, UInt_t w = 1, UInt_t h = 1,
80 UInt_t options = kSunkenFrame,
84
85 virtual ~TGContainer();
86
87 virtual void DrawRegion(Int_t x, Int_t y, UInt_t w, UInt_t h);
88 virtual void ClearViewPort();
89 virtual void Associate(const TGWindow *w) { fMsgWindow = w; }
90 virtual void AdjustPosition();
91 virtual void SetPagePosition(const TGPosition& pos);
92 virtual void SetPagePosition(Int_t x, Int_t y);
93 virtual void SetPageDimension(const TGDimension& dim);
94 virtual void SetPageDimension(UInt_t w, UInt_t h);
95 virtual void RemoveAll();
96 virtual void RemoveItem(TGFrame *item);
97 virtual void Layout();
98
99 TGCanvas *GetCanvas() const { return fCanvas; }
100 const TGWindow *GetMessageWindow() const { return fMsgWindow; }
101 virtual TGPosition GetPagePosition() const;
102 virtual TGDimension GetPageDimension() const;
103
104 virtual Int_t NumSelected() const { return fSelected; }
105 virtual Int_t NumItems() const { return fTotal; }
106 virtual TGFrameElement *FindFrame(Int_t x,Int_t y,Bool_t exclude=kTRUE);
107 virtual TGFrame *FindFrameByName(const char *name);
108 virtual TGHScrollBar *GetHScrollbar() const;
109 virtual TGVScrollBar *GetVScrollbar() const;
110 virtual void SetHsbPosition(Int_t newPos);
111 virtual void SetVsbPosition(Int_t newPos);
112 virtual void LineUp(Bool_t select = kFALSE);
113 virtual void LineDown(Bool_t select = kFALSE);
114 virtual void LineLeft(Bool_t select = kFALSE);
115 virtual void LineRight(Bool_t select = kFALSE);
116 virtual void PageUp(Bool_t select = kFALSE);
117 virtual void PageDown(Bool_t select = kFALSE);
118 virtual void Home(Bool_t select = kFALSE);
119 virtual void End(Bool_t select = kFALSE);
120 virtual void Search(Bool_t close = kTRUE);
121 virtual void *FindItem(const TString& name,
122 Bool_t direction = kTRUE,
123 Bool_t caseSensitive = kTRUE,
124 Bool_t subString = kFALSE);
125
126 virtual const TGFrame *GetNextSelected(void **current);
127 virtual TGFrame *GetLastActive() const { return fLastActiveEl ? fLastActiveEl->fFrame : 0; }
128 virtual void SavePrimitive(std::ostream &out, Option_t *option = "");
129
130 virtual Bool_t HandleDNDFinished() { fBdown = kFALSE; return kTRUE; }
135 virtual Bool_t HandleKey(Event_t *event);
136
138 virtual void SetDragPixmap(const TGPicture *pic);
139
140 virtual void SelectAll(); //*SIGNAL*
141 virtual void UnSelectAll(); //*SIGNAL*
142 virtual void InvertSelection(); //*SIGNAL*
143 virtual void ReturnPressed(TGFrame*); //*SIGNAL*
144 virtual void SpacePressed(TGFrame*); //*SIGNAL*
145 virtual void KeyPressed(TGFrame*, UInt_t keysym, UInt_t mask); //*SIGNAL*
146 virtual void OnMouseOver(TGFrame*); //*SIGNAL*
147 virtual void CurrentChanged(Int_t x,Int_t y);//*SIGNAL*
148 virtual void CurrentChanged(TGFrame* f); //*SIGNAL*
149 virtual void Clicked(TGFrame *f, Int_t btn); //*SIGNAL*
150 virtual void DoubleClicked(TGFrame *f, Int_t btn); //*SIGNAL*
151 virtual void DoubleClicked(TGFrame *f, Int_t btn, Int_t x, Int_t y); //*SIGNAL*
152 virtual void Clicked(TGFrame *f, Int_t btn, Int_t x, Int_t y); //*SIGNAL*
153
154 ClassDef(TGContainer,0) // Canvas container
155};
156
157
159
160protected:
161 Int_t fX0, fY0; // position of container frame in viewport
162 TGFrame *fContainer; // container frame
163
164private:
165 TGViewPort(const TGViewPort&) = delete;
166 TGViewPort& operator=(const TGViewPort&) = delete;
167
168public:
169 TGViewPort(const TGWindow *p = nullptr, UInt_t w = 1, UInt_t h = 1,
170 UInt_t options = kChildFrame,
172
173 TGFrame *GetContainer() const { return fContainer; }
174 void SetContainer(TGFrame *f);
175
176 virtual void DrawBorder() { };
177 virtual void Layout() { }
179
180 virtual void SetHPos(Int_t xpos);
181 virtual void SetVPos(Int_t ypos);
182 void SetPos(Int_t xpos, Int_t ypos);
183
184 Int_t GetHPos() const { return fX0; }
185 Int_t GetVPos() const { return fY0; }
187
188 ClassDef(TGViewPort,0) // Viewport through which to look at a container frame
189};
190
191
192class TGCanvas : public TGFrame {
193
194protected:
195 TGViewPort *fVport; ///< viewport through which we look at contents
196 TGHScrollBar *fHScrollbar; ///< horizontal scrollbar
197 TGVScrollBar *fVScrollbar; ///< vertical scrollbar
198 Int_t fScrolling; ///< flag which scrolling modes are allowed
199
200private:
201 TGCanvas(const TGCanvas&) = delete;
202 TGCanvas& operator=(const TGCanvas&) = delete;
203
204public:
205 enum { kCanvasNoScroll = 0,
209 };
210
211 TGCanvas(const TGWindow *p = nullptr, UInt_t w = 1, UInt_t h = 1,
214 virtual ~TGCanvas();
215
216 TGFrame *GetContainer() const { return fVport->GetContainer(); }
217 TGViewPort *GetViewPort() const { return fVport; }
220
221 virtual void AddFrame(TGFrame *f, TGLayoutHints *l = 0);
223 virtual void MapSubwindows();
224 virtual void DrawBorder();
225 virtual void Layout();
226 virtual void ClearViewPort();
227 virtual Int_t GetHsbPosition() const;
228 virtual Int_t GetVsbPosition() const;
229 virtual void SetHsbPosition(Int_t newPos);
230 virtual void SetVsbPosition(Int_t newPos);
231 void SetScrolling(Int_t scrolling);
232 Int_t GetScrolling() const { return fScrolling; }
233
235 virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2);
236
237 virtual void SavePrimitive(std::ostream &out, Option_t *option = "");
238
239 ClassDef(TGCanvas,0) // A canvas with two scrollbars and a viewport
240};
241
242
243#endif
@ kChildFrame
Definition: GuiTypes.h:379
@ kSunkenFrame
Definition: GuiTypes.h:383
@ kDoubleBorder
Definition: GuiTypes.h:385
ULong_t Pixel_t
Pixel value.
Definition: GuiTypes.h:40
#define f(i)
Definition: RSha256.hxx:104
#define h(i)
Definition: RSha256.hxx:106
int Int_t
Definition: RtypesCore.h:45
unsigned int UInt_t
Definition: RtypesCore.h:46
const Bool_t kFALSE
Definition: RtypesCore.h:101
long Long_t
Definition: RtypesCore.h:54
bool Bool_t
Definition: RtypesCore.h:63
const Bool_t kTRUE
Definition: RtypesCore.h:100
const char Option_t
Definition: RtypesCore.h:66
#define ClassDef(name, id)
Definition: Rtypes.h:325
#define BIT(n)
Definition: Rtypes.h:85
char name[80]
Definition: TGX11.cxx:110
A frame containing two scrollbars (a horizontal and a vertical) and a viewport.
Definition: TGCanvas.h:192
virtual void SetContainer(TGFrame *f)
Definition: TGCanvas.h:222
TGFrame * GetContainer() const
Definition: TGCanvas.h:216
virtual void MapSubwindows()
Map all canvas sub windows.
Definition: TGCanvas.cxx:2165
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a canvas widget as a C++ statement(s) on output stream out.
Definition: TGCanvas.cxx:2446
virtual void SetVsbPosition(Int_t newPos)
Set position of vertical scrollbar.
Definition: TGCanvas.cxx:2408
TGCanvas & operator=(const TGCanvas &)=delete
virtual void SetHsbPosition(Int_t newPos)
Set position of horizontal scrollbar.
Definition: TGCanvas.cxx:2394
virtual Int_t GetVsbPosition() const
Get position of vertical scrollbar.
Definition: TGCanvas.cxx:2384
TGViewPort * fVport
viewport through which we look at contents
Definition: TGCanvas.h:195
Int_t fScrolling
flag which scrolling modes are allowed
Definition: TGCanvas.h:198
virtual void DrawBorder()
Draw canvas border.
Definition: TGCanvas.cxx:2204
TGHScrollBar * fHScrollbar
horizontal scrollbar
Definition: TGCanvas.h:196
TGVScrollBar * GetVScrollbar() const
Definition: TGCanvas.h:219
TGVScrollBar * fVScrollbar
vertical scrollbar
Definition: TGCanvas.h:197
TGViewPort * GetViewPort() const
Definition: TGCanvas.h:217
virtual Int_t GetHsbPosition() const
Get position of horizontal scrollbar.
Definition: TGCanvas.cxx:2374
virtual void ClearViewPort()
Clear view port and redraw content.
Definition: TGCanvas.cxx:2434
virtual TGDimension GetDefaultSize() const
std::cout << fWidth << "x" << fHeight << std::endl;
Definition: TGCanvas.h:234
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Adding a frame to a canvas is actually adding the frame to the viewport container.
Definition: TGCanvas.cxx:2188
Int_t GetScrolling() const
Definition: TGCanvas.h:232
virtual void Layout()
Create layout for canvas.
Definition: TGCanvas.cxx:2229
void SetScrolling(Int_t scrolling)
Set scrolling policy.
Definition: TGCanvas.cxx:2423
@ kCanvasNoScroll
Definition: TGCanvas.h:205
@ kCanvasScrollVertical
Definition: TGCanvas.h:207
@ kCanvasScrollBoth
Definition: TGCanvas.h:208
@ kCanvasScrollHorizontal
Definition: TGCanvas.h:206
TGCanvas(const TGCanvas &)=delete
virtual ~TGCanvas()
Delete canvas.
Definition: TGCanvas.cxx:2155
virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2)
Handle message generated by the canvas scrollbars.
Definition: TGCanvas.cxx:2344
TGHScrollBar * GetHScrollbar() const
Definition: TGCanvas.h:218
Window client.
Definition: TGClient.h:37
The base class for composite widgets (menu bars, list boxes, etc.).
Definition: TGFrame.h:287
Manages a content area.
Definition: TGCanvas.h:31
virtual Bool_t HandleExpose(Event_t *event)
Handle expose events. Do not use double buffer.
Definition: TGCanvas.cxx:903
TGRectangle fExposedRegion
exposed area
Definition: TGCanvas.h:62
virtual void ActivateItem(TGFrameElement *el)
Activate item.
Definition: TGCanvas.cxx:701
virtual void Associate(const TGWindow *w)
Definition: TGCanvas.h:89
Bool_t fKeyTimerActive
kTRUE - keyboard timer is active
Definition: TGCanvas.h:58
virtual void RemoveItem(TGFrame *item)
Remove item from container.
Definition: TGCanvas.cxx:660
TGCanvas * fCanvas
pointer to canvas
Definition: TGCanvas.h:41
virtual TGFrame * GetLastActive() const
Definition: TGCanvas.h:127
TTimer * fScrollTimer
autoscroll timer
Definition: TGCanvas.h:50
virtual Bool_t HandleMotion(Event_t *event)
Handle mouse motion events.
Definition: TGCanvas.cxx:1141
virtual void RepeatSearch()
Repeats search.
Definition: TGCanvas.cxx:1623
Int_t fYf
other corner of rubber band box
Definition: TGCanvas.h:46
virtual void UnSelectAll()
Unselect all items in the container.
Definition: TGCanvas.cxx:589
virtual Bool_t HandleKey(Event_t *event)
The key press event handler converts a key press to some line editor action.
Definition: TGCanvas.cxx:1278
virtual void PageDown(Bool_t select=kFALSE)
Move position one page down.
Definition: TGCanvas.cxx:2027
virtual Bool_t HandleButton(Event_t *event)
Handle mouse button event in container.
Definition: TGCanvas.cxx:929
virtual void LineLeft(Bool_t select=kFALSE)
Move current position one column left.
Definition: TGCanvas.cxx:1851
virtual void ClearViewPort()
Clear view port and redraw full content.
Definition: TGCanvas.cxx:891
const TGWindow * fMsgWindow
window handling container messages
Definition: TGCanvas.h:42
virtual TGFrameElement * FindFrame(Int_t x, Int_t y, Bool_t exclude=kTRUE)
Find frame located int container at position x,y.
Definition: TGCanvas.cxx:1657
TGContainer & operator=(const TGContainer &)=delete
Int_t fYp
previous pointer position
Definition: TGCanvas.h:44
virtual void AdjustPosition()
Move content to position of highlighted/activated frame.
Definition: TGCanvas.cxx:1793
virtual void OnMouseOver(TGFrame *)
Signal emitted when pointer is over entry.
Definition: TGCanvas.cxx:501
virtual void Clicked(TGFrame *f, Int_t btn)
Emit Clicked() signal.
Definition: TGCanvas.cxx:510
virtual void InvertSelection()
Invert the selection, all selected items become unselected and vice versa.
Definition: TGCanvas.cxx:614
virtual void PageUp(Bool_t select=kFALSE)
Move position one page up.
Definition: TGCanvas.cxx:1983
virtual void LineDown(Bool_t select=kFALSE)
Move one line down.
Definition: TGCanvas.cxx:1956
virtual const TGFrame * GetNextSelected(void **current)
Return the next selected item.
Definition: TGCanvas.cxx:681
virtual void Search(Bool_t close=kTRUE)
Invokes search dialog. Looks for item with the entered name.
Definition: TGCanvas.cxx:1467
virtual ~TGContainer()
Delete canvas container.
Definition: TGCanvas.cxx:406
virtual void LineUp(Bool_t select=kFALSE)
Make current position first line in window by scrolling up.
Definition: TGCanvas.cxx:1927
Bool_t fLastDir
direction of last search
Definition: TGCanvas.h:52
Int_t fY0
corner of rubber band box
Definition: TGCanvas.h:45
virtual void Home(Bool_t select=kFALSE)
Move to upper-left corner of container.
Definition: TGCanvas.cxx:2071
virtual void KeyPressed(TGFrame *, UInt_t keysym, UInt_t mask)
Signal emitted when keyboard key pressed.
Definition: TGCanvas.cxx:470
virtual void SetDragPixmap(const TGPicture *pic)
Set drag window pixmaps and hotpoint.
Definition: TGCanvas.cxx:1080
virtual Int_t NumSelected() const
Definition: TGCanvas.h:104
const TGPicture * GetObjPicture(TGFrame *f)
Retrieve icons associated with class "name".
Definition: TGCanvas.cxx:1039
virtual void SetVsbPosition(Int_t newPos)
Set position of vertical scrollbar.
Definition: TGCanvas.cxx:1761
Int_t fXDND
Definition: TGCanvas.h:60
TGCanvas * GetCanvas() const
Definition: TGCanvas.h:99
virtual void ReturnPressed(TGFrame *)
Signal emitted when Return/Enter key pressed.
Definition: TGCanvas.cxx:484
virtual void SearchPattern()
Search for entry which name begins with pattern.
Definition: TGCanvas.cxx:1597
virtual void SetPageDimension(const TGDimension &dim)
Set page dimension.
Definition: TGCanvas.cxx:782
virtual void LineRight(Bool_t select=kFALSE)
Move current position one column right.
Definition: TGCanvas.cxx:1890
TGContainer(const TGContainer &)=delete
Int_t fSelected
number of selected items
Definition: TGCanvas.h:49
Bool_t fBdown
Definition: TGCanvas.h:61
virtual void SpacePressed(TGFrame *)
Signal emitted when space key pressed.
Definition: TGCanvas.cxx:493
virtual void SetHsbPosition(Int_t newPos)
set new hor. position
Definition: TGCanvas.cxx:1777
Bool_t fScrolling
kTRUE - when scrolling is ON
Definition: TGCanvas.h:59
virtual void DoRedraw()
Redraw content of container in the viewport region.
Definition: TGCanvas.cxx:800
Int_t fX0
Definition: TGCanvas.h:45
virtual TGDimension GetPageDimension() const
Returns page dimension.
Definition: TGCanvas.cxx:751
TString fLastName
the name of object of last search
Definition: TGCanvas.h:55
virtual void Layout()
Layout container entries.
Definition: TGCanvas.cxx:422
virtual void OnAutoScroll()
Autoscroll while close to & beyond The Wall.
Definition: TGCanvas.cxx:1495
Int_t fXp
Definition: TGCanvas.h:44
static const TGGC & GetLineGC()
Get graphics context for line drawing.
Definition: TGCanvas.cxx:2105
static TGGC * fgLineGC
Definition: TGCanvas.h:64
Bool_t fDragging
true if in dragging mode
Definition: TGCanvas.h:47
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a canvas container as a C++ statement(s) on output stream out.
Definition: TGCanvas.cxx:2504
virtual void CurrentChanged(Int_t x, Int_t y)
Emit signal when current position changed.
Definition: TGCanvas.cxx:434
virtual void DrawRegion(Int_t x, Int_t y, UInt_t w, UInt_t h)
Draw a region of container in viewport.
Definition: TGCanvas.cxx:819
virtual void RemoveAll()
Remove all items from the container.
Definition: TGCanvas.cxx:641
virtual Int_t NumItems() const
Definition: TGCanvas.h:105
TGViewPort * fViewPort
container viewport
Definition: TGCanvas.h:40
virtual TGVScrollBar * GetVScrollbar() const
returns pointer to vert. scroll bar
Definition: TGCanvas.cxx:1753
virtual TGFrame * FindFrameByName(const char *name)
Find frame by name.
Definition: TGCanvas.cxx:1416
Int_t fYDND
Definition: TGCanvas.h:60
virtual void * FindItem(const TString &name, Bool_t direction=kTRUE, Bool_t caseSensitive=kTRUE, Bool_t subString=kFALSE)
Definition: TGCanvas.cxx:1690
virtual Bool_t HandleDoubleClick(Event_t *event)
Handle double click mouse event.
Definition: TGCanvas.cxx:1098
Bool_t fOnMouseOver
kTRUE when mouse pointer is over entry
Definition: TGCanvas.h:51
Bool_t fLastCase
case sensitivity of last search
Definition: TGCanvas.h:53
Int_t fTotal
total items
Definition: TGCanvas.h:48
const TGWindow * GetMessageWindow() const
Definition: TGCanvas.h:100
virtual void DoubleClicked(TGFrame *f, Int_t btn)
Emit DoubleClicked() signal.
Definition: TGCanvas.cxx:538
virtual TGPosition GetPagePosition() const
Returns page position.
Definition: TGCanvas.cxx:737
virtual void End(Bool_t select=kFALSE)
Move to the bottom-right corner of container.
Definition: TGCanvas.cxx:2088
Bool_t fLastSubstring
substring search option of last search
Definition: TGCanvas.h:54
virtual void SetPagePosition(const TGPosition &pos)
Set page position.
Definition: TGCanvas.cxx:764
virtual Bool_t HandleDNDFinished()
Definition: TGCanvas.h:130
virtual TGHScrollBar * GetHScrollbar() const
returns pointer to hor. scroll bar
Definition: TGCanvas.cxx:1745
TGFrameElement * fLastActiveEl
last active item
Definition: TGCanvas.h:43
virtual void SelectAll()
Select all items in the container.
Definition: TGCanvas.cxx:567
TString fKeyInput
keyboard input (buffer)
Definition: TGCanvas.h:57
TTimer * fKeyTimer
keyboard timer
Definition: TGCanvas.h:56
virtual void DeActivateItem(TGFrameElement *el)
DeActivate item.
Definition: TGCanvas.cxx:724
Int_t fXf
Definition: TGCanvas.h:46
TGFrame * fFrame
Definition: TGLayout.h:112
A subclasses of TGWindow, and is used as base class for some simple widgets (buttons,...
Definition: TGFrame.h:80
UInt_t fHeight
frame height
Definition: TGFrame.h:88
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition: TGFrame.cxx:683
UInt_t fWidth
frame width
Definition: TGFrame.h:87
Encapsulate a graphics context used in the low level graphics.
Definition: TGGC.h:22
The TGHScrollBar will generate the following event messages: kC_HSCROLL, kSB_SLIDERPOS,...
Definition: TGScrollBar.h:141
This class describes layout hints used by the layout classes.
Definition: TGLayout.h:50
A list view is a widget that can contain a number of items arranged in a grid or list.
Definition: TGListView.h:115
The TGPicture class implements pictures and icons used in the different GUI elements and widgets.
Definition: TGPicture.h:25
The TGVScrollBar will generate the following event messages: kC_VSCROLL, kSB_SLIDERPOS,...
Definition: TGScrollBar.h:164
Int_t GetHPos() const
Definition: TGCanvas.h:184
virtual void DrawBorder()
Draw frame border.
Definition: TGCanvas.h:176
Int_t GetVPos() const
Definition: TGCanvas.h:185
TGFrame * GetContainer() const
Definition: TGCanvas.h:173
virtual TGDimension GetDefaultSize() const
std::cout << fWidth << "x" << fHeight << std::endl;
Definition: TGCanvas.h:178
TGFrame * fContainer
Definition: TGCanvas.h:162
TGViewPort(const TGViewPort &)=delete
virtual Bool_t HandleConfigureNotify(Event_t *event)
Handle resize events.
Definition: TGCanvas.cxx:292
Int_t fX0
Definition: TGCanvas.h:161
void SetContainer(TGFrame *f)
Add container frame to the viewport.
Definition: TGCanvas.cxx:153
virtual void Layout()
Layout the elements of the composite frame.
Definition: TGCanvas.h:177
virtual void SetHPos(Int_t xpos)
Moves content of container frame in horizontal direction.
Definition: TGCanvas.cxx:178
virtual void SetVPos(Int_t ypos)
Moves content of container frame in vertical direction.
Definition: TGCanvas.cxx:229
void SetPos(Int_t xpos, Int_t ypos)
Goto new position.
Definition: TGCanvas.cxx:281
Int_t fY0
Definition: TGCanvas.h:161
TGViewPort & operator=(const TGViewPort &)=delete
ROOT GUI Window base class.
Definition: TGWindow.h:23
Basic string class.
Definition: TString.h:136
Handles synchronous and a-synchronous timer events.
Definition: TTimer.h:51
Double_t y[n]
Definition: legend1.C:17
Double_t x[n]
Definition: legend1.C:17
Event structure.
Definition: GuiTypes.h:174
auto * l
Definition: textangle.C:4