Logo ROOT  
Reference Guide
RAttrFill.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_RAttrFill
10#define ROOT7_RAttrFill
11
13#include <ROOT/RAttrValue.hxx>
14
15namespace ROOT {
16namespace Experimental {
17
18/** \class RAttrFill
19\ingroup GpadROOT7
20\author Sergey Linev
21\date 2019-09-13
22\brief Drawing fill attributes for different objects.
23\warning This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback is welcome!
24*/
25
27
29
30public:
31
32 enum EStyle {
34 kNone = 0,
35 kSolid = 1001,
36 k3001 = 3001, k3002 = 3002, k3003 = 3003, k3004 = 3004, k3005 = 3005,
37 k3006 = 3006, k3007 = 3007, k3008 = 3008, k3009 = 3009, k3010 = 3010,
38 k3011 = 3011, k3012 = 3012, k3013 = 3013, k3014 = 3014, k3015 = 3015,
39 k3016 = 3016, k3017 = 3017, k3018 = 3018, k3019 = 3019, k3020 = 3020,
40 k3021 = 3021, k3022 = 3022, k3023 = 3023, k3024 = 3024, k3025 = 3025
41 };
42
43 RAttrValue<RColor> color{this, "color", RColor::kBlack}; ///<! fill color
44 RAttrValue<EStyle> style{this, "style", kHollow}; ///<! fill style
45
46 RAttrFill(RColor _color, EStyle _style) : RAttrFill()
47 {
48 color = _color;
49 style = _style;
50 }
51};
52
53} // namespace Experimental
54} // namespace ROOT
55
56#endif
Base class for attributes aggregations like lines or fill attributes.
Drawing fill attributes for different objects.
Definition: RAttrFill.hxx:26
RAttrFill(RColor _color, EStyle _style)
Definition: RAttrFill.hxx:46
R__ATTR_CLASS(RAttrFill, "fill")
RAttrValue< EStyle > style
! fill style
Definition: RAttrFill.hxx:44
RAttrValue< RColor > color
! fill color
Definition: RAttrFill.hxx:43
Template class to access single value from drawable or other attributes.
Definition: RAttrValue.hxx:26
The color class.
Definition: RColor.hxx:33
static constexpr R__DLLEXPORT RGB_t kBlack
Definition: RColor.hxx:178
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...