Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RAttrMargins.hxx
Go to the documentation of this file.
1/*************************************************************************
2 * Copyright (C) 1995-2021, Rene Brun and Fons Rademakers. *
3 * All rights reserved. *
4 * *
5 * For the licensing terms see $ROOTSYS/LICENSE. *
6 * For the list of contributors see $ROOTSYS/README/CREDITS. *
7 *************************************************************************/
8
9#ifndef ROOT7_RAttrMargins
10#define ROOT7_RAttrMargins
11
13#include <ROOT/RAttrValue.hxx>
14#include <ROOT/RPadLength.hxx>
15
16namespace ROOT {
17namespace Experimental {
18
19/** \class RAttrMargins
20\ingroup GpadROOT7
21\author Sergey Linev <s.linev@gsi.de>
22\date 2020-02-20
23\brief A margins attributes. Only relative and pixel coordinates are allowed
24\warning This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback is welcome!
25*/
26
28
30
31public:
32
33 RAttrValue<RPadLength> left{this, "left", 0._normal}; ///<! left margin
34 RAttrValue<RPadLength> right{this, "right", 0._normal}; ///<! right margin
35 RAttrValue<RPadLength> top{this, "top", 0._normal}; ///<! top margin
36 RAttrValue<RPadLength> bottom{this, "bottom", 0._normal}; ///<! bottom margin
37
39 {
40 left = len;
41 right = len;
42 top = len;
43 bottom = len;
44 return *this;
45 }
46};
47
48} // namespace Experimental
49} // namespace ROOT
50
51#endif
Base class for attributes aggregations like lines or fill attributes.
A margins attributes. Only relative and pixel coordinates are allowed.
RAttrValue< RPadLength > right
! right margin
R__ATTR_CLASS(RAttrMargins, "margins")
RAttrValue< RPadLength > bottom
! bottom margin
RAttrValue< RPadLength > top
! top margin
RAttrValue< RPadLength > left
! left margin
RAttrMargins & operator=(const RPadLength &len)
Template class to access single value from drawable or other attributes.
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...