Logo ROOT  
Reference Guide
ROOT::Experimental::RAttrMargins Class Reference

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

Sergey Linev s.lin.nosp@m.ev@g.nosp@m.si.de
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

RAttrMarginsoperator= (const RPadLength &len)
- Public Member Functions inherited from ROOT::Experimental::RAttrAggregation
 RAttrAggregation ()=default
 RAttrAggregation (const RAttrAggregation &src)
 RAttrAggregation (RAttrBase *parent, const char *prefix=nullptr)
 RAttrAggregation (RDrawable *drawable, const char *prefix=nullptr)
void Clear () override
 Clear all respective values from drawable. Only defaults can be used. More...
RAttrAggregationoperator= (const RAttrAggregation &src)
- Public Member Functions inherited from ROOT::Experimental::RAttrBase
 RAttrBase ()=default
virtual ~RAttrBase ()
virtual void Clear ()=0

Public Attributes

RAttrValue< RPadLengthbottom {this, "bottom", 0._normal}
 ! bottom margin More...
RAttrValue< RPadLengthleft {this, "left", 0._normal}
 ! left margin More...
RAttrValue< RPadLengthright {this, "right", 0._normal}
 ! right margin More...
RAttrValue< RPadLengthtop {this, "top", 0._normal}
 ! top margin More...

Private Member Functions

 R__ATTR_CLASS (RAttrMargins, "margins")

Additional Inherited Members

- Protected Member Functions inherited from ROOT::Experimental::RAttrAggregation
RAttrMap CollectDefaults () const override
 Collect all attributes in derived class Works only if such class has dictionary. More...
void CopyTo (RAttrAggregation &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...
virtual const RAttrMapGetDefaults () const
 Return default values for attributes, empty for base class. More...
bool IsAggregation () const final
bool IsSame (const RAttrAggregation &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
 Check if provided value equal to attribute in the map. More...
- Protected Member Functions inherited from ROOT::Experimental::RAttrBase
 RAttrBase (const char *prefix)
 RAttrBase (RAttrBase *parent, const char *prefix=nullptr)
 RAttrBase (RDrawable *drawable, const char *prefix=nullptr)
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
 Search value with given name in attributes. More...
void ClearValue (const std::string &name)
 Clear value if any with specified name. More...
virtual RAttrMap CollectDefaults () const =0
Rec_t EnsureAttr (const std::string &name)
 Ensure attribute with give name exists - creates container for attributes if required. More...
RDrawableGetDrawable () const
RAttrMapGetOwnAttr () const
RAttrBaseGetParent () const
const char * GetPrefix () const
virtual bool IsAggregation () const
void MoveTo (RAttrBase &tgt)
 Move all fields into target object. More...
void SetNoValue (const std::string &name)
 Set <NoValue> for attribute. More...

#include <ROOT/RAttrMargins.hxx>

Inheritance diagram for ROOT::Experimental::RAttrMargins:

Member Function Documentation

◆ operator=()

RAttrMargins & ROOT::Experimental::RAttrMargins::operator= ( const RPadLength len)

Definition at line 38 of file RAttrMargins.hxx.


ROOT::Experimental::RAttrMargins::R__ATTR_CLASS ( RAttrMargins  ,

Member Data Documentation

◆ bottom

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

! bottom margin

Definition at line 36 of file RAttrMargins.hxx.

◆ left

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

! left margin

Definition at line 33 of file RAttrMargins.hxx.

◆ right

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

! right margin

Definition at line 34 of file RAttrMargins.hxx.

◆ top

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

! top margin

Definition at line 35 of file RAttrMargins.hxx.

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