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 
18 class TGHScrollBar;
19 class TGVScrollBar;
20 class TGClient;
21 class TGViewPort;
22 class TGCanvas;
23 class TGFrameElement;
24 class TGContainerTimer;
25 class TGContainerKeyboardTimer;
26 class TGContainerScrollTimer;
27 class TGListView;
28 class TGPicture;
29 class TGRectangle;
30 
31 class TGContainer : public TGCompositeFrame {
32 
33 friend class TGViewPort;
34 friend class TGCanvas;
37 friend class TGListView;
38 
39 protected:
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 
74 private:
75  TGContainer(const TGContainer&) = delete;
76  TGContainer& operator=(const TGContainer&) = delete;
77 
78 public:
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; }
131  virtual Bool_t HandleExpose(Event_t *event);
132  virtual Bool_t HandleButton(Event_t *event);
133  virtual Bool_t HandleDoubleClick(Event_t *event);
134  virtual Bool_t HandleMotion(Event_t *event);
135  virtual Bool_t HandleKey(Event_t *event);
136 
137  const TGPicture *GetObjPicture(TGFrame *f);
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 
158 class TGViewPort : public TGCompositeFrame {
159 
160 protected:
161  Int_t fX0, fY0; // position of container frame in viewport
162  TGFrame *fContainer; // container frame
163 
164 private:
165  TGViewPort(const TGViewPort&) = delete;
166  TGViewPort& operator=(const TGViewPort&) = delete;
167 
168 public:
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() { }
178  virtual TGDimension GetDefaultSize() const { return TGDimension(fWidth, fHeight); }
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; }
186  virtual Bool_t HandleConfigureNotify(Event_t *event);
187 
188  ClassDef(TGViewPort,0) // Viewport through which to look at a container frame
189 };
190 
191 
192 class TGCanvas : public TGFrame {
193 
194 protected:
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 
200 private:
201  TGCanvas(const TGCanvas&) = delete;
202  TGCanvas& operator=(const TGCanvas&) = delete;
203 
204 public:
205  enum { kCanvasNoScroll = 0,
209  };
210 
211  TGCanvas(const TGWindow *p = nullptr, UInt_t w = 1, UInt_t h = 1,
212  UInt_t options = kSunkenFrame | kDoubleBorder,
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);
222  virtual void SetContainer(TGFrame *f) { fVport->SetContainer(f); }
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 
234  virtual TGDimension GetDefaultSize() const { return TGDimension(fWidth, fHeight); }
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
TGContainer::LineUp
virtual void LineUp(Bool_t select=kFALSE)
Make current position first line in window by scrolling up.
Definition: TGCanvas.cxx:1927
l
auto * l
Definition: textangle.C:4
TGContainer::fSelected
Int_t fSelected
number of selected items
Definition: TGCanvas.h:49
TGCanvas::GetHsbPosition
virtual Int_t GetHsbPosition() const
Get position of horizontal scrollbar.
Definition: TGCanvas.cxx:2374
TGCanvas::ProcessMessage
virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2)
Handle message generated by the canvas scrollbars.
Definition: TGCanvas.cxx:2344
TGContainer::DoRedraw
virtual void DoRedraw()
Redraw content of container in the viewport region.
Definition: TGCanvas.cxx:800
TGContainer::Clicked
virtual void Clicked(TGFrame *f, Int_t btn)
Emit Clicked() signal.
Definition: TGCanvas.cxx:510
TGContainer::Associate
virtual void Associate(const TGWindow *w)
Definition: TGCanvas.h:89
TGWindow
ROOT GUI Window base class.
Definition: TGWindow.h:23
kTRUE
const Bool_t kTRUE
Definition: RtypesCore.h:100
TGVScrollBar
The TGVScrollBar will generate the following event messages: kC_VSCROLL, kSB_SLIDERPOS,...
Definition: TGScrollBar.h:164
TGContainer::fCanvas
TGCanvas * fCanvas
pointer to canvas
Definition: TGCanvas.h:41
TGPicture
The TGPicture class implements pictures and icons used in the different GUI elements and widgets.
Definition: TGPicture.h:25
f
#define f(i)
Definition: RSha256.hxx:104
TGCanvas::kCanvasScrollBoth
@ kCanvasScrollBoth
Definition: TGCanvas.h:208
TGDimension
Definition: TGDimension.h:18
TGCanvas::fHScrollbar
TGHScrollBar * fHScrollbar
horizontal scrollbar
Definition: TGCanvas.h:196
Option_t
const char Option_t
Definition: RtypesCore.h:66
TGViewPort::GetHPos
Int_t GetHPos() const
Definition: TGCanvas.h:184
TGViewPort::TGViewPort
TGViewPort(const TGViewPort &)=delete
TGContainer::GetLineGC
static const TGGC & GetLineGC()
Get graphics context for line drawing.
Definition: TGCanvas.cxx:2105
Pixel_t
ULong_t Pixel_t
Pixel value.
Definition: GuiTypes.h:40
TGContainer::fScrolling
Bool_t fScrolling
kTRUE - when scrolling is ON
Definition: TGCanvas.h:59
TGContainer::Home
virtual void Home(Bool_t select=kFALSE)
Move to upper-left corner of container.
Definition: TGCanvas.cxx:2071
TGFrame::fWidth
UInt_t fWidth
frame width
Definition: TGFrame.h:87
TGContainer::FindFrame
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
TGCanvas::GetContainer
TGFrame * GetContainer() const
Definition: TGCanvas.h:216
TGViewPort::fY0
Int_t fY0
Definition: TGCanvas.h:161
TGViewPort::SetHPos
virtual void SetHPos(Int_t xpos)
Moves content of container frame in horizontal direction.
Definition: TGCanvas.cxx:178
TGCanvas::ClearViewPort
virtual void ClearViewPort()
Clear view port and redraw content.
Definition: TGCanvas.cxx:2434
TGContainer::NumSelected
virtual Int_t NumSelected() const
Definition: TGCanvas.h:104
TGContainer::CurrentChanged
virtual void CurrentChanged(Int_t x, Int_t y)
Emit signal when current position changed.
Definition: TGCanvas.cxx:434
TGContainer::GetObjPicture
const TGPicture * GetObjPicture(TGFrame *f)
Retrieve icons associated with class "name".
Definition: TGCanvas.cxx:1039
Int_t
int Int_t
Definition: RtypesCore.h:45
TGCanvas::GetHScrollbar
TGHScrollBar * GetHScrollbar() const
Definition: TGCanvas.h:218
TGContainer::OnAutoScroll
virtual void OnAutoScroll()
Autoscroll while close to & beyond The Wall.
Definition: TGCanvas.cxx:1495
TGContainer::GetPageDimension
virtual TGDimension GetPageDimension() const
Returns page dimension.
Definition: TGCanvas.cxx:751
x
Double_t x[n]
Definition: legend1.C:17
TGCanvas::Layout
virtual void Layout()
Create layout for canvas.
Definition: TGCanvas.cxx:2229
TGFrame::GetDefaultFrameBackground
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition: TGFrame.cxx:683
TGCanvas::GetVScrollbar
TGVScrollBar * GetVScrollbar() const
Definition: TGCanvas.h:219
TGContainer::End
virtual void End(Bool_t select=kFALSE)
Move to the bottom-right corner of container.
Definition: TGCanvas.cxx:2088
TGContainer::fLastName
TString fLastName
the name of object of last search
Definition: TGCanvas.h:55
TGContainer::SavePrimitive
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
TGContainer::PageUp
virtual void PageUp(Bool_t select=kFALSE)
Move position one page up.
Definition: TGCanvas.cxx:1983
TString
Basic string class.
Definition: TString.h:136
TGFrame
Definition: TGFrame.h:80
TGContainer::fExposedRegion
TGRectangle fExposedRegion
exposed area
Definition: TGCanvas.h:62
Bool_t
bool Bool_t
Definition: RtypesCore.h:63
TGCanvas::GetVsbPosition
virtual Int_t GetVsbPosition() const
Get position of vertical scrollbar.
Definition: TGCanvas.cxx:2384
kDoubleBorder
@ kDoubleBorder
Definition: GuiTypes.h:385
TGListView
A list view is a widget that can contain a number of items arranged in a grid or list.
Definition: TGListView.h:115
TGCanvas::SetVsbPosition
virtual void SetVsbPosition(Int_t newPos)
Set position of vertical scrollbar.
Definition: TGCanvas.cxx:2408
bool
TGContainer::fYp
Int_t fYp
previous pointer position
Definition: TGCanvas.h:44
TGContainer::LineDown
virtual void LineDown(Bool_t select=kFALSE)
Move one line down.
Definition: TGCanvas.cxx:1956
TGContainer::AdjustPosition
virtual void AdjustPosition()
Move content to position of highlighted/activated frame.
Definition: TGCanvas.cxx:1793
TGFrameElement::fFrame
TGFrame * fFrame
Definition: TGLayout.h:112
TGCanvas::kCanvasNoScroll
@ kCanvasNoScroll
Definition: TGCanvas.h:205
TGCanvas::DrawBorder
virtual void DrawBorder()
Draw canvas border.
Definition: TGCanvas.cxx:2204
TGContainer::RemoveItem
virtual void RemoveItem(TGFrame *item)
Remove item from container.
Definition: TGCanvas.cxx:660
TGContainer::fYDND
Int_t fYDND
Definition: TGCanvas.h:60
TGCanvas::fScrolling
Int_t fScrolling
flag which scrolling modes are allowed
Definition: TGCanvas.h:198
TGContainer::SelectAll
virtual void SelectAll()
Select all items in the container.
Definition: TGCanvas.cxx:567
TGContainer::fMsgWindow
const TGWindow * fMsgWindow
window handling container messages
Definition: TGCanvas.h:42
TGViewPort::DrawBorder
virtual void DrawBorder()
Draw frame border.
Definition: TGCanvas.h:176
TGContainer::OnMouseOver
virtual void OnMouseOver(TGFrame *)
Signal emitted when pointer is over entry.
Definition: TGCanvas.cxx:501
TGContainer::HandleExpose
virtual Bool_t HandleExpose(Event_t *event)
Handle expose events. Do not use double buffer.
Definition: TGCanvas.cxx:903
TGRectangle
Definition: TGDimension.h:89
TGContainer::GetVScrollbar
virtual TGVScrollBar * GetVScrollbar() const
returns pointer to vert. scroll bar
Definition: TGCanvas.cxx:1753
TGContainer::fY0
Int_t fY0
corner of rubber band box
Definition: TGCanvas.h:45
TTimer
Handles synchronous and a-synchronous timer events.
Definition: TTimer.h:51
TGCanvas::GetScrolling
Int_t GetScrolling() const
Definition: TGCanvas.h:232
TGContainer::GetPagePosition
virtual TGPosition GetPagePosition() const
Returns page position.
Definition: TGCanvas.cxx:737
TGCanvas::SetScrolling
void SetScrolling(Int_t scrolling)
Set scrolling policy.
Definition: TGCanvas.cxx:2423
TGContainer::HandleDoubleClick
virtual Bool_t HandleDoubleClick(Event_t *event)
Handle double click mouse event.
Definition: TGCanvas.cxx:1098
kSunkenFrame
@ kSunkenFrame
Definition: GuiTypes.h:383
TGViewPort::fContainer
TGFrame * fContainer
Definition: TGCanvas.h:162
TGContainer::GetHScrollbar
virtual TGHScrollBar * GetHScrollbar() const
returns pointer to hor. scroll bar
Definition: TGCanvas.cxx:1745
TGContainer::fKeyTimer
TTimer * fKeyTimer
keyboard timer
Definition: TGCanvas.h:56
TGContainer::Search
virtual void Search(Bool_t close=kTRUE)
Invokes search dialog. Looks for item with the entered name.
Definition: TGCanvas.cxx:1467
TGContainer::~TGContainer
virtual ~TGContainer()
Delete canvas container.
Definition: TGCanvas.cxx:406
TGCanvas::kCanvasScrollVertical
@ kCanvasScrollVertical
Definition: TGCanvas.h:207
h
#define h(i)
Definition: RSha256.hxx:106
TGContainer::SetHsbPosition
virtual void SetHsbPosition(Int_t newPos)
set new hor. position
Definition: TGCanvas.cxx:1777
TGContainer::Layout
virtual void Layout()
Layout container entries.
Definition: TGCanvas.cxx:422
TGViewPort::SetVPos
virtual void SetVPos(Int_t ypos)
Moves content of container frame in vertical direction.
Definition: TGCanvas.cxx:229
TGCanvas::fVScrollbar
TGVScrollBar * fVScrollbar
vertical scrollbar
Definition: TGCanvas.h:197
TGContainer::fLastActiveEl
TGFrameElement * fLastActiveEl
last active item
Definition: TGCanvas.h:43
TGGC
Encapsulate a graphics context used in the low level graphics.
Definition: TGGC.h:22
TGContainer::fKeyTimerActive
Bool_t fKeyTimerActive
kTRUE - keyboard timer is active
Definition: TGCanvas.h:58
TGHScrollBar
The TGHScrollBar will generate the following event messages: kC_HSCROLL, kSB_SLIDERPOS,...
Definition: TGScrollBar.h:141
TGContainer::fXp
Int_t fXp
Definition: TGCanvas.h:44
TGContainer::fXDND
Int_t fXDND
Definition: TGCanvas.h:60
kFALSE
const Bool_t kFALSE
Definition: RtypesCore.h:101
TGFrame.h
Long_t
long Long_t
Definition: RtypesCore.h:54
TGContainer::HandleDNDFinished
virtual Bool_t HandleDNDFinished()
Definition: TGCanvas.h:130
TGContainer::fScrollTimer
TTimer * fScrollTimer
autoscroll timer
Definition: TGCanvas.h:50
TGLayoutHints
This class describes layout hints used by the layout classes.
Definition: TGLayout.h:50
TGContainer::HandleKey
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
TGContainer::operator=
TGContainer & operator=(const TGContainer &)=delete
TGCanvas::SavePrimitive
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
TGContainer::TGContainerScrollTimer
friend class TGContainerScrollTimer
Definition: TGCanvas.h:36
TGCanvas::fVport
TGViewPort * fVport
viewport through which we look at contents
Definition: TGCanvas.h:195
TGContainer::FindItem
virtual void * FindItem(const TString &name, Bool_t direction=kTRUE, Bool_t caseSensitive=kTRUE, Bool_t subString=kFALSE)
Definition: TGCanvas.cxx:1690
BIT
#define BIT(n)
Definition: Rtypes.h:85
TGViewPort
Definition: TGCanvas.h:158
TGContainer::InvertSelection
virtual void InvertSelection()
Invert the selection, all selected items become unselected and vice versa.
Definition: TGCanvas.cxx:614
UInt_t
unsigned int UInt_t
Definition: RtypesCore.h:46
TGContainer::ClearViewPort
virtual void ClearViewPort()
Clear view port and redraw full content.
Definition: TGCanvas.cxx:891
TGContainer::GetCanvas
TGCanvas * GetCanvas() const
Definition: TGCanvas.h:99
y
Double_t y[n]
Definition: legend1.C:17
TGContainer::SpacePressed
virtual void SpacePressed(TGFrame *)
Signal emitted when space key pressed.
Definition: TGCanvas.cxx:493
TGContainer::fX0
Int_t fX0
Definition: TGCanvas.h:45
TGViewPort::operator=
TGViewPort & operator=(const TGViewPort &)=delete
TGContainer::fLastCase
Bool_t fLastCase
case sensitivity of last search
Definition: TGCanvas.h:53
TGContainer::DrawRegion
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
TGContainer::fXf
Int_t fXf
Definition: TGCanvas.h:46
TGContainer::DoubleClicked
virtual void DoubleClicked(TGFrame *f, Int_t btn)
Emit DoubleClicked() signal.
Definition: TGCanvas.cxx:538
TGContainer::fKeyInput
TString fKeyInput
keyboard input (buffer)
Definition: TGCanvas.h:57
TGContainer::FindFrameByName
virtual TGFrame * FindFrameByName(const char *name)
Find frame by name.
Definition: TGCanvas.cxx:1416
unsigned int
TGViewPort::GetContainer
TGFrame * GetContainer() const
Definition: TGCanvas.h:173
ROOT::Math::detail::close
@ close
Definition: GenVectorIO.h:35
TGContainer::UnSelectAll
virtual void UnSelectAll()
Unselect all items in the container.
Definition: TGCanvas.cxx:589
TGContainer::GetMessageWindow
const TGWindow * GetMessageWindow() const
Definition: TGCanvas.h:100
TGContainer::SetDragPixmap
virtual void SetDragPixmap(const TGPicture *pic)
Set drag window pixmaps and hotpoint.
Definition: TGCanvas.cxx:1080
TGCanvas::GetDefaultSize
virtual TGDimension GetDefaultSize() const
std::cout << fWidth << "x" << fHeight << std::endl;
Definition: TGCanvas.h:234
TGContainer
Manages a content area.
Definition: TGCanvas.h:31
TGContainer::LineRight
virtual void LineRight(Bool_t select=kFALSE)
Move current position one column right.
Definition: TGCanvas.cxx:1890
TGViewPort::Layout
virtual void Layout()
Layout the elements of the composite frame.
Definition: TGCanvas.h:177
TGContainer::SetPagePosition
virtual void SetPagePosition(const TGPosition &pos)
Set page position.
Definition: TGCanvas.cxx:764
TGCanvas::kCanvasScrollHorizontal
@ kCanvasScrollHorizontal
Definition: TGCanvas.h:206
TGContainer::NumItems
virtual Int_t NumItems() const
Definition: TGCanvas.h:105
TGContainer::fLastDir
Bool_t fLastDir
direction of last search
Definition: TGCanvas.h:52
TGCanvas::SetHsbPosition
virtual void SetHsbPosition(Int_t newPos)
Set position of horizontal scrollbar.
Definition: TGCanvas.cxx:2394
TGContainer::DeActivateItem
virtual void DeActivateItem(TGFrameElement *el)
DeActivate item.
Definition: TGCanvas.cxx:724
TGContainer::TGContainerKeyboardTimer
friend class TGContainerKeyboardTimer
Definition: TGCanvas.h:35
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
TGContainer::ActivateItem
virtual void ActivateItem(TGFrameElement *el)
Activate item.
Definition: TGCanvas.cxx:701
Event_t
Event structure.
Definition: GuiTypes.h:174
name
char name[80]
Definition: TGX11.cxx:110
TGCanvas::SetContainer
virtual void SetContainer(TGFrame *f)
Definition: TGCanvas.h:222
TGContainer::fDragging
Bool_t fDragging
true if in dragging mode
Definition: TGCanvas.h:47
TGContainer::HandleMotion
virtual Bool_t HandleMotion(Event_t *event)
Handle mouse motion events.
Definition: TGCanvas.cxx:1141
TGFrameElement
Definition: TGLayout.h:105
TGContainer::fgLineGC
static TGGC * fgLineGC
Definition: TGCanvas.h:64
TGContainer::fViewPort
TGViewPort * fViewPort
container viewport
Definition: TGCanvas.h:40
TGCanvas::TGCanvas
TGCanvas(const TGCanvas &)=delete
TGContainer::TGContainer
TGContainer(const TGContainer &)=delete
TGContainer::RepeatSearch
virtual void RepeatSearch()
Repeats search.
Definition: TGCanvas.cxx:1623
TGContainer::fLastSubstring
Bool_t fLastSubstring
substring search option of last search
Definition: TGCanvas.h:54
TGContainer::PageDown
virtual void PageDown(Bool_t select=kFALSE)
Move position one page down.
Definition: TGCanvas.cxx:2027
TGCanvas::AddFrame
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
TGFrame::fHeight
UInt_t fHeight
frame height
Definition: TGFrame.h:88
TGViewPort::fX0
Int_t fX0
Definition: TGCanvas.h:161
TGContainer::SetVsbPosition
virtual void SetVsbPosition(Int_t newPos)
Set position of vertical scrollbar.
Definition: TGCanvas.cxx:1761
TGViewPort::GetDefaultSize
virtual TGDimension GetDefaultSize() const
std::cout << fWidth << "x" << fHeight << std::endl;
Definition: TGCanvas.h:178
TGCanvas::GetViewPort
TGViewPort * GetViewPort() const
Definition: TGCanvas.h:217
TGViewPort::SetPos
void SetPos(Int_t xpos, Int_t ypos)
Goto new position.
Definition: TGCanvas.cxx:281
TGViewPort::HandleConfigureNotify
virtual Bool_t HandleConfigureNotify(Event_t *event)
Handle resize events.
Definition: TGCanvas.cxx:292
TGViewPort::SetContainer
void SetContainer(TGFrame *f)
Add container frame to the viewport.
Definition: TGCanvas.cxx:153
TGPosition
Definition: TGDimension.h:36
TGContainer::KeyPressed
virtual void KeyPressed(TGFrame *, UInt_t keysym, UInt_t mask)
Signal emitted when keyboard key pressed.
Definition: TGCanvas.cxx:470
TGCompositeFrame
The base class for composite widgets (menu bars, list boxes, etc.).
Definition: TGFrame.h:287
TGCanvas
A frame containing two scrollbars (a horizontal and a vertical) and a viewport.
Definition: TGCanvas.h:192
TGContainer::RemoveAll
virtual void RemoveAll()
Remove all items from the container.
Definition: TGCanvas.cxx:641
TGContainer::fTotal
Int_t fTotal
total items
Definition: TGCanvas.h:48
TGViewPort::GetVPos
Int_t GetVPos() const
Definition: TGCanvas.h:185
TGContainer::GetLastActive
virtual TGFrame * GetLastActive() const
Definition: TGCanvas.h:127
TGContainer::HandleButton
virtual Bool_t HandleButton(Event_t *event)
Handle mouse button event in container.
Definition: TGCanvas.cxx:929
TGClient
Window client.
Definition: TGClient.h:37
TGContainer::ReturnPressed
virtual void ReturnPressed(TGFrame *)
Signal emitted when Return/Enter key pressed.
Definition: TGCanvas.cxx:484
TGContainer::fOnMouseOver
Bool_t fOnMouseOver
kTRUE when mouse pointer is over entry
Definition: TGCanvas.h:51
TGContainer::SetPageDimension
virtual void SetPageDimension(const TGDimension &dim)
Set page dimension.
Definition: TGCanvas.cxx:782
TGContainer::SearchPattern
virtual void SearchPattern()
Search for entry which name begins with pattern.
Definition: TGCanvas.cxx:1597
TGContainer::fYf
Int_t fYf
other corner of rubber band box
Definition: TGCanvas.h:46
TGCanvas::~TGCanvas
virtual ~TGCanvas()
Delete canvas.
Definition: TGCanvas.cxx:2155
TGCanvas::MapSubwindows
virtual void MapSubwindows()
Map all canvas sub windows.
Definition: TGCanvas.cxx:2165
TGCanvas::operator=
TGCanvas & operator=(const TGCanvas &)=delete
kChildFrame
@ kChildFrame
Definition: GuiTypes.h:379
int
TGContainer::LineLeft
virtual void LineLeft(Bool_t select=kFALSE)
Move current position one column left.
Definition: TGCanvas.cxx:1851
TGContainer::fBdown
Bool_t fBdown
Definition: TGCanvas.h:61
TGContainer::GetNextSelected
virtual const TGFrame * GetNextSelected(void **current)
Return the next selected item.
Definition: TGCanvas.cxx:681