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

A margins attributes. Only relative and pixel coordinates are allowed.

Author
Sergey Linev s.lin.nosp@m.ev@g.nosp@m.si.de
Date
2020-02-20
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 RAttrMargins.hxx.

Public Member Functions

RPadLength GetBottom () const
 
RPadLength GetLeft () const
 
RPadLength GetRight () const
 
RPadLength GetTop () const
 
RAttrMarginsSetBottom (const RPadLength &len)
 
RAttrMarginsSetLeft (const RPadLength &len)
 
RAttrMarginsSetRight (const RPadLength &len)
 
RAttrMarginsSetTop (const RPadLength &len)
 
- Public Member Functions inherited from ROOT::Experimental::RAttrBase
 RAttrBase ()=default
 
virtual ~RAttrBase ()=default
 

Private Member Functions

 R__ATTR_CLASS (RAttrMargins, "margin")
 

Private Attributes

RAttrValue< RPadLengthfBottom {this, "bottom", 0._normal}
 
RAttrValue< RPadLengthfLeft {this, "left", 0._normal}
 
RAttrValue< RPadLengthfRight {this, "right", 0._normal}
 
RAttrValue< RPadLengthfTop {this, "top", 0._normal}
 

Additional Inherited Members

- 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.
 
const Val_t AccessValue (const std::string &name, bool use_style=true) const
 Search value with given name in attributes.
 
void AssignDrawable (RDrawable *drawable, const std::string &prefix)
 Return value from attributes container - no style or defaults are used.
 
void AssignParent (RAttrBase *parent, const std::string &prefix)
 Assign parent object for this RAttrBase.
 
void Clear ()
 Clear all respective values from drawable. Only defaults can be used.
 
void ClearValue (const std::string &name)
 Clear value if any with specified name.
 
virtual RAttrMap CollectDefaults () const
 Collect all attributes in derived class Works only if such class has dictionary.
 
void CopyTo (RAttrBase &tgt, bool use_style=true) const
 Copy attributes into target object.
 
bool CopyValue (const std::string &name, const RAttrMap::Value_t &value, bool check_type=true)
 Copy attributes from other object.
 
Rec_t EnsureAttr (const std::string &name)
 Ensure attribute with give name exists - creates container for attributes if required.
 
template<typename RET_TYPE , typename MATCH_TYPE = void>
auto Eval (const std::string &name, bool use_dflts=true) const
 Evaluate attribute value.
 
virtual const RAttrMapGetDefaults () const
 Return default values for attributes, empty for base class.
 
const std::string & GetPrefix () const
 
template<typename 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.
 
virtual bool IsValue () const
 
bool IsValueEqual (const std::string &name, const RAttrMap::Value_t &value, bool use_style=false) const
 Check if provided value equal to attribute in the map.
 
void MoveTo (RAttrBase &tgt)
 Move all fields into target object.
 
RAttrBaseoperator= (const RAttrBase &src)
 
void SetNoValue (const std::string &name)
 Set <NoValue> for attribute.
 
void SetValue (const std::string &name, bool value)
 Set boolean value.
 
void SetValue (const std::string &name, const RPadLength &value)
 Set PadLength value.
 
void SetValue (const std::string &name, const std::string &value)
 Set string value.
 
void SetValue (const std::string &name, double value)
 Set double value.
 
void SetValue (const std::string &name, int value)
 Set integer value.
 

#include <ROOT/RAttrMargins.hxx>

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

Member Function Documentation

◆ GetBottom()

RPadLength ROOT::Experimental::RAttrMargins::GetBottom ( ) const
inline

Definition at line 48 of file RAttrMargins.hxx.

◆ GetLeft()

RPadLength ROOT::Experimental::RAttrMargins::GetLeft ( ) const
inline

Definition at line 39 of file RAttrMargins.hxx.

◆ GetRight()

RPadLength ROOT::Experimental::RAttrMargins::GetRight ( ) const
inline

Definition at line 42 of file RAttrMargins.hxx.

◆ GetTop()

RPadLength ROOT::Experimental::RAttrMargins::GetTop ( ) const
inline

Definition at line 45 of file RAttrMargins.hxx.

◆ R__ATTR_CLASS()

ROOT::Experimental::RAttrMargins::R__ATTR_CLASS ( RAttrMargins  ,
"margin"   
)
private

◆ SetBottom()

RAttrMargins & ROOT::Experimental::RAttrMargins::SetBottom ( const RPadLength len)
inline

Definition at line 47 of file RAttrMargins.hxx.

◆ SetLeft()

RAttrMargins & ROOT::Experimental::RAttrMargins::SetLeft ( const RPadLength len)
inline

Definition at line 38 of file RAttrMargins.hxx.

◆ SetRight()

RAttrMargins & ROOT::Experimental::RAttrMargins::SetRight ( const RPadLength len)
inline

Definition at line 41 of file RAttrMargins.hxx.

◆ SetTop()

RAttrMargins & ROOT::Experimental::RAttrMargins::SetTop ( const RPadLength len)
inline

Definition at line 44 of file RAttrMargins.hxx.

Member Data Documentation

◆ fBottom

RAttrValue<RPadLength> ROOT::Experimental::RAttrMargins::fBottom {this, "bottom", 0._normal}
private

Definition at line 32 of file RAttrMargins.hxx.

◆ fLeft

RAttrValue<RPadLength> ROOT::Experimental::RAttrMargins::fLeft {this, "left", 0._normal}
private

Definition at line 29 of file RAttrMargins.hxx.

◆ fRight

RAttrValue<RPadLength> ROOT::Experimental::RAttrMargins::fRight {this, "right", 0._normal}
private

Definition at line 30 of file RAttrMargins.hxx.

◆ fTop

RAttrValue<RPadLength> ROOT::Experimental::RAttrMargins::fTop {this, "top", 0._normal}
private

Definition at line 31 of file RAttrMargins.hxx.

Libraries for ROOT::Experimental::RAttrMargins:

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