ROOT
v6-28
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
12
#include <
ROOT/RAttrAggregation.hxx
>
13
#include <
ROOT/RAttrValue.hxx
>
14
#include <
ROOT/RAttrFont.hxx
>
15
16
namespace
ROOT
{
17
namespace
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
27
class
RAttrText
:
public
RAttrAggregation
{
28
29
R__ATTR_CLASS
(
RAttrText
,
"text"
);
30
31
public
:
32
33
enum
EAlign
{
34
kLeftBottom
= 11,
35
kLeftCenter
= 12,
36
kLeftTop
= 13,
37
kCenterBottom
= 21,
38
kCenter
= 22,
39
kCenterTop
= 23,
40
kRightBottom
= 31,
41
kRightCenter
= 32,
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
RAttrAggregation.hxx
R__ATTR_CLASS
#define R__ATTR_CLASS(ClassName, dflt_prefix)
Definition
RAttrAggregation.hxx:82
RAttrFont.hxx
RAttrValue.hxx
ROOT::Experimental::RAttrAggregation
Base class for attributes aggregations like lines or fill attributes.
Definition
RAttrAggregation.hxx:26
ROOT::Experimental::RAttrBase::drawable
RDrawable * drawable
Definition
RAttrBase.hxx:38
ROOT::Experimental::RAttrFont
A font attributes, used together with text attributes.
Definition
RAttrFont.hxx:26
ROOT::Experimental::RAttrText
A text attributes.
Definition
RAttrText.hxx:27
ROOT::Experimental::RAttrText::RAttrText
RAttrText(RDrawable *drawable, const char *prefix, double _size)
Definition
RAttrText.hxx:51
ROOT::Experimental::RAttrText::color
RAttrValue< RColor > color
! text color
Definition
RAttrText.hxx:45
ROOT::Experimental::RAttrText::angle
RAttrValue< double > angle
! text angle
Definition
RAttrText.hxx:47
ROOT::Experimental::RAttrText::align
RAttrValue< EAlign > align
! text align
Definition
RAttrText.hxx:48
ROOT::Experimental::RAttrText::font
RAttrFont font
! text font
Definition
RAttrText.hxx:49
ROOT::Experimental::RAttrText::EAlign
EAlign
Definition
RAttrText.hxx:33
ROOT::Experimental::RAttrText::kLeftCenter
@ kLeftCenter
Definition
RAttrText.hxx:35
ROOT::Experimental::RAttrText::kRightTop
@ kRightTop
Definition
RAttrText.hxx:42
ROOT::Experimental::RAttrText::kCenterBottom
@ kCenterBottom
Definition
RAttrText.hxx:37
ROOT::Experimental::RAttrText::kCenter
@ kCenter
Definition
RAttrText.hxx:38
ROOT::Experimental::RAttrText::kRightBottom
@ kRightBottom
Definition
RAttrText.hxx:40
ROOT::Experimental::RAttrText::kLeftTop
@ kLeftTop
Definition
RAttrText.hxx:36
ROOT::Experimental::RAttrText::kRightCenter
@ kRightCenter
Definition
RAttrText.hxx:41
ROOT::Experimental::RAttrText::kLeftBottom
@ kLeftBottom
Definition
RAttrText.hxx:34
ROOT::Experimental::RAttrText::kCenterTop
@ kCenterTop
Definition
RAttrText.hxx:39
ROOT::Experimental::RAttrText::size
RAttrValue< double > size
! text size
Definition
RAttrText.hxx:46
ROOT::Experimental::RAttrValue
Template class to access single value from drawable or other attributes.
Definition
RAttrValue.hxx:26
ROOT::Experimental::RColor::kBlack
static R__DLLEXPORT constexpr RGB_t kBlack
Definition
RColor.hxx:178
ROOT::Experimental::RDrawable
Base class for drawable entities: objects that can be painted on a RPad.
Definition
RDrawable.hxx:108
ROOT
This file contains a specialised ROOT message handler to test for diagnostic in unit tests.
Definition
EExecutionPolicy.hxx:4
graf2d
gpadv7
inc
ROOT
RAttrText.hxx
ROOT v6-28 - Reference Guide Generated on Thu Oct 24 2024 01:49:11 (GVA Time) using Doxygen 1.9.8