16 #ifndef ROOT7_TVirtualCanvasPainter 17 #define ROOT7_TVirtualCanvasPainter 25 namespace Experimental {
43 virtual std::unique_ptr<TVirtualCanvasPainter>
Create(
const TCanvas &canv)
const = 0;
64 virtual void NewDisplay(
const std::string &where) = 0;
68 virtual bool AddPanel(std::shared_ptr<TWebWindow>) {
return false; }
71 static std::unique_ptr<TVirtualCanvasPainter>
Create(
const TCanvas &canv);
77 #endif // ROOT7_TVirtualCanvasPainter virtual std::unique_ptr< TVirtualCanvasPainter > Create(const TCanvas &canv) const =0
Abstract interface to create a TVirtualCanvasPainter implementation.
virtual bool IsCanvasModified(uint64_t) const =0
return true if canvas modified since last painting
Namespace for new ROOT classes and functions.
A window's topmost TPad.
virtual void DoWhenReady(const std::string &, const std::string &, bool, CanvasCallback_t)=0
perform special action when drawing is ready
virtual ~TVirtualCanvasPainter()
Default destructor.
static std::unique_ptr< Generator > & GetGenerator()
generator getter
virtual void NewDisplay(const std::string &where)=0
virtual ~Generator()
Default destructor.
Abstract interface for painting a canvas.
Abstract interface for object painting on the pad/canvas.
virtual bool AddPanel(std::shared_ptr< TWebWindow >)
virtual void CanvasUpdated(uint64_t, bool, CanvasCallback_t)=0
indicate that canvas changed, provides current version of the canvas
virtual int NumDisplays() const =0
std::function< void(bool)> CanvasCallback_t