Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::RQt6WebDisplayHandle Class Reference

Definition at line 68 of file rootqt6.cpp.

Classes

class  Qt6Creator
 

Public Member Functions

 RQt6WebDisplayHandle (const std::string &url)
 
 ~RQt6WebDisplayHandle () override
 
bool Resize (int width, int height) override
 resize web window - if possible
 
- Public Member Functions inherited from ROOT::RWebDisplayHandle
 RWebDisplayHandle (const std::string &url)
 constructor
 
virtual ~RWebDisplayHandle ()=default
 required virtual destructor for correct cleanup at the end
 
const std::string & GetContent () const
 get content
 
const std::string & GetUrl () const
 returns url of start web display
 
void SetContent (const std::string &cont)
 set content
 

Static Public Member Functions

static void AddCreator ()
 
- Static Public Member Functions inherited from ROOT::RWebDisplayHandle
static bool CanProduceImages (const std::string &browser="")
 Returns true if image production for specified browser kind is supported If browser not specified - use currently configured browser or try to test existing web browsers.
 
static std::unique_ptr< RWebDisplayHandleDisplay (const RWebDisplayArgs &args)
 Create web display.
 
static bool DisplayUrl (const std::string &url)
 Display provided url in configured web browser.
 
static bool ProduceImage (const std::string &fname, const std::string &json, int width=800, int height=600, const char *batch_file=nullptr)
 Produce image file using JSON data as source Invokes JSROOT drawing functionality in headless browser - Google Chrome or Mozilla Firefox.
 
static bool ProduceImages (const std::string &fname, const std::vector< std::string > &jsons, const std::vector< int > &widths, const std::vector< int > &heights, const char *batch_file=nullptr)
 Produce image file(s) using JSON data as source Invokes JSROOT drawing functionality in headless browser - Google Chrome or Mozilla Firefox.
 

Protected Attributes

RootWebViewfView {nullptr}
 pointer on widget, need to release when handle is destroyed
 

Additional Inherited Members

- Static Protected Member Functions inherited from ROOT::RWebDisplayHandle
static bool CheckIfCanProduceImages (RWebDisplayArgs &args)
 Checks if configured browser can be used for image production.
 
static std::unique_ptr< Creator > & FindCreator (const std::string &name, const std::string &libname="")
 Search for specific browser creator If not found, try to add one.
 
static std::map< std::string, std::unique_ptr< Creator > > & GetMap ()
 Static holder of registered creators of web displays.
 
Inheritance diagram for ROOT::RQt6WebDisplayHandle:
[legend]

Constructor & Destructor Documentation

◆ RQt6WebDisplayHandle()

ROOT::RQt6WebDisplayHandle::RQt6WebDisplayHandle ( const std::string &  url)
inline

Definition at line 215 of file rootqt6.cpp.

◆ ~RQt6WebDisplayHandle()

ROOT::RQt6WebDisplayHandle::~RQt6WebDisplayHandle ( )
inlineoverride

Definition at line 217 of file rootqt6.cpp.

Member Function Documentation

◆ AddCreator()

static void ROOT::RQt6WebDisplayHandle::AddCreator ( )
inlinestatic

Definition at line 234 of file rootqt6.cpp.

◆ Resize()

bool ROOT::RQt6WebDisplayHandle::Resize ( int  ,
int   
)
inlineoverridevirtual

resize web window - if possible

Reimplemented from ROOT::RWebDisplayHandle.

Definition at line 226 of file rootqt6.cpp.

Member Data Documentation

◆ fView

RootWebView* ROOT::RQt6WebDisplayHandle::fView {nullptr}
protected

pointer on widget, need to release when handle is destroyed

Definition at line 71 of file rootqt6.cpp.

  • gui/qt6webdisplay/rootqt6.cpp