Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RAttrFill.hxx
Go to the documentation of this file.
1/*************************************************************************
2 * Copyright (C) 1995-2019, 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
12#include <ROOT/RAttrBase.hxx>
13#include <ROOT/RAttrColor.hxx>
14#include <ROOT/RAttrValue.hxx>
15
16namespace ROOT {
17namespace Experimental {
18
19/** \class RAttrFill
20\ingroup GpadROOT7
21\author Sergey Linev
22\date 2019-09-13
23\brief Drawing fill attributes for different objects.
24\warning This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback is welcome!
25*/
26
27class RAttrFill : public RAttrBase {
28
29 RAttrColor fColor{this, "color"}; ///<! fill color
30 RAttrValue<int> fStyle{this, "style", 1}; ///<! fill style
31
33
34 ///The fill style
35 RAttrFill &SetStyle(int style) { fStyle = style; return *this; }
36 int GetStyle() const { return fStyle; }
37
38 ///The fill color
39 RAttrFill &SetColor(const RColor &color) { fColor = color; return *this; }
40 RColor GetColor() const { return fColor.GetColor(); }
42
43};
44
45} // namespace Experimental
46} // namespace ROOT
47
48#endif
Base class for all attributes, used with RDrawable.
Definition RAttrBase.hxx:31
Access RColor from drawable attributes.
RColor GetColor() const
Extract RColor for given attribute.
Drawing fill attributes for different objects.
Definition RAttrFill.hxx:27
R__ATTR_CLASS(RAttrFill, "fill")
RAttrFill & SetStyle(int style)
The fill style.
Definition RAttrFill.hxx:35
RAttrValue< int > fStyle
! fill style
Definition RAttrFill.hxx:30
RAttrFill & SetColor(const RColor &color)
The fill color.
Definition RAttrFill.hxx:39
RAttrColor fColor
! fill color
Definition RAttrFill.hxx:29
Template class to access single value from drawable or other attributes.
The color class.
Definition RColor.hxx:35
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...
TCanvas * style()
Definition style.C:1