10#define ROOT7_RAttrText
17namespace Experimental {
54 std::string family,
style, weight;
56 case 1: family =
"Times New Roman";
style =
"italic";
break;
57 case 2: family =
"Times New Roman"; weight =
"bold";
break;
58 case 3: family =
"Times New Roman";
style =
"italic"; weight =
"bold";
break;
59 case 4: family =
"Arial";
break;
60 case 5: family =
"Arial";
style =
"oblique";
break;
61 case 6: family =
"Arial"; weight =
"bold";
break;
62 case 7: family =
"Arial";
style =
"oblique"; weight =
"bold";
break;
63 case 8: family =
"Courier New";
break;
64 case 9: family =
"Courier New";
style =
"oblique";
break;
65 case 10: family =
"Courier New"; weight =
"bold";
break;
66 case 11: family =
"Courier New";
style =
"oblique"; weight =
"bold";
break;
67 case 12: family =
"Symbol";
break;
68 case 13: family =
"Times New Roman";
break;
69 case 14: family =
"Wingdings";
break;
70 case 15: family =
"Symbol";
style =
"italic";
break;
Base class for all attributes, used with RDrawable.
void Clear()
Clear all respective values from drawable. Only defaults can be used.
Access RColor from drawable attributes.
RColor GetColor() const
Extract RColor for given attribute.
R__ATTR_CLASS(RAttrText, "text")
std::string GetFontFamily() const
RAttrText & SetAlign(int align)
The text alignment.
RAttrText & SetAngle(double angle)
The text angle.
RAttrValue< double > fSize
! text size
RAttrValue< std::string > fFontFamily
! font family, corresponds to css font-familty attribute
RAttrText & SetFontWeight(const std::string &weight)
The text font-weight attribute.
RAttrText & SetFontFamily(const std::string &family)
The text font-family attribute.
RAttrText & SetColor(const RColor &color)
The color of the text.
std::string GetFontStyle() const
RAttrText & SetFontStyle(const std::string &style)
The text font-style attribute.
RAttrText & SetSize(double sz)
The text size.
RAttrColor fColor
! text color
RAttrValue< double > fAngle
! text angle
RAttrValue< std::string > fFontWeight
! font weight, corresponds to css font-weight attribute
RAttrText & SetFont(int font)
Set text font by id as usually handled in the ROOT, set number between 1 and 15.
std::string GetFontWeight() const
RAttrValue< int > fAlign
! text align
RAttrValue< std::string > fFontStyle
! font style, corresponds to css font-style attribute
Template class to access single value from drawable or other attributes.
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...