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
#define R__ATTR_CLASS(ClassName, dflt_prefix)
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t UChar_t len
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
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...