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

Definition at line 24 of file TQt6Canvas.h.

Public Member Functions

 TQt6Canvas (TCanvas *c, const char *name, Int_t x, Int_t y, UInt_t width, UInt_t height)
 Constructor.
 
 ~TQt6Canvas () override
 Destructor.
 
TCanvasCanvas () const
 
void Close () override
 Close qt6 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.
 
QPaintWidgetGetPaintWidget () 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 qt6 canvas.
 
virtual TClassIsA () 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 canvas size.
 
virtual void SetCursor (ECursor 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 qt6 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 gVirtualX 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 TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
static TCanvasImpNewCanvas (TCanvas *c, const char *name, Int_t x, Int_t y, UInt_t width, UInt_t height)
 Static method to create TQt6Canvas instance Used by plugin manager to directly create TQt6Canvas without gui factory.
 

Protected Member Functions

void AssignStatusBits (UInt_t bits)
 Assign clients bits.
 
TVirtualPadPainterCreatePadPainter () 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 Qt update() which will redraw area
 
virtual void Unlock ()
 

Protected Attributes

TCanvasfCanvas {nullptr}
 
QCanvasWidgetfCanvasWidget = nullptr
 
UInt_t fClientBits = 0
 ! latest status bits from client like editor visible or not
 
Bool_t fFixedSize = kFALSE
 ! true when fixed-size canvas is configured
 
QPaintWidgetfPaintWidget = nullptr
 

#include <TQt6Canvas.h>

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

Constructor & Destructor Documentation

◆ TQt6Canvas()

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

Constructor.

Definition at line 39 of file TQt6Canvas.cxx.

◆ ~TQt6Canvas()

TQt6Canvas::~TQt6Canvas ( )
override

Destructor.

Definition at line 48 of file TQt6Canvas.cxx.

Member Function Documentation

◆ AssignStatusBits()

void TQt6Canvas::AssignStatusBits ( UInt_t bits)
protected

Assign clients bits.

Definition at line 184 of file TQt6Canvas.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 TQt6Canvas::Close ( )
overridevirtual

Close qt6 canvas - not implemented.

Reimplemented from TCanvasImp.

Definition at line 74 of file TQt6Canvas.cxx.

◆ CreatePadPainter()

TVirtualPadPainter * TQt6Canvas::CreatePadPainter ( )
overrideprotectedvirtual

Creates pad painter.

Reimplemented from TCanvasImp.

Definition at line 65 of file TQt6Canvas.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 TQt6Canvas::ForceUpdate ( )
overridevirtual

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

Reimplemented from TCanvasImp.

Definition at line 246 of file TQt6Canvas.cxx.

◆ GetCanvasGeometry()

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

Returns canvas geometry.

Reimplemented from TCanvasImp.

Definition at line 199 of file TQt6Canvas.cxx.

◆ GetPaintWidget()

QPaintWidget * ROOT::Experimental::TQt6Canvas::GetPaintWidget ( ) const
inline

Definition at line 44 of file TQt6Canvas.h.

◆ GetWindowGeometry()

UInt_t TQt6Canvas::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 215 of file TQt6Canvas.cxx.

◆ HasEditor()

Bool_t TQt6Canvas::HasEditor ( ) const
overridevirtual

Returns kTRUE if web canvas has graphical editor.

Reimplemented from TCanvasImp.

Definition at line 88 of file TQt6Canvas.cxx.

◆ HasMenuBar()

Bool_t TQt6Canvas::HasMenuBar ( ) const
overridevirtual

Returns kTRUE if web canvas has menu bar.

Reimplemented from TCanvasImp.

Definition at line 96 of file TQt6Canvas.cxx.

◆ HasStatusBar()

Bool_t TQt6Canvas::HasStatusBar ( ) const
overridevirtual

Returns kTRUE if web canvas has status bar.

Reimplemented from TCanvasImp.

Definition at line 104 of file TQt6Canvas.cxx.

◆ HasToolBar()

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

Reimplemented from TCanvasImp.

Definition at line 73 of file TQt6Canvas.h.

◆ HasToolTips()

Bool_t TQt6Canvas::HasToolTips ( ) const
overridevirtual

Returns kTRUE if tooltips are activated in web canvas.

Reimplemented from TCanvasImp.

Definition at line 112 of file TQt6Canvas.cxx.

◆ Iconify()

void TQt6Canvas::Iconify ( )
overridevirtual

Iconify browser window.

Reimplemented from TCanvasImp.

Definition at line 163 of file TQt6Canvas.cxx.

◆ InitWindow()

Int_t TQt6Canvas::InitWindow ( )
overridevirtual

Initialize window for the qt6 canvas.

Reimplemented from TCanvasImp.

Definition at line 57 of file TQt6Canvas.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 * TQt6Canvas::NewCanvas ( TCanvas * c,
const char * name,
Int_t x,
Int_t y,
UInt_t width,
UInt_t height )
static

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

Definition at line 254 of file TQt6Canvas.cxx.

◆ PerformUpdate()

Bool_t TQt6Canvas::PerformUpdate ( Bool_t async)
overrideprotectedvirtual

if canvas or any subpad was modified, invoke Qt update() which will redraw area

Reimplemented from TCanvasImp.

Definition at line 236 of file TQt6Canvas.cxx.

◆ RaiseWindow()

void TQt6Canvas::RaiseWindow ( )
overridevirtual

Raise browser window.

Reimplemented from TCanvasImp.

Definition at line 172 of file TQt6Canvas.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::TQt6Canvas::ResizeCanvasWindow ( Int_t wid)
inlineoverridevirtual

Resize canvas window, redirect to gVirtualX.

Reimplemented from TCanvasImp.

Definition at line 52 of file TQt6Canvas.h.

◆ SetCanvasSize()

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

Set canvas size.

Reimplemented from TCanvasImp.

Definition at line 147 of file TQt6Canvas.cxx.

◆ SetCursor()

virtual void TCanvasImp::SetCursor ( ECursor cursor)
inlinevirtualinherited

Reimplemented in TRootCanvas.

Definition at line 76 of file TCanvasImp.h.

◆ 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 TQt6Canvas::SetWindowPosition ( Int_t x,
Int_t y )
overridevirtual

Set window position of web canvas.

Reimplemented from TCanvasImp.

Definition at line 120 of file TQt6Canvas.cxx.

◆ SetWindowSize()

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

Set window size of web canvas.

Reimplemented from TCanvasImp.

Definition at line 129 of file TQt6Canvas.cxx.

◆ SetWindowTitle()

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

Set window title of web canvas.

Reimplemented from TCanvasImp.

Definition at line 138 of file TQt6Canvas.cxx.

◆ Show()

void TQt6Canvas::Show ( )
overridevirtual

Show qt6 canvas.

Reimplemented from TCanvasImp.

Definition at line 81 of file TQt6Canvas.cxx.

◆ ShowEditor()

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

Reimplemented from TCanvasImp.

Definition at line 57 of file TQt6Canvas.h.

◆ ShowMenuBar()

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

Reimplemented from TCanvasImp.

Definition at line 55 of file TQt6Canvas.h.

◆ ShowStatusBar()

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

Reimplemented from TCanvasImp.

Definition at line 56 of file TQt6Canvas.h.

◆ ShowToolBar()

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

Reimplemented from TCanvasImp.

Definition at line 58 of file TQt6Canvas.h.

◆ ShowToolTips()

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

Reimplemented from TCanvasImp.

Definition at line 59 of file TQt6Canvas.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::TQt6Canvas::UpdateDisplay ( Int_t mode = 0,
Bool_t sleep = kFALSE )
inlineoverridevirtual

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

Reimplemented from TCanvasImp.

Definition at line 53 of file TQt6Canvas.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.

◆ fCanvasWidget

QCanvasWidget* ROOT::Experimental::TQt6Canvas::fCanvasWidget = nullptr
protected

Definition at line 28 of file TQt6Canvas.h.

◆ fClientBits

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

! latest status bits from client like editor visible or not

Definition at line 32 of file TQt6Canvas.h.

◆ fFixedSize

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

! true when fixed-size canvas is configured

Definition at line 31 of file TQt6Canvas.h.

◆ fPaintWidget

QPaintWidget* ROOT::Experimental::TQt6Canvas::fPaintWidget = nullptr
protected

Definition at line 29 of file TQt6Canvas.h.

  • gui/qt6canvas/inc/TQt6Canvas.h
  • gui/qt6canvas/src/TQt6Canvas.cxx