Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
RAttrBox.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_RAttrBox
10 #define ROOT7_RAttrBox
11 
12 #include <ROOT/RAttrBase.hxx>
13 #include <ROOT/RAttrLine.hxx>
14 #include <ROOT/RAttrFill.hxx>
15 
16 namespace ROOT {
17 namespace Experimental {
18 
19 /** \class RAttrBox
20 \ingroup GpadROOT7
21 \author Axel Naumann <axel@cern.ch>
22 \date 2018-10-17
23 \brief Drawing attributes for a box: rectangular lines with size and position.
24 \warning This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback is welcome!
25 */
26 
27 class RAttrBox : public RAttrBase {
28 
29  RAttrLine fAttrBorder{this, "border_"}; ///<!
30  RAttrFill fAttrFill{this, "fill_"}; ///<!
31 
32  R__ATTR_CLASS(RAttrBox, "box_", AddDefaults(fAttrBorder).AddDefaults(fAttrFill));
33 
34  const RAttrLine &GetAttrBorder() const { return fAttrBorder; }
35  RAttrBox &SetAttrBorder(const RAttrLine &border) { fAttrBorder = border; return *this; }
36  RAttrLine &AttrBorder() { return fAttrBorder; }
37 
38  const RAttrFill &GetAttrFill() const { return fAttrFill; }
39  RAttrBox &SetAttrFill(const RAttrFill &fill) { fAttrFill = fill; return *this; }
40  RAttrFill &AttrFill() { return fAttrFill; }
41 };
42 
43 } // namespace Experimental
44 } // namespace ROOT
45 
46 #endif