Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RAttrText.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_RAttrText
10#define ROOT7_RAttrText
11
13#include <ROOT/RAttrValue.hxx>
14#include <ROOT/RAttrFont.hxx>
15
16namespace ROOT {
17namespace Experimental {
18
19/** \class RAttrText
20\ingroup GpadROOT7
21\brief A text attributes.
22\authors Axel Naumann <axel@cern.ch> Sergey Linev <s.linev@gsi.de>
23\date 2018-10-12
24\warning This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback is welcome!
25*/
26
28
30
31public:
32
33 enum EAlign {
38 kCenter = 22,
42 kRightTop = 33
43 };
44
45 RAttrValue<RColor> color{this, "color", RColor::kBlack}; ///<! text color
46 RAttrValue<double> size{this, "size", 12.}; ///<! text size
47 RAttrValue<double> angle{this, "angle", 0.}; ///<! text angle
48 RAttrValue<EAlign> align{this, "align", kCenter}; ///<! text align
49 RAttrFont font{this, "font"}; ///<! text font
50
51 RAttrText(RDrawable *drawable, const char *prefix, double _size) : RAttrAggregation(drawable, prefix), size(this, "size", _size) {}
52};
53
54} // namespace Experimental
55} // namespace ROOT
56
57#endif
#define R__ATTR_CLASS(ClassName, dflt_prefix)
Base class for attributes aggregations like lines or fill attributes.
A font attributes, used together with text attributes.
Definition RAttrFont.hxx:26
RAttrText(RDrawable *drawable, const char *prefix, double _size)
Definition RAttrText.hxx:51
RAttrValue< RColor > color
! text color
Definition RAttrText.hxx:45
RAttrValue< double > angle
! text angle
Definition RAttrText.hxx:47
RAttrValue< EAlign > align
! text align
Definition RAttrText.hxx:48
RAttrFont font
! text font
Definition RAttrText.hxx:49
RAttrValue< double > size
! text size
Definition RAttrText.hxx:46
Template class to access single value from drawable or other attributes.
static R__DLLEXPORT constexpr RGB_t kBlack
Definition RColor.hxx:178
Base class for drawable entities: objects that can be painted on a RPad.
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...