Logo ROOT  
Reference Guide
ROOT::Experimental::RAttrText Class Reference

A text.attributes.

Author
Axel Naumann axel@.nosp@m.cern.nosp@m..ch
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 29 of file RAttrText.hxx.

Private Member Functions

RColor & Color ()
 
int GetAlign () const
 
double GetAngle () const
 
const RColor & GetColor () const
 
int GetFont () const
 
double GetSize () const
 
 R__ATTR_CLASS (RAttrText, "text_", AddDouble("size", 12.).AddDouble("angle", 0.).AddInt("align", 22).AddInt("font", 41).AddDefaults(fColor))
 
RAttrText & SetAlign (int align)
 The text alignment. More...
 
RAttrText & SetAngle (double angle)
 The text angle. More...
 
RAttrText & SetColor (const RColor &color)
 The color of the text. More...
 
RAttrText & SetFont (int font)
 The text font. More...
 
RAttrText & SetSize (double width)
 The text size. More...
 

Private Attributes

RColor fColor {this, "color_"}
 ! line color, will access container from line attributes More...
 

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. More...
 
const Val_t AccessValue (const std::string &name, bool use_style=true) const
 
void AssignDrawable (RDrawable *drawable, const std::string &prefix)
 Return value from attributes container - no style or defaults are used. More...
 
void AssignParent (RAttrBase *parent, const std::string &prefix)
 
void Clear ()
 Clear all respective values from drawable. More...
 
void ClearValue (const std::string &name)
 
void CopyTo (RAttrBase &tgt, bool use_style=true) const
 Copy attributes into target object. More...
 
bool CopyValue (const std::string &name, const RAttrMap::Value_t &value, bool check_type=true)
 Copy attributes from other object. More...
 
Rec_t EnsureAttr (const std::string &name)
 Ensure attribute with give name exists - creates container for attributes if required. More...
 
template<typename RET_TYPE , typename MATCH_TYPE = void>
auto Eval (const std::string &name, bool use_dflts=true) const
 Evaluate attribute value. More...
 
virtual const RAttrMap & GetDefaults () const
 Return default values for attributes, empty for base class. More...
 
const std::string & GetPrefix () const
 
template<typename T >
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. More...
 
bool IsValueEqual (const std::string &name, const RAttrMap::Value_t &value, bool use_style=false) const
 Copy attributes into target object. More...
 
RAttrBase & operator= (const RAttrBase &src)
 
void SetValue (const std::string &name, bool value)
 
void SetValue (const std::string &name, const std::string &value)
 
void SetValue (const std::string &name, double value)
 
void SetValue (const std::string &name, int value)
 

#include <ROOT/RAttrText.hxx>

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

Member Function Documentation

◆ Color()

RColor & ROOT::Experimental::RAttrText::Color ( )
inlineprivate

Definition at line 54 of file RAttrText.hxx.

◆ GetAlign()

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

Definition at line 45 of file RAttrText.hxx.

◆ GetAngle()

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

Definition at line 41 of file RAttrText.hxx.

◆ GetColor()

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

Definition at line 53 of file RAttrText.hxx.

◆ GetFont()

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

Definition at line 49 of file RAttrText.hxx.

◆ GetSize()

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

Definition at line 37 of file RAttrText.hxx.

◆ R__ATTR_CLASS()

ROOT::Experimental::RAttrText::R__ATTR_CLASS ( RAttrText  ,
"text_"  ,
AddDouble("size", 12.).AddDouble("angle", 0.).AddInt("align", 22).AddInt("font", 41).AddDefaults(fColor)   
)
private

◆ SetAlign()

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

The text alignment.

Definition at line 44 of file RAttrText.hxx.

◆ SetAngle()

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

The text angle.

Definition at line 40 of file RAttrText.hxx.

◆ SetColor()

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

The color of the text.

Definition at line 52 of file RAttrText.hxx.

◆ SetFont()

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

The text font.

Definition at line 48 of file RAttrText.hxx.

◆ SetSize()

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

The text size.

Definition at line 36 of file RAttrText.hxx.

Member Data Documentation

◆ fColor

RColor ROOT::Experimental::RAttrText::fColor {this, "color_"}
private

! line color, will access container from line attributes

Definition at line 31 of file RAttrText.hxx.

Libraries for ROOT::Experimental::RAttrText:
[legend]

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