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

A color palette draw near the frame.

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

Definition at line 32 of file RPaletteDrawable.hxx.

Public Member Functions

 RPaletteDrawable (const RPalette &palette)
 
 RPaletteDrawable (const RPalette &palette, bool _visible)
 
const RPaletteGetPalette () const
 
- 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< RPadLengthmargin {this, "margin", 0.02_normal}
 ! horizontal margin to frame
 
RAttrValue< boolvisible {this, "visible", true}
 ! visibility flag
 
RAttrValue< RPadLengthwidth {this, "width", 0.05_normal}
 ! width of palette
 

Protected Member Functions

 RPaletteDrawable ()
 
bool IsFrameRequired () const final
 
- 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.
 
virtual void Execute (const std::string &)
 
RAttrMapGetAttrMap ()
 
const RAttrMapGetAttrMap () const
 
Version_t GetVersion () 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.
 
virtual void OnDisplayItemDestroyed (RDisplayItem *) const
 
RDrawableoperator= (const RDrawable &)=delete
 
virtual void PopulateMenu (RMenuItems &)
 
void SetCssType (const char *csstype)
 
virtual void SetDrawableVersion (Version_t vers)
 

Private Attributes

RPalette fPalette
 color palette to draw
 

Additional Inherited Members

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

#include <ROOT/RPaletteDrawable.hxx>

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

Constructor & Destructor Documentation

◆ RPaletteDrawable() [1/3]

ROOT::Experimental::RPaletteDrawable::RPaletteDrawable ( )
inlineprotected

Definition at line 40 of file RPaletteDrawable.hxx.

◆ RPaletteDrawable() [2/3]

ROOT::Experimental::RPaletteDrawable::RPaletteDrawable ( const RPalette palette)
inline

Definition at line 48 of file RPaletteDrawable.hxx.

◆ RPaletteDrawable() [3/3]

ROOT::Experimental::RPaletteDrawable::RPaletteDrawable ( const RPalette palette,
bool  _visible 
)
inline

Definition at line 49 of file RPaletteDrawable.hxx.

Member Function Documentation

◆ GetPalette()

const RPalette & ROOT::Experimental::RPaletteDrawable::GetPalette ( ) const
inline

Definition at line 50 of file RPaletteDrawable.hxx.

◆ IsFrameRequired()

bool ROOT::Experimental::RPaletteDrawable::IsFrameRequired ( ) const
inlinefinalprotectedvirtual

Reimplemented from ROOT::Experimental::RDrawable.

Definition at line 38 of file RPaletteDrawable.hxx.

Member Data Documentation

◆ fPalette

RPalette ROOT::Experimental::RPaletteDrawable::fPalette
private

color palette to draw

Definition at line 34 of file RPaletteDrawable.hxx.

◆ margin

RAttrValue<RPadLength> ROOT::Experimental::RPaletteDrawable::margin {this, "margin", 0.02_normal}

! horizontal margin to frame

Definition at line 45 of file RPaletteDrawable.hxx.

◆ visible

RAttrValue<bool> ROOT::Experimental::RPaletteDrawable::visible {this, "visible", true}

! visibility flag

Definition at line 44 of file RPaletteDrawable.hxx.

◆ width

RAttrValue<RPadLength> ROOT::Experimental::RPaletteDrawable::width {this, "width", 0.05_normal}

! width of palette

Definition at line 46 of file RPaletteDrawable.hxx.

Libraries for ROOT::Experimental::RPaletteDrawable:

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