Logo ROOT   6.18/05
Reference Guide
RAttrLine.hxx
Go to the documentation of this file.
1/// \file ROOT/RAttrLine.hxx
2/// \ingroup Gpad ROOT7
3/// \author Axel Naumann <axel@cern.ch>
4/// \date 2018-10-12
5/// \warning This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback
6/// is welcome!
7
8/*************************************************************************
9 * Copyright (C) 1995-2019, Rene Brun and Fons Rademakers. *
10 * All rights reserved. *
11 * *
12 * For the licensing terms see $ROOTSYS/LICENSE. *
13 * For the list of contributors see $ROOTSYS/README/CREDITS. *
14 *************************************************************************/
15
16#ifndef ROOT7_RAttrLine
17#define ROOT7_RAttrLine
18
19#include <ROOT/RDrawingAttr.hxx>
20#include <ROOT/RColor.hxx>
21
22namespace ROOT {
23namespace Experimental {
24
25/** class ROOT::Experimental::RAttrLine
26 Drawing attributes for RLine.
27 */
29public:
31
32 /// The color of the line.
33 RAttrLine &SetColor(const RColor& col) { Set("color", col); return *this; }
34 RColor GetColor() const { return Get<RColor>("color"); }
35
36 ///The width of the line.
37 RAttrLine &SetWidth(float width) { Set("width", width); return *this; }
38 float GetWidth() const { return Get<float>("width"); }
39
40 ///The style of the line.
41 RAttrLine &SetStyle(int style) { Set("style", style); return *this; }
42 int GetStyle() const { return Get<int>("style"); }
43};
44
45} // namespace Experimental
46} // namespace ROOT
47
48#endif
include TDocParser_001 C image html pict1_TDocParser_001 png width
Definition: TDocParser.cxx:121
class ROOT::Experimental::RAttrLine Drawing attributes for RLine.
Definition: RAttrLine.hxx:28
RAttrLine & SetColor(const RColor &col)
The color of the line.
Definition: RAttrLine.hxx:33
RAttrLine & SetWidth(float width)
The width of the line.
Definition: RAttrLine.hxx:37
RAttrLine & SetStyle(int style)
The style of the line.
Definition: RAttrLine.hxx:41
A color: Red|Green|Blue|Alpha, or a position in a RPalette.
Definition: RColor.hxx:28
A collection of graphics attributes, for instance everything describing a line: color,...
RDrawingAttrBase()=default
Construct a default, unnamed, unconnected attribute.
void Set(const Name &name, const T &val)
Insert or update the attribute value identified by name to the given value.
Namespace for new ROOT classes and functions.
Definition: StringConv.hxx:21
TCanvas * style()
Definition: style.C:1