Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::Experimental::TGtk4Canvas Class Reference

Definition at line 23 of file TGtk4Canvas.h.

Public Member Functions

 TGtk4Canvas (TCanvas *c, const char *name, Int_t x, Int_t y, UInt_t width, UInt_t height)
 Constructor.
 
 ~TGtk4Canvas () override
 Destructor.
 
TCanvas * Canvas () const
 
void Close () override
 Close canvas - not implemented.
 
void ForceUpdate () override
 Increment canvas version and force sending data to client - do not wait for reply.
 
void GetCanvasGeometry (Int_t wid, UInt_t &w, UInt_t &h) override
 Returns canvas geometry.
 
Gtk4DrawArea * GetDrawArea () const
 
UInt_t GetWindowGeometry (Int_t &x, Int_t &y, UInt_t &w, UInt_t &h) override
 Returns window geometry including borders and menus.
 
Bool_t HasEditor () const override
 Returns kTRUE if web canvas has graphical editor.
 
Bool_t HasMenuBar () const override
 Returns kTRUE if web canvas has menu bar.
 
Bool_t HasStatusBar () const override
 Returns kTRUE if web canvas has status bar.
 
Bool_t HasToolBar () const override
 
Bool_t HasToolTips () const override
 Returns kTRUE if tooltips are activated in web canvas.
 
void Iconify () override
 Iconify browser window.
 
Int_t InitWindow () override
 Initialize window for the Gtk4 canvas.
 
virtual TClass * IsA () const
 
void RaiseWindow () override
 Raise browser window.
 
virtual void ReallyDelete ()
 
virtual Int_t RequestLocator (Int_t &x, Int_t &y)
 Request current mouse pointer, redirect to gVirtualX.
 
void ResizeCanvasWindow (Int_t) override
 Resize canvas window, redirect to gVirtualX.
 
void SetCanvasSize (UInt_t w, UInt_t h) override
 Set fixed canvas size - not supported yet in gtk.
 
void SetCursor (ECursor cursor) override
 Set cursor.
 
virtual void SetStatusText (const char *text=nullptr, Int_t partidx=0)
 
void SetWindowPosition (Int_t x, Int_t y) override
 Set window position of web canvas.
 
void SetWindowSize (UInt_t w, UInt_t h) override
 Set window size of web canvas.
 
void SetWindowTitle (const char *newTitle) override
 Set window title of web canvas.
 
void Show () override
 Show canvas.
 
void ShowEditor (Bool_t=kTRUE) override
 
void ShowMenuBar (Bool_t=kTRUE) override
 
void ShowStatusBar (Bool_t=kTRUE) override
 
void ShowToolBar (Bool_t=kTRUE) override
 
void ShowToolTips (Bool_t=kTRUE) override
 
virtual void Streamer (TBuffer &)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
void UpdateDisplay (Int_t=0, Bool_t=kFALSE) override
 Update canvas display, also optionally sleep to wait until operation finished.
 
virtual void Warp (Int_t ix, Int_t iy)
 Change mouse pointer, redirect to gVirtualX.
 

Static Public Member Functions

static TClass * Class ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
static TCanvasImp * NewCanvas (TCanvas *c, const char *name, Int_t x, Int_t y, UInt_t width, UInt_t height)
 Static method to create TGtk4Canvas instance Used by plugin manager to directly create TGtk4Canvas without gui factory.
 

Protected Member Functions

void AssignStatusBits (UInt_t bits)
 Assign clients bits.
 
TVirtualPadPainter * CreatePadPainter () override
 Creates pad painter.
 
virtual Bool_t IsLocked ()
 
virtual Bool_t IsWeb () const
 
virtual void Lock ()
 
Bool_t PerformUpdate (Bool_t async) override
 if canvas or any subpad was modified, invoke gtk4 queue_draw() which will trigger redraw area
 
virtual void Unlock ()
 

Protected Attributes

TCanvas * fCanvas {nullptr}
 
Gtk4CanvasWindow * fCanvasWindow = nullptr
 
UInt_t fClientBits = 0
 ! latest status bits from client like editor visible or not
 
Gtk4DrawArea * fDrawArea = nullptr
 
Bool_t fFixedSize = kFALSE
 ! true when fixed-size canvas is configured
 

#include <TGtk4Canvas.h>

Inheritance diagram for ROOT::Experimental::TGtk4Canvas:
[legend]

Constructor & Destructor Documentation

◆ TGtk4Canvas()

TGtk4Canvas::TGtk4Canvas ( TCanvas * c,
const char * name,
Int_t x,
Int_t y,
UInt_t width,
UInt_t height )

Constructor.

Definition at line 40 of file TGtk4Canvas.cxx.

◆ ~TGtk4Canvas()

TGtk4Canvas::~TGtk4Canvas ( )
override

Destructor.

Definition at line 48 of file TGtk4Canvas.cxx.

Member Function Documentation

◆ AssignStatusBits()

void TGtk4Canvas::AssignStatusBits ( UInt_t bits)
protected

Assign clients bits.

Definition at line 215 of file TGtk4Canvas.cxx.

◆ Canvas()

TCanvas * TCanvasImp::Canvas ( ) const
inlineinherited

Definition at line 59 of file TCanvasImp.h.

◆ Class()

static TClass * TCanvasImp::Class ( )
staticinherited
Returns
TClass describing this class

◆ Class_Name()

static const char * TCanvasImp::Class_Name ( )
staticinherited
Returns
Name of this class

◆ Class_Version()

static constexpr Version_t TCanvasImp::Class_Version ( )
inlinestaticconstexprinherited
Returns
Version of this class

Definition at line 99 of file TCanvasImp.h.

◆ Close()

void TGtk4Canvas::Close ( )
overridevirtual

Close canvas - not implemented.

Reimplemented from TCanvasImp.

Definition at line 71 of file TGtk4Canvas.cxx.

◆ CreatePadPainter()

TVirtualPadPainter * TGtk4Canvas::CreatePadPainter ( )
overrideprotectedvirtual

Creates pad painter.

Reimplemented from TCanvasImp.

Definition at line 63 of file TGtk4Canvas.cxx.

◆ DeclFileName()

static const char * TCanvasImp::DeclFileName ( )
inlinestaticinherited
Returns
Name of the file containing the class declaration

Definition at line 99 of file TCanvasImp.h.

◆ ForceUpdate()

void TGtk4Canvas::ForceUpdate ( )
overridevirtual

Increment canvas version and force sending data to client - do not wait for reply.

Reimplemented from TCanvasImp.

Definition at line 289 of file TGtk4Canvas.cxx.

◆ GetCanvasGeometry()

void TGtk4Canvas::GetCanvasGeometry ( Int_t wid,
UInt_t & w,
UInt_t & h )
overridevirtual

Returns canvas geometry.

Reimplemented from TCanvasImp.

Definition at line 228 of file TGtk4Canvas.cxx.

◆ GetDrawArea()

Gtk4DrawArea * ROOT::Experimental::TGtk4Canvas::GetDrawArea ( ) const
inline

Definition at line 43 of file TGtk4Canvas.h.

◆ GetWindowGeometry()

UInt_t TGtk4Canvas::GetWindowGeometry ( Int_t & x,
Int_t & y,
UInt_t & w,
UInt_t & h )
overridevirtual

Returns window geometry including borders and menus.

Reimplemented from TCanvasImp.

Definition at line 245 of file TGtk4Canvas.cxx.

◆ HasEditor()

Bool_t TGtk4Canvas::HasEditor ( ) const
overridevirtual

Returns kTRUE if web canvas has graphical editor.

Reimplemented from TCanvasImp.

Definition at line 87 of file TGtk4Canvas.cxx.

◆ HasMenuBar()

Bool_t TGtk4Canvas::HasMenuBar ( ) const
overridevirtual

Returns kTRUE if web canvas has menu bar.

Reimplemented from TCanvasImp.

Definition at line 95 of file TGtk4Canvas.cxx.

◆ HasStatusBar()

Bool_t TGtk4Canvas::HasStatusBar ( ) const
overridevirtual

Returns kTRUE if web canvas has status bar.

Reimplemented from TCanvasImp.

Definition at line 103 of file TGtk4Canvas.cxx.

◆ HasToolBar()

Bool_t ROOT::Experimental::TGtk4Canvas::HasToolBar ( ) const
inlineoverridevirtual

Reimplemented from TCanvasImp.

Definition at line 73 of file TGtk4Canvas.h.

◆ HasToolTips()

Bool_t TGtk4Canvas::HasToolTips ( ) const
overridevirtual

Returns kTRUE if tooltips are activated in web canvas.

Reimplemented from TCanvasImp.

Definition at line 111 of file TGtk4Canvas.cxx.

◆ Iconify()

void TGtk4Canvas::Iconify ( )
overridevirtual

Iconify browser window.

Reimplemented from TCanvasImp.

Definition at line 197 of file TGtk4Canvas.cxx.

◆ InitWindow()

Int_t TGtk4Canvas::InitWindow ( )
overridevirtual

Initialize window for the Gtk4 canvas.

Reimplemented from TCanvasImp.

Definition at line 55 of file TGtk4Canvas.cxx.

◆ IsA()

virtual TClass * TCanvasImp::IsA ( ) const
inlinevirtualinherited
Returns
TClass describing current object

Reimplemented in TRootCanvas, and TWebCanvas.

Definition at line 99 of file TCanvasImp.h.

◆ IsLocked()

virtual Bool_t TCanvasImp::IsLocked ( )
inlineprotectedvirtualinherited

Reimplemented in TWebCanvas.

Definition at line 47 of file TCanvasImp.h.

◆ IsWeb()

virtual Bool_t TCanvasImp::IsWeb ( ) const
inlineprotectedvirtualinherited

Reimplemented in TWebCanvas.

Definition at line 49 of file TCanvasImp.h.

◆ Lock()

virtual void TCanvasImp::Lock ( )
inlineprotectedvirtualinherited

Reimplemented in TWebCanvas.

Definition at line 45 of file TCanvasImp.h.

◆ NewCanvas()

TCanvasImp * TGtk4Canvas::NewCanvas ( TCanvas * c,
const char * name,
Int_t x,
Int_t y,
UInt_t width,
UInt_t height )
static

Static method to create TGtk4Canvas instance Used by plugin manager to directly create TGtk4Canvas without gui factory.

Definition at line 319 of file TGtk4Canvas.cxx.

◆ PerformUpdate()

Bool_t TGtk4Canvas::PerformUpdate ( Bool_t async)
overrideprotectedvirtual

if canvas or any subpad was modified, invoke gtk4 queue_draw() which will trigger redraw area

Reimplemented from TCanvasImp.

Definition at line 267 of file TGtk4Canvas.cxx.

◆ RaiseWindow()

void TGtk4Canvas::RaiseWindow ( )
overridevirtual

Raise browser window.

Reimplemented from TCanvasImp.

Definition at line 206 of file TGtk4Canvas.cxx.

◆ ReallyDelete()

virtual void TCanvasImp::ReallyDelete ( )
inlinevirtualinherited

Reimplemented in TRootCanvas.

Definition at line 81 of file TCanvasImp.h.

◆ RequestLocator()

Int_t TCanvasImp::RequestLocator ( Int_t & x,
Int_t & y )
virtualinherited

Request current mouse pointer, redirect to gVirtualX.

Definition at line 36 of file TCanvasImp.cxx.

◆ ResizeCanvasWindow()

void ROOT::Experimental::TGtk4Canvas::ResizeCanvasWindow ( Int_t wid)
inlineoverridevirtual

Resize canvas window, redirect to gVirtualX.

Reimplemented from TCanvasImp.

Definition at line 51 of file TGtk4Canvas.h.

◆ SetCanvasSize()

void TGtk4Canvas::SetCanvasSize ( UInt_t w,
UInt_t h )
overridevirtual

Set fixed canvas size - not supported yet in gtk.

Reimplemented from TCanvasImp.

Definition at line 147 of file TGtk4Canvas.cxx.

◆ SetCursor()

void TGtk4Canvas::SetCursor ( ECursor cursor)
overridevirtual

Set cursor.

Reimplemented from TCanvasImp.

Definition at line 163 of file TGtk4Canvas.cxx.

◆ SetStatusText()

virtual void TCanvasImp::SetStatusText ( const char * text = nullptr,
Int_t partidx = 0 )
inlinevirtualinherited

Reimplemented in TRootCanvas.

Definition at line 71 of file TCanvasImp.h.

◆ SetWindowPosition()

void TGtk4Canvas::SetWindowPosition ( Int_t x,
Int_t y )
overridevirtual

Set window position of web canvas.

Reimplemented from TCanvasImp.

Definition at line 119 of file TGtk4Canvas.cxx.

◆ SetWindowSize()

void TGtk4Canvas::SetWindowSize ( UInt_t w,
UInt_t h )
overridevirtual

Set window size of web canvas.

Reimplemented from TCanvasImp.

Definition at line 129 of file TGtk4Canvas.cxx.

◆ SetWindowTitle()

void TGtk4Canvas::SetWindowTitle ( const char * newTitle)
overridevirtual

Set window title of web canvas.

Reimplemented from TCanvasImp.

Definition at line 138 of file TGtk4Canvas.cxx.

◆ Show()

void TGtk4Canvas::Show ( )
overridevirtual

Show canvas.

Reimplemented from TCanvasImp.

Definition at line 78 of file TGtk4Canvas.cxx.

◆ ShowEditor()

void ROOT::Experimental::TGtk4Canvas::ShowEditor ( Bool_t = kTRUE)
inlineoverridevirtual

Reimplemented from TCanvasImp.

Definition at line 56 of file TGtk4Canvas.h.

◆ ShowMenuBar()

void ROOT::Experimental::TGtk4Canvas::ShowMenuBar ( Bool_t = kTRUE)
inlineoverridevirtual

Reimplemented from TCanvasImp.

Definition at line 54 of file TGtk4Canvas.h.

◆ ShowStatusBar()

void ROOT::Experimental::TGtk4Canvas::ShowStatusBar ( Bool_t = kTRUE)
inlineoverridevirtual

Reimplemented from TCanvasImp.

Definition at line 55 of file TGtk4Canvas.h.

◆ ShowToolBar()

void ROOT::Experimental::TGtk4Canvas::ShowToolBar ( Bool_t = kTRUE)
inlineoverridevirtual

Reimplemented from TCanvasImp.

Definition at line 57 of file TGtk4Canvas.h.

◆ ShowToolTips()

void ROOT::Experimental::TGtk4Canvas::ShowToolTips ( Bool_t = kTRUE)
inlineoverridevirtual

Reimplemented from TCanvasImp.

Definition at line 58 of file TGtk4Canvas.h.

◆ Streamer()

virtual void TCanvasImp::Streamer ( TBuffer & )
virtualinherited

Reimplemented in TRootCanvas, and TWebCanvas.

◆ StreamerNVirtual()

void TCanvasImp::StreamerNVirtual ( TBuffer & ClassDef_StreamerNVirtual_b)
inlineinherited

Definition at line 99 of file TCanvasImp.h.

◆ Unlock()

virtual void TCanvasImp::Unlock ( )
inlineprotectedvirtualinherited

Reimplemented in TWebCanvas.

Definition at line 46 of file TCanvasImp.h.

◆ UpdateDisplay()

void ROOT::Experimental::TGtk4Canvas::UpdateDisplay ( Int_t mode = 0,
Bool_t sleep = kFALSE )
inlineoverridevirtual

Update canvas display, also optionally sleep to wait until operation finished.

Reimplemented from TCanvasImp.

Definition at line 52 of file TGtk4Canvas.h.

◆ Warp()

void TCanvasImp::Warp ( Int_t ix,
Int_t iy )
virtualinherited

Change mouse pointer, redirect to gVirtualX.

Definition at line 27 of file TCanvasImp.cxx.

Member Data Documentation

◆ fCanvas

TCanvas* TCanvasImp::fCanvas {nullptr}
protectedinherited

Definition at line 35 of file TCanvasImp.h.

◆ fCanvasWindow

Gtk4CanvasWindow* ROOT::Experimental::TGtk4Canvas::fCanvasWindow = nullptr
protected

Definition at line 27 of file TGtk4Canvas.h.

◆ fClientBits

UInt_t ROOT::Experimental::TGtk4Canvas::fClientBits = 0
protected

! latest status bits from client like editor visible or not

Definition at line 31 of file TGtk4Canvas.h.

◆ fDrawArea

Gtk4DrawArea* ROOT::Experimental::TGtk4Canvas::fDrawArea = nullptr
protected

Definition at line 28 of file TGtk4Canvas.h.

◆ fFixedSize

Bool_t ROOT::Experimental::TGtk4Canvas::fFixedSize = kFALSE
protected

! true when fixed-size canvas is configured

Definition at line 30 of file TGtk4Canvas.h.

  • gui/gtk4canvas/inc/TGtk4Canvas.h
  • gui/gtk4canvas/src/TGtk4Canvas.cxx