Logo ROOT  
Reference Guide
RPave.hxx
Go to the documentation of this file.
1/*************************************************************************
2 * Copyright (C) 1995-2020, 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_RPave
10#define ROOT7_RPave
11
12#include <ROOT/RDrawable.hxx>
13#include <ROOT/RAttrText.hxx>
14#include <ROOT/RAttrBorder.hxx>
15#include <ROOT/RAttrFill.hxx>
16#include <ROOT/RAttrValue.hxx>
17#include <ROOT/RPadPos.hxx>
18#include <ROOT/RPadExtent.hxx>
19
20namespace ROOT {
21namespace Experimental {
22
23
24/** \class ROOT::Experimental::RPave
25\ingroup GrafROOT7
26\brief Base class for paves with text, statistic, legends, placed relative to RFrame position and adjustable height
27\author Sergey Linev <s.linev@gsi.de>
28\date 2020-06-18
29\warning This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback is welcome!
30*/
31
32class RPave : public RDrawable {
33
34protected:
35
36 RPave(const char *csstype) : RDrawable(csstype) {}
37
38public:
39
40 enum ECorner {
44 kBottomRight = 4
45 };
46
47 RAttrBorder border{this, "border"}; ///<! border attributes
48 RAttrFill fill{this, "fill"}; ///<! fill attributes
49 RAttrText text{this, "text"}; ///<! text attributes
50 RAttrValue<RPadLength> width{this, "width", 0.4}; ///<! pave width
51 RAttrValue<RPadLength> height{this, "height", 0.2}; ///<! pave height
52 RAttrValue<bool> onFrame{this, "onFrame", true}; ///<! is pave assigned to frame (true) or to pad corner (false)
53 RAttrValue<ECorner> corner{this, "corner", kTopRight}; ///<! frame/pad corner to which pave is bound
54 RAttrValue<RPadLength> offsetX{this, "offsetX", 0.02}; ///<! offset X relative to selected frame or pad corner
55 RAttrValue<RPadLength> offsetY{this, "offsetY", 0.02}; ///<! offset Y relative to selected frame or pad corner
56
57 RPave() : RPave("pave") {}
58
59};
60
61} // namespace Experimental
62} // namespace ROOT
63
64#endif
Drawing line attributes for different objects.
Definition: RAttrBorder.hxx:26
Drawing fill attributes for different objects.
Definition: RAttrFill.hxx:26
A text attributes.
Definition: RAttrText.hxx:27
Template class to access single value from drawable or other attributes.
Definition: RAttrValue.hxx:26
Base class for drawable entities: objects that can be painted on a RPad.
Definition: RDrawable.hxx:108
Base class for paves with text, statistic, legends, placed relative to RFrame position and adjustable...
Definition: RPave.hxx:32
RAttrFill fill
! fill attributes
Definition: RPave.hxx:48
RAttrValue< bool > onFrame
! is pave assigned to frame (true) or to pad corner (false)
Definition: RPave.hxx:52
RAttrValue< RPadLength > offsetX
! offset X relative to selected frame or pad corner
Definition: RPave.hxx:54
RPave(const char *csstype)
Definition: RPave.hxx:36
RAttrText text
! text attributes
Definition: RPave.hxx:49
RAttrValue< RPadLength > offsetY
! offset Y relative to selected frame or pad corner
Definition: RPave.hxx:55
RAttrValue< ECorner > corner
! frame/pad corner to which pave is bound
Definition: RPave.hxx:53
RAttrBorder border
! border attributes
Definition: RPave.hxx:47
RAttrValue< RPadLength > height
! pave height
Definition: RPave.hxx:51
RAttrValue< RPadLength > width
! pave width
Definition: RPave.hxx:50
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...
Definition: RNumpyDS.hxx:30