Warning, file /include/root/ROOT/RAttrText.hxx was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009 #ifndef ROOT7_RAttrText
0010 #define ROOT7_RAttrText
0011
0012 #include <ROOT/RAttrAggregation.hxx>
0013 #include <ROOT/RAttrValue.hxx>
0014 #include <ROOT/RAttrFont.hxx>
0015
0016 namespace ROOT {
0017 namespace Experimental {
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027 class RAttrText : public RAttrAggregation {
0028
0029 R__ATTR_CLASS(RAttrText, "text");
0030
0031 public:
0032
0033 enum EAlign {
0034 kLeftBottom = 11,
0035 kLeftCenter = 12,
0036 kLeftTop = 13,
0037 kCenterBottom = 21,
0038 kCenter = 22,
0039 kCenterTop = 23,
0040 kRightBottom = 31,
0041 kRightCenter = 32,
0042 kRightTop = 33
0043 };
0044
0045 RAttrValue<RColor> color{this, "color", RColor::kBlack};
0046 RAttrValue<double> size{this, "size", 12.};
0047 RAttrValue<double> angle{this, "angle", 0.};
0048 RAttrValue<EAlign> align{this, "align", kCenter};
0049 RAttrFont font{this, "font"};
0050
0051 RAttrText(RDrawable *drawable, const char *prefix, double _size) : RAttrAggregation(drawable, prefix), size(this, "size", _size) {}
0052 };
0053
0054 }
0055 }
0056
0057 #endif