Logo ROOT  
Reference Guide
ROOT::Experimental::RAttrBox Class Reference

Drawing attributes for a box: rectangular lines with size and position.

Author
Axel Naumann axel@.nosp@m.cern.nosp@m..ch
Date
2018-10-17
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 RAttrBox.hxx.

Private Member Functions

RAttrLine & AttrBorder ()
 
RAttrFill & AttrFill ()
 
const RAttrLine & GetAttrBorder () const
 
const RAttrFill & GetAttrFill () const
 
 R__ATTR_CLASS (RAttrBox, "box_", AddDefaults(fAttrBorder).AddDefaults(fAttrFill))
 
RAttrBox & SetAttrBorder (const RAttrLine &border)
 
RAttrBox & SetAttrFill (const RAttrFill &fill)
 

Private Attributes

RAttrLine fAttrBorder {this, "border_"}
 ! More...
 
RAttrFill fAttrFill {this, "fill_"}
 ! More...
 

Additional Inherited Members

- Public Member Functions inherited from ROOT::Experimental::RAttrBase
 RAttrBase ()=default
 
virtual ~RAttrBase ()=default
 
- Protected Member Functions inherited from ROOT::Experimental::RAttrBase
 RAttrBase (const RAttrBase &src)
 
 RAttrBase (RAttrBase *parent, const std::string &prefix)
 
 RAttrBase (RDrawable *drawable, const std::string &prefix)
 
const Rec_t AccessAttr (const std::string &name) const
 Find attributes container and full-qualified name for value. More...
 
const Val_t AccessValue (const std::string &name, bool use_style=true) const
 
void AssignDrawable (RDrawable *drawable, const std::string &prefix)
 Return value from attributes container - no style or defaults are used. More...
 
void AssignParent (RAttrBase *parent, const std::string &prefix)
 
void Clear ()
 Clear all respective values from drawable. More...
 
void ClearValue (const std::string &name)
 
void CopyTo (RAttrBase &tgt, bool use_style=true) const
 Copy attributes into target object. More...
 
bool CopyValue (const std::string &name, const RAttrMap::Value_t &value, bool check_type=true)
 Copy attributes from other object. More...
 
Rec_t EnsureAttr (const std::string &name)
 Ensure attribute with give name exists - creates container for attributes if required. More...
 
template<typename RET_TYPE , typename MATCH_TYPE = void>
auto Eval (const std::string &name, bool use_dflts=true) const
 Evaluate attribute value. More...
 
virtual const RAttrMap & GetDefaults () const
 Return default values for attributes, empty for base class. More...
 
const std::string & GetPrefix () const
 
template<typename T >
T GetValue (const std::string &name) const
 
template<typename T = void>
bool HasValue (const std::string &name, bool check_defaults=false) const
 
bool IsSame (const RAttrBase &src, bool use_style=true) const
 Check if all values which are evaluated in this object are exactly the same as in tgt object. More...
 
bool IsValueEqual (const std::string &name, const RAttrMap::Value_t &value, bool use_style=false) const
 Copy attributes into target object. More...
 
RAttrBase & operator= (const RAttrBase &src)
 
void SetValue (const std::string &name, bool value)
 
void SetValue (const std::string &name, const std::string &value)
 
void SetValue (const std::string &name, double value)
 
void SetValue (const std::string &name, int value)
 

#include <ROOT/RAttrBox.hxx>

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

Member Function Documentation

◆ AttrBorder()

RAttrLine & ROOT::Experimental::RAttrBox::AttrBorder ( )
inlineprivate

Definition at line 36 of file RAttrBox.hxx.

◆ AttrFill()

RAttrFill & ROOT::Experimental::RAttrBox::AttrFill ( )
inlineprivate

Definition at line 40 of file RAttrBox.hxx.

◆ GetAttrBorder()

const RAttrLine & ROOT::Experimental::RAttrBox::GetAttrBorder ( ) const
inlineprivate

Definition at line 34 of file RAttrBox.hxx.

◆ GetAttrFill()

const RAttrFill & ROOT::Experimental::RAttrBox::GetAttrFill ( ) const
inlineprivate

Definition at line 38 of file RAttrBox.hxx.

◆ R__ATTR_CLASS()

ROOT::Experimental::RAttrBox::R__ATTR_CLASS ( RAttrBox  ,
"box_"  ,
AddDefaults(fAttrBorder).AddDefaults(fAttrFill)   
)
private

◆ SetAttrBorder()

RAttrBox & ROOT::Experimental::RAttrBox::SetAttrBorder ( const RAttrLine &  border)
inlineprivate

Definition at line 35 of file RAttrBox.hxx.

◆ SetAttrFill()

RAttrBox & ROOT::Experimental::RAttrBox::SetAttrFill ( const RAttrFill &  fill)
inlineprivate

Definition at line 39 of file RAttrBox.hxx.

Member Data Documentation

◆ fAttrBorder

RAttrLine ROOT::Experimental::RAttrBox::fAttrBorder {this, "border_"}
private

!

Definition at line 29 of file RAttrBox.hxx.

◆ fAttrFill

RAttrFill ROOT::Experimental::RAttrBox::fAttrFill {this, "fill_"}
private

!

Definition at line 30 of file RAttrBox.hxx.

Libraries for ROOT::Experimental::RAttrBox:
[legend]

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