Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::Experimental::RAttrText Class Reference

A text attributes.

Authors
Axel Naumann axel@.nosp@m.cern.nosp@m..ch Sergey Linev s.lin.nosp@m.ev@g.nosp@m.si.de
Date
2018-10-12
Warning
This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback is welcome!

Definition at line 27 of file RAttrText.hxx.

Private Member Functions

RAttrColorAttrColor ()
 
int GetAlign () const
 
double GetAngle () const
 
RColor GetColor () const
 
std::string GetFontFamily () const
 
std::string GetFontStyle () const
 
std::string GetFontWeight () const
 
double GetSize () const
 
 R__ATTR_CLASS (RAttrText, "text")
 
RAttrTextSetAlign (int align)
 The text alignment.
 
RAttrTextSetAngle (double angle)
 The text angle.
 
RAttrTextSetColor (const RColor &color)
 The color of the text.
 
RAttrTextSetFont (int font)
 Set text font by id as usually handled in the ROOT, set number between 1 and 15.
 
RAttrTextSetFontFamily (const std::string &family)
 The text font-family attribute.
 
RAttrTextSetFontStyle (const std::string &style)
 The text font-style attribute.
 
RAttrTextSetFontWeight (const std::string &weight)
 The text font-weight attribute.
 
RAttrTextSetSize (double sz)
 The text size.
 

Private Attributes

RAttrValue< intfAlign {this, "align", 22}
 ! text align
 
RAttrValue< doublefAngle {this, "angle", 0.}
 ! text angle
 
RAttrColor fColor {this, "color"}
 ! text color
 
RAttrValue< std::string > fFontFamily {this, "font_familty"}
 ! font family, corresponds to css font-familty attribute
 
RAttrValue< std::string > fFontStyle {this, "font_style"}
 ! font style, corresponds to css font-style attribute
 
RAttrValue< std::string > fFontWeight {this, "font_weight"}
 ! font weight, corresponds to css font-weight attribute
 
RAttrValue< doublefSize {this, "size", 12.}
 ! text size
 

Additional Inherited Members

- Public Member Functions inherited from ROOT::Experimental::RAttrBase
 RAttrBase ()=default
 
virtual ~RAttrBase ()=default
 
- Protected Member Functions inherited from ROOT::Experimental::RAttrBase
 RAttrBase (const RAttrBase &src)
 
 RAttrBase (RAttrBase *parent, const std::string &prefix)
 
 RAttrBase (RDrawable *drawable, const std::string &prefix)
 
const Rec_t AccessAttr (const std::string &name) const
 Find attributes container and full-qualified name for value.
 
const Val_t AccessValue (const std::string &name, bool use_style=true) const
 Search value with given name in attributes.
 
void AssignDrawable (RDrawable *drawable, const std::string &prefix)
 Return value from attributes container - no style or defaults are used.
 
void AssignParent (RAttrBase *parent, const std::string &prefix)
 Assign parent object for this RAttrBase.
 
void Clear ()
 Clear all respective values from drawable. Only defaults can be used.
 
void ClearValue (const std::string &name)
 Clear value if any with specified name.
 
virtual RAttrMap CollectDefaults () const
 Collect all attributes in derived class Works only if such class has dictionary.
 
void CopyTo (RAttrBase &tgt, bool use_style=true) const
 Copy attributes into target object.
 
bool CopyValue (const std::string &name, const RAttrMap::Value_t &value, bool check_type=true)
 Copy attributes from other object.
 
Rec_t EnsureAttr (const std::string &name)
 Ensure attribute with give name exists - creates container for attributes if required.
 
template<typename RET_TYPE , typename MATCH_TYPE = void>
auto Eval (const std::string &name, bool use_dflts=true) const
 Evaluate attribute value.
 
virtual const RAttrMapGetDefaults () const
 Return default values for attributes, empty for base class.
 
const std::string & GetPrefix () const
 
template<typename T >
GetValue (const std::string &name) const
 
template<typename T = void>
bool HasValue (const std::string &name, bool check_defaults=false) const
 
bool IsSame (const RAttrBase &src, bool use_style=true) const
 Check if all values which are evaluated in this object are exactly the same as in tgt object.
 
virtual bool IsValue () const
 
bool IsValueEqual (const std::string &name, const RAttrMap::Value_t &value, bool use_style=false) const
 Check if provided value equal to attribute in the map.
 
void MoveTo (RAttrBase &tgt)
 Move all fields into target object.
 
RAttrBaseoperator= (const RAttrBase &src)
 
void SetNoValue (const std::string &name)
 Set <NoValue> for attribute.
 
void SetValue (const std::string &name, bool value)
 Set boolean value.
 
void SetValue (const std::string &name, const RPadLength &value)
 Set PadLength value.
 
void SetValue (const std::string &name, const std::string &value)
 Set string value.
 
void SetValue (const std::string &name, double value)
 Set double value.
 
void SetValue (const std::string &name, int value)
 Set integer value.
 

#include <ROOT/RAttrText.hxx>

Inheritance diagram for ROOT::Experimental::RAttrText:
[legend]

Member Function Documentation

◆ AttrColor()

RAttrColor & ROOT::Experimental::RAttrText::AttrColor ( )
inlineprivate

Definition at line 117 of file RAttrText.hxx.

◆ GetAlign()

int ROOT::Experimental::RAttrText::GetAlign ( ) const
inlineprivate

Definition at line 49 of file RAttrText.hxx.

◆ GetAngle()

double ROOT::Experimental::RAttrText::GetAngle ( ) const
inlineprivate

Definition at line 45 of file RAttrText.hxx.

◆ GetColor()

RColor ROOT::Experimental::RAttrText::GetColor ( ) const
inlineprivate

Definition at line 116 of file RAttrText.hxx.

◆ GetFontFamily()

std::string ROOT::Experimental::RAttrText::GetFontFamily ( ) const
inlineprivate

Definition at line 89 of file RAttrText.hxx.

◆ GetFontStyle()

std::string ROOT::Experimental::RAttrText::GetFontStyle ( ) const
inlineprivate

Definition at line 100 of file RAttrText.hxx.

◆ GetFontWeight()

std::string ROOT::Experimental::RAttrText::GetFontWeight ( ) const
inlineprivate

Definition at line 111 of file RAttrText.hxx.

◆ GetSize()

double ROOT::Experimental::RAttrText::GetSize ( ) const
inlineprivate

Definition at line 41 of file RAttrText.hxx.

◆ R__ATTR_CLASS()

ROOT::Experimental::RAttrText::R__ATTR_CLASS ( RAttrText  ,
"text"   
)
private

◆ SetAlign()

RAttrText & ROOT::Experimental::RAttrText::SetAlign ( int  align)
inlineprivate

The text alignment.

Definition at line 48 of file RAttrText.hxx.

◆ SetAngle()

RAttrText & ROOT::Experimental::RAttrText::SetAngle ( double  angle)
inlineprivate

The text angle.

Definition at line 44 of file RAttrText.hxx.

◆ SetColor()

RAttrText & ROOT::Experimental::RAttrText::SetColor ( const RColor color)
inlineprivate

The color of the text.

Definition at line 115 of file RAttrText.hxx.

◆ SetFont()

RAttrText & ROOT::Experimental::RAttrText::SetFont ( int  font)
inlineprivate

Set text font by id as usually handled in the ROOT, set number between 1 and 15.

Definition at line 52 of file RAttrText.hxx.

◆ SetFontFamily()

RAttrText & ROOT::Experimental::RAttrText::SetFontFamily ( const std::string &  family)
inlineprivate

The text font-family attribute.

Definition at line 81 of file RAttrText.hxx.

◆ SetFontStyle()

RAttrText & ROOT::Experimental::RAttrText::SetFontStyle ( const std::string &  style)
inlineprivate

The text font-style attribute.

Definition at line 92 of file RAttrText.hxx.

◆ SetFontWeight()

RAttrText & ROOT::Experimental::RAttrText::SetFontWeight ( const std::string &  weight)
inlineprivate

The text font-weight attribute.

Definition at line 103 of file RAttrText.hxx.

◆ SetSize()

RAttrText & ROOT::Experimental::RAttrText::SetSize ( double  sz)
inlineprivate

The text size.

Definition at line 40 of file RAttrText.hxx.

Member Data Documentation

◆ fAlign

RAttrValue<int> ROOT::Experimental::RAttrText::fAlign {this, "align", 22}
private

! text align

Definition at line 32 of file RAttrText.hxx.

◆ fAngle

RAttrValue<double> ROOT::Experimental::RAttrText::fAngle {this, "angle", 0.}
private

! text angle

Definition at line 31 of file RAttrText.hxx.

◆ fColor

RAttrColor ROOT::Experimental::RAttrText::fColor {this, "color"}
private

! text color

Definition at line 29 of file RAttrText.hxx.

◆ fFontFamily

RAttrValue<std::string> ROOT::Experimental::RAttrText::fFontFamily {this, "font_familty"}
private

! font family, corresponds to css font-familty attribute

Definition at line 33 of file RAttrText.hxx.

◆ fFontStyle

RAttrValue<std::string> ROOT::Experimental::RAttrText::fFontStyle {this, "font_style"}
private

! font style, corresponds to css font-style attribute

Definition at line 34 of file RAttrText.hxx.

◆ fFontWeight

RAttrValue<std::string> ROOT::Experimental::RAttrText::fFontWeight {this, "font_weight"}
private

! font weight, corresponds to css font-weight attribute

Definition at line 35 of file RAttrText.hxx.

◆ fSize

RAttrValue<double> ROOT::Experimental::RAttrText::fSize {this, "size", 12.}
private

! text size

Definition at line 30 of file RAttrText.hxx.

Libraries for ROOT::Experimental::RAttrText:

The documentation for this class was generated from the following file: