Logo ROOT  
Reference Guide
ROOT::Experimental::ROnFrameDrawable Class Reference

Base class for drawable which can be drawn on frame or on pad.

Introduces "onFrame" and "clipping" attributes. If onFrame = true, one can enable clipping of such drawables. Dedicated for classes like RLine, RText, RBox and similar

Author
Sergey Linev s.lin.nosp@m.ev@g.nosp@m.si.de
Date
2021-06-29
Warning
This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback is welcome!

Definition at line 27 of file ROnFrameDrawable.hxx.

Public Member Functions

virtual ~ROnFrameDrawable ()=default
 
- Public Member Functions inherited from ROOT::Experimental::RDrawable
 RDrawable (const char *csstype)
 
virtual ~RDrawable ()
 
void ClearStyle ()
 
const std::string & GetCssClass () const
 
const char * GetCssType () const
 
const std::string & GetId () const
 
void SetCssClass (const std::string &cl)
 
void SetId (const std::string &id)
 
virtual void UseStyle (const std::shared_ptr< RStyle > &style)
 

Public Attributes

RAttrValue< bool > clipping {this, "clipping", false}
 ! is clipping on when drawn on the frame More...
 
RAttrValue< bool > onFrame {this, "onFrame", false}
 ! is drawn on the frame or not More...
 

Protected Member Functions

 ROnFrameDrawable (const char *type)
 
 ROnFrameDrawable (const ROnFrameDrawable &)=delete
 
ROnFrameDrawableoperator= (const ROnFrameDrawable &)=delete
 
- Protected Member Functions inherited from ROOT::Experimental::RDrawable
 RDrawable (const RDrawable &)=delete
 
virtual void CollectShared (Internal::RIOSharedVector_t &)
 
virtual std::unique_ptr< RDisplayItemDisplay (const RDisplayContext &)
 Creates display item for drawable By default item contains drawable data itself. More...
 
virtual void Execute (const std::string &)
 
RAttrMapGetAttrMap ()
 
const RAttrMapGetAttrMap () const
 
Version_t GetVersion () const
 
virtual bool IsFrameRequired () const
 
bool MatchSelector (const std::string &selector) const
 Preliminary method which checks if drawable matches with given selector Following selector are allowed: "type" or "#id" or ".class_name" Here type is drawable kind like 'rect' or 'pad' id is drawable identifier, specified with RDrawable::SetId() method class_name is drawable class name, specified with RDrawable::SetCssClass() method. More...
 
virtual void OnDisplayItemDestroyed (RDisplayItem *) const
 
RDrawableoperator= (const RDrawable &)=delete
 
virtual void PopulateMenu (RMenuItems &)
 
void SetCssType (const char *csstype)
 
virtual void SetDrawableVersion (Version_t vers)
 

Additional Inherited Members

- Public Types inherited from ROOT::Experimental::RDrawable
using Version_t = uint64_t
 

#include <ROOT/ROnFrameDrawable.hxx>

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

Constructor & Destructor Documentation

◆ ROnFrameDrawable() [1/2]

ROOT::Experimental::ROnFrameDrawable::ROnFrameDrawable ( const ROnFrameDrawable )
protecteddelete

◆ ROnFrameDrawable() [2/2]

ROOT::Experimental::ROnFrameDrawable::ROnFrameDrawable ( const char *  type)
inlineexplicitprotected

Definition at line 32 of file ROnFrameDrawable.hxx.

◆ ~ROnFrameDrawable()

virtual ROOT::Experimental::ROnFrameDrawable::~ROnFrameDrawable ( )
virtualdefault

Member Function Documentation

◆ operator=()

ROnFrameDrawable & ROOT::Experimental::ROnFrameDrawable::operator= ( const ROnFrameDrawable )
protecteddelete

Member Data Documentation

◆ clipping

RAttrValue<bool> ROOT::Experimental::ROnFrameDrawable::clipping {this, "clipping", false}

! is clipping on when drawn on the frame

Definition at line 38 of file ROnFrameDrawable.hxx.

◆ onFrame

RAttrValue<bool> ROOT::Experimental::ROnFrameDrawable::onFrame {this, "onFrame", false}

! is drawn on the frame or not

Definition at line 37 of file ROnFrameDrawable.hxx.


The documentation for this class was generated from the following file: