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).
virtual void Layout()
Layout the elements of the composite frame.
virtual void MapRaised()
map raised
virtual void IconifyWindow()
iconify window
Mother of all ROOT objects.
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 ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2)
Handle menu and other command generated by the user.
Bool_t HasMenuBar() const
Returns kTRUE if the menu bar is shown.
Bool_t HandleDNDDrop(TDNDData *data)
Handle drop events.
friend class TRootContainer
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
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
void SetWindowSize(UInt_t w, UInt_t h)
Set size of canvas (units in pixels).
TGHorizontal3DLine * fHorizontal1
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
void ShowEditor(Bool_t show=kTRUE)
Show or hide side frame.
TGLayoutHints * fMenuBarItemLayout
const TGPicture * fIconPic
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
TRootCanvas & operator=(const TRootCanvas &)=delete
TGPopupMenu * fViewWithMenu
TGPopupMenu * fEditClearMenu
TRootContainer * fCanvasContainer
Bool_t HasStatusBar() const
Returns kTRUE if the status bar is shown.
Bool_t HandleContainerDoubleClick(Event_t *ev)
Handle mouse button double click events in the canvas container.
TGLayoutHints * fHorizontal1Layout
TGVertical3DLine * fVertical2
TGLayoutHints * fMenuBarLayout
void FitCanvas()
Fit canvas container to current window size.
Bool_t HandleContainerMotion(Event_t *ev)
Handle mouse motion event in the canvas container.
void ShowMenuBar(Bool_t show=kTRUE)
Show or hide menubar.
void ShowToolBar(Bool_t show=kTRUE)
Show or hide toolbar.
TGLayoutHints * fMenuBarHelpLayout
TGLayoutHints * GetMenuBarItemLayout() const
TGPopupMenu * fOptionMenu
void RaiseWindow()
Put canvas window on top of the window stack.
TGLayoutHints * fDockLayout
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.
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
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
TGLayoutHints * fVertical2Layout
TVirtualPadEditor * fEditor
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
TGMenuBar * GetMenuBar() const
TGLayoutHints * fToolBarLayout
TGCompositeFrame * fEditorFrame
TGPopupMenu * fFileSaveMenu
void ReallyDelete()
Really delete the canvas and this GUI.
TGLayoutHints * fStatusBarLayout
TGVertical3DLine * fVertical1
Abstract base class used by ROOT graphics editor.