13#ifndef ROOT_TRootCanvas
14#define ROOT_TRootCanvas
#define ClassDef(name, id)
include TDocParser_001 C image html pict1_TDocParser_001 png width
ABC describing GUI independent main window (with menubar, scrollbars and a drawing area).
Drag and drop data container.
A frame containing two scrollbars (a horizontal and a vertical) and a viewport.
The base class for composite widgets (menu bars, list boxes, etc.).
virtual void Layout()
Layout the elements of the composite frame.
A frame with handles that allow it to be undocked (i.e.
virtual void MapRaised()
map raised
A horizontal 3D line is a line that typically separates a toolbar from the menubar.
This class describes layout hints used by the layout classes.
Defines top level windows that interact with the system Window Manager.
The TGPicture class implements pictures and icons used in the different GUI elements and widgets.
Provides a StatusBar widget.
A vertical 3D line is a line that can be used to separate groups of widgets.
virtual void IconifyWindow()
iconify window
Mother of all ROOT objects.
This class creates a main window with menubar, scrollbars and a drawing area.
TGToolBar * fToolBar
icon button toolbar
void Close()
Called via TCanvasImp interface by TCanvas.
UInt_t GetCwidth() const
Return width of canvas container.
void AdjustSize()
Keep the same canvas size while docking/undocking toolbar.
Bool_t HasToolTips() const
Returns kTRUE if the tooltips are enabled.
Bool_t HasMenuBar() const
Returns kTRUE if the menu bar is shown.
Bool_t fAutoFit
when true canvas container keeps same size as canvas
Bool_t HandleDNDDrop(TDNDData *data)
Handle drop events.
TGPopupMenu * fEditMenu
edit menu
void CreateEditor()
Create embedded editor.
Bool_t HandleContainerKey(Event_t *ev)
Handle keyboard events in the canvas container.
Bool_t HasEditor() const
Returns kTRUE if the editor is shown.
virtual ~TRootCanvas()
Delete ROOT basic canvas.
TGLayoutHints * fMainFrameLayout
layout for main frame
void SetCanvasSize(UInt_t w, UInt_t h)
Set size of canvas container. Units in pixels.
Bool_t HandleContainerButton(Event_t *ev)
Handle mouse button events in the canvas container.
Bool_t HandleContainerCrossing(Event_t *ev)
Handle enter/leave events. Only leave is activated at the moment.
TGDockableFrame * GetToolDock() const
UInt_t GetCheight() const
Return height of canvas container.
TGDockableFrame * fToolDock
dockable frame holding the toolbar
void SetWindowSize(UInt_t w, UInt_t h)
Set size of canvas (units in pixels).
TGHorizontal3DLine * fHorizontal1
toolbar separator
Bool_t HasToolBar() const
Returns kTRUE if the tool bar is shown.
TGStatusBar * GetStatusBar() const
void CloseWindow()
In case window is closed via WM we get here.
Int_t InitWindow()
Called by TCanvas ctor to get window indetifier.
Atom_t HandleDNDEnter(Atom_t *typelist)
Handle drag enter events.
TGLayoutHints * fEditorLayout
layout for editor frame
TGPopupMenu * fToolsMenu
tools menu
void ShowEditor(Bool_t show=kTRUE)
Show or hide side frame.
TGLayoutHints * fMenuBarItemLayout
layout hints for menu in menubar
Int_t fCanvasID
index in fWindows array of TGX11
const TGPicture * fIconPic
icon picture
void PrintCanvas()
Print the canvas.
TRootCanvas(const TRootCanvas &)=delete
void ShowStatusBar(Bool_t show=kTRUE)
Show or hide statusbar.
Atom_t HandleDNDPosition(Int_t x, Int_t y, Atom_t action, Int_t xroot, Int_t yroot)
Handle dragging position events.
void SetWindowTitle(const char *newTitle)
Change title on window.
void Activated(Int_t id)
Slot handling tab switching in the browser, to properly set the canvas and the model to the editor.
TGHorizontal3DLine * fToolBarSep
toolbar separator
TRootCanvas & operator=(const TRootCanvas &)=delete
TGPopupMenu * fViewWithMenu
view with... cascade submenu
TGPopupMenu * fEditClearMenu
clear cascade submenu
TRootContainer * fCanvasContainer
container in canvas widget
Bool_t HasStatusBar() const
Returns kTRUE if the status bar is shown.
Bool_t fEmbedded
true if embedded in any other frame (e.g. in the browser)
Bool_t HandleContainerDoubleClick(Event_t *ev)
Handle mouse button double click events in the canvas container.
TGLayoutHints * fHorizontal1Layout
layout hints for separator
TGVertical3DLine * fVertical2
toolbar vertical separator
TGLayoutHints * fMenuBarLayout
menubar layout hints
void FitCanvas()
Fit canvas container to current window size.
Bool_t HandleContainerMotion(Event_t *ev)
Handle mouse motion event in the canvas container.
TGCanvas * fCanvasWindow
canvas widget
void ShowMenuBar(Bool_t show=kTRUE)
Show or hide menubar.
void ShowToolBar(Bool_t show=kTRUE)
Show or hide toolbar.
TGLayoutHints * fMenuBarHelpLayout
layout hint for help menu in menubar
TGPopupMenu * fViewMenu
view menu
TGLayoutHints * GetMenuBarItemLayout() const
TGStatusBar * fStatusBar
statusbar widget
TGPopupMenu * fOptionMenu
option menu
Bool_t ProcessMessage(Longptr_t msg, Longptr_t parm1, Longptr_t parm2)
Handle menu and other command generated by the user.
void RaiseWindow()
Put canvas window on top of the window stack.
TGLayoutHints * fDockLayout
layout hints for dockable frame widget
void SetWindowPosition(Int_t x, Int_t y)
Set canvas position (units in pixels).
void ShowToolTips(Bool_t show=kTRUE)
Enable or disable tooltip info.
Bool_t HandleDNDLeave()
Handle drag leave events.
TGPopupMenu * fHelpMenu
help menu
void EventInfo(Int_t event, Int_t px, Int_t py, TObject *selected)
Display a tooltip with infos about the primitive below the cursor.
void CreateCanvas(const char *name)
Create the actual canvas.
TGLayoutHints * fVertical1Layout
layout hints for separator
UInt_t GetWindowGeometry(Int_t &x, Int_t &y, UInt_t &w, UInt_t &h)
Gets the size and position of the window containing the canvas.
Bool_t HandleContainerConfigure(Event_t *ev)
Handle configure (i.e. resize) event.
TGCompositeFrame * fMainFrame
main frame containing canvas and side frame
TGLayoutHints * fVertical2Layout
layout hints for separator
TVirtualPadEditor * fEditor
pointer to currently loaded pad editor
TGMenuBar * fMenuBar
menubar
Bool_t HandleContainerExpose(Event_t *ev)
Handle expose events.
void SetStatusText(const char *txt=0, Int_t partidx=0)
Set text in status bar.
TGLayoutHints * fCanvasLayout
layout for canvas widget
TGMenuBar * GetMenuBar() const
TGLayoutHints * fToolBarLayout
layout for toolbar widget
TGCompositeFrame * fEditorFrame
side frame for current pad editor
TGToolTip * fToolTip
tooltip for object info
TGPopupMenu * fFileMenu
file menu
TGPopupMenu * fFileSaveMenu
save cascade submenu
void ReallyDelete()
Really delete the canvas and this GUI.
Int_t fButton
currently pressed button
TGLayoutHints * fStatusBarLayout
layout hints for statusbar
TGVertical3DLine * fVertical1
toolbar vertical separator
Abstract base class used by ROOT graphics editor.