24class TGContainerTimer;
ULong_t Pixel_t
Pixel value.
#define ClassDefOverride(name, id)
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t mask
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void xpos
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void ypos
A frame containing two scrollbars (a horizontal and a vertical) and a viewport.
virtual void SetContainer(TGFrame *f)
~TGCanvas() override
Delete canvas.
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save a canvas widget as a C++ statement(s) on output stream out.
void DrawBorder() override
Draw canvas border.
TGFrame * GetContainer() const
virtual void SetVsbPosition(Int_t newPos)
Set position of vertical scrollbar.
TGCanvas & operator=(const TGCanvas &)=delete
virtual void SetHsbPosition(Int_t newPos)
Set position of horizontal scrollbar.
virtual Int_t GetVsbPosition() const
Get position of vertical scrollbar.
TGViewPort * fVport
viewport through which we look at contents
Int_t fScrolling
flag which scrolling modes are allowed
TGHScrollBar * fHScrollbar
horizontal scrollbar
TGVScrollBar * GetVScrollbar() const
TGVScrollBar * fVScrollbar
vertical scrollbar
TGViewPort * GetViewPort() const
void MapSubwindows() override
Map all canvas sub windows.
virtual Int_t GetHsbPosition() const
Get position of horizontal scrollbar.
virtual void ClearViewPort()
Clear view port and redraw content.
Int_t GetScrolling() const
void SetScrolling(Int_t scrolling)
Set scrolling policy.
Bool_t ProcessMessage(Longptr_t msg, Longptr_t parm1, Longptr_t parm2) override
Handle message generated by the canvas scrollbars.
@ kCanvasScrollHorizontal
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=nullptr)
Adding a frame to a canvas is actually adding the frame to the viewport container.
TGCanvas(const TGCanvas &)=delete
TGDimension GetDefaultSize() const override
std::cout << fWidth << "x" << fHeight << std::endl;
void Layout() override
Create layout for canvas.
TGHScrollBar * GetHScrollbar() const
The base class for composite widgets (menu bars, list boxes, etc.).
TGRectangle fExposedRegion
exposed area
virtual void ActivateItem(TGFrameElement *el)
Activate item.
virtual void Associate(const TGWindow *w)
Bool_t fKeyTimerActive
kTRUE - keyboard timer is active
virtual void RemoveItem(TGFrame *item)
Remove item from container.
Bool_t HandleKey(Event_t *event) override
The key press event handler converts a key press to some line editor action.
TGCanvas * fCanvas
pointer to canvas
virtual TGFrame * GetLastActive() const
TTimer * fScrollTimer
autoscroll timer
virtual void RepeatSearch()
Repeats search.
Bool_t HandleDoubleClick(Event_t *event) override
Handle double click mouse event.
Int_t fYf
other corner of rubber band box
virtual void UnSelectAll()
Unselect all items in the container.
virtual void PageDown(Bool_t select=kFALSE)
Move position one page down.
virtual void LineLeft(Bool_t select=kFALSE)
Move current position one column left.
Bool_t HandleButton(Event_t *event) override
Handle mouse button event in container.
virtual void ClearViewPort()
Clear view port and redraw full content.
const TGWindow * fMsgWindow
window handling container messages
virtual TGFrameElement * FindFrame(Int_t x, Int_t y, Bool_t exclude=kTRUE)
Find frame located int container at position x,y.
TGContainer & operator=(const TGContainer &)=delete
Int_t fYp
previous pointer position
virtual void AdjustPosition()
Move content to position of highlighted/activated frame.
~TGContainer() override
Delete canvas container.
virtual void OnMouseOver(TGFrame *)
Signal emitted when pointer is over entry.
virtual void Clicked(TGFrame *f, Int_t btn)
Emit Clicked() signal.
virtual void InvertSelection()
Invert the selection, all selected items become unselected and vice versa.
virtual void PageUp(Bool_t select=kFALSE)
Move position one page up.
virtual void LineDown(Bool_t select=kFALSE)
Move one line down.
virtual const TGFrame * GetNextSelected(void **current)
Return the next selected item.
Bool_t HandleExpose(Event_t *event) override
Handle expose events. Do not use double buffer.
virtual void Search(Bool_t close=kTRUE)
Invokes search dialog. Looks for item with the entered name.
virtual void LineUp(Bool_t select=kFALSE)
Make current position first line in window by scrolling up.
void Layout() override
Layout container entries.
Bool_t fLastDir
direction of last search
Int_t fY0
corner of rubber band box
virtual void Home(Bool_t select=kFALSE)
Move to upper-left corner of container.
Bool_t HandleDNDFinished() override
virtual void KeyPressed(TGFrame *, UInt_t keysym, UInt_t mask)
Signal emitted when keyboard key pressed.
virtual void SetDragPixmap(const TGPicture *pic)
Set drag window pixmaps and hotpoint.
virtual Int_t NumSelected() const
const TGPicture * GetObjPicture(TGFrame *f)
Retrieve icons associated with class "name".
virtual void SetVsbPosition(Int_t newPos)
Set position of vertical scrollbar.
TGCanvas * GetCanvas() const
virtual void ReturnPressed(TGFrame *)
Signal emitted when Return/Enter key pressed.
virtual void SearchPattern()
Search for entry which name begins with pattern.
virtual void SetPageDimension(const TGDimension &dim)
Set page dimension.
virtual void LineRight(Bool_t select=kFALSE)
Move current position one column right.
TGContainer(const TGContainer &)=delete
Int_t fSelected
number of selected items
void DoRedraw() override
Redraw content of container in the viewport region.
virtual void SpacePressed(TGFrame *)
Signal emitted when space key pressed.
virtual void SetHsbPosition(Int_t newPos)
set new hor. position
Bool_t fScrolling
kTRUE - when scrolling is ON
virtual TGDimension GetPageDimension() const
Returns page dimension.
TString fLastName
the name of object of last search
virtual void OnAutoScroll()
Autoscroll while close to & beyond The Wall.
static const TGGC & GetLineGC()
Get graphics context for line drawing.
Bool_t fDragging
true if in dragging mode
virtual void CurrentChanged(Int_t x, Int_t y)
Emit signal when current position changed.
virtual void DrawRegion(Int_t x, Int_t y, UInt_t w, UInt_t h)
Draw a region of container in viewport.
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save a canvas container as a C++ statement(s) on output stream out.
virtual Int_t NumItems() const
TGViewPort * fViewPort
container viewport
virtual TGVScrollBar * GetVScrollbar() const
returns pointer to vert. scroll bar
virtual TGFrame * FindFrameByName(const char *name)
Find frame by name.
virtual void * FindItem(const TString &name, Bool_t direction=kTRUE, Bool_t caseSensitive=kTRUE, Bool_t subString=kFALSE)
Bool_t HandleMotion(Event_t *event) override
Handle mouse motion events.
Bool_t fOnMouseOver
kTRUE when mouse pointer is over entry
Bool_t fLastCase
case sensitivity of last search
const TGWindow * GetMessageWindow() const
void RemoveAll() override
Remove all items from the container.
virtual void DoubleClicked(TGFrame *f, Int_t btn)
Emit DoubleClicked() signal.
virtual TGPosition GetPagePosition() const
Returns page position.
virtual void End(Bool_t select=kFALSE)
Move to the bottom-right corner of container.
Bool_t fLastSubstring
substring search option of last search
virtual void SetPagePosition(const TGPosition &pos)
Set page position.
virtual TGHScrollBar * GetHScrollbar() const
returns pointer to hor. scroll bar
TGFrameElement * fLastActiveEl
last active item
virtual void SelectAll()
Select all items in the container.
TString fKeyInput
keyboard input (buffer)
TTimer * fKeyTimer
keyboard timer
virtual void DeActivateItem(TGFrameElement *el)
DeActivate item.
A subclasses of TGWindow, and is used as base class for some simple widgets (buttons,...
UInt_t fHeight
frame height
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Encapsulate a graphics context used in the low level graphics.
This class describes layout hints used by the layout classes.
A list view is a widget that can contain a number of items arranged in a grid or list.
The TGPicture class implements pictures and icons used in the different GUI elements and widgets.
void DrawBorder() override
Draw frame border.
void Layout() override
Layout the elements of the composite frame.
TGFrame * GetContainer() const
Bool_t HandleConfigureNotify(Event_t *event) override
Handle resize events.
TGViewPort(const TGViewPort &)=delete
TGDimension GetDefaultSize() const override
std::cout << fWidth << "x" << fHeight << std::endl;
void SetContainer(TGFrame *f)
Add container frame to the viewport.
virtual void SetHPos(Int_t xpos)
Moves content of container frame in horizontal direction.
virtual void SetVPos(Int_t ypos)
Moves content of container frame in vertical direction.
void SetPos(Int_t xpos, Int_t ypos)
Goto new position.
TGViewPort & operator=(const TGViewPort &)=delete
ROOT GUI Window base class.
Handles synchronous and a-synchronous timer events.