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.

Public Types

enum  EAlign {
  kLeftBottom = 11 , kLeftCenter = 12 , kLeftTop = 13 , kCenterBottom = 21 ,
  kCenter = 22 , kCenterTop = 23 , kRightBottom = 31 , kRightCenter = 32 ,
  kRightTop = 33
}
 

Public Member Functions

 RAttrText ()=default
 
 RAttrText (const RAttrText &src)
 
 RAttrText (RAttrBase *parent, const char *prefix="text")
 
 RAttrText (RDrawable *drawable, const char *prefix, double _size)
 
 RAttrText (RDrawable *drawable, const char *prefix="text")
 
RAttrTextoperator= (const RAttrText &src)
 
- Public Member Functions inherited from ROOT::Experimental::RAttrAggregation
 RAttrAggregation ()=default
 
 RAttrAggregation (const RAttrAggregation &src)
 
 RAttrAggregation (RAttrBase *parent, const char *prefix=nullptr)
 
 RAttrAggregation (RDrawable *drawable, const char *prefix=nullptr)
 
void Clear () override
 Clear all respective values from drawable. Only defaults can be used.
 
RAttrAggregationoperator= (const RAttrAggregation &src)
 
- Public Member Functions inherited from ROOT::Experimental::RAttrBase
 RAttrBase ()=default
 
virtual ~RAttrBase ()
 

Public Attributes

RAttrValue< EAlignalign {this, "align", kCenter}
 ! text align
 
RAttrValue< doubleangle {this, "angle", 0.}
 ! text angle
 
RAttrValue< RColorcolor {this, "color", RColor::kBlack}
 ! text color
 
RAttrFont font {this, "font"}
 ! text font
 
RAttrValue< doublesize {this, "size", 12.}
 ! text size
 

Protected Member Functions

const RAttrMapGetDefaults () const override
 Return default values for attributes, empty for base class.
 
- Protected Member Functions inherited from ROOT::Experimental::RAttrAggregation
RAttrMap CollectDefaults () const override
 Collect all attributes in derived class Works only if such class has dictionary.
 
void CopyTo (RAttrAggregation &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.
 
bool IsAggregation () const final
 
bool IsSame (const RAttrAggregation &src, bool use_style=true) const
 Check if all values which are evaluated in this object are exactly the same as in tgt object.
 
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.
 
- Protected Member Functions inherited from ROOT::Experimental::RAttrBase
 RAttrBase (const char *prefix)
 
 RAttrBase (RAttrBase *parent, const char *prefix=nullptr)
 
 RAttrBase (RDrawable *drawable, const char *prefix=nullptr)
 
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 ClearValue (const std::string &name)
 Clear value if any with specified name.
 
Rec_t EnsureAttr (const std::string &name)
 Ensure attribute with give name exists - creates container for attributes if required.
 
RDrawableGetDrawable () const
 
RAttrMapGetOwnAttr () const
 
RAttrBaseGetParent () const
 
const char * GetPrefix () const
 
void MoveTo (RAttrBase &tgt)
 Move all fields into target object.
 
void SetNoValue (const std::string &name)
 Set <NoValue> for attribute.
 

#include <ROOT/RAttrText.hxx>

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

Member Enumeration Documentation

◆ EAlign

Enumerator
kLeftBottom 
kLeftCenter 
kLeftTop 
kCenterBottom 
kCenter 
kCenterTop 
kRightBottom 
kRightCenter 
kRightTop 

Definition at line 33 of file RAttrText.hxx.

Constructor & Destructor Documentation

◆ RAttrText() [1/5]

ROOT::Experimental::RAttrText::RAttrText ( )
default

◆ RAttrText() [2/5]

ROOT::Experimental::RAttrText::RAttrText ( RDrawable drawable,
const char *  prefix = "text" 
)
inline

Definition at line 29 of file RAttrText.hxx.

◆ RAttrText() [3/5]

ROOT::Experimental::RAttrText::RAttrText ( RAttrBase parent,
const char *  prefix = "text" 
)
inline

Definition at line 29 of file RAttrText.hxx.

◆ RAttrText() [4/5]

ROOT::Experimental::RAttrText::RAttrText ( const RAttrText src)
inline

Definition at line 29 of file RAttrText.hxx.

◆ RAttrText() [5/5]

ROOT::Experimental::RAttrText::RAttrText ( RDrawable drawable,
const char *  prefix,
double  _size 
)
inline

Definition at line 51 of file RAttrText.hxx.

Member Function Documentation

◆ GetDefaults()

const RAttrMap & ROOT::Experimental::RAttrText::GetDefaults ( ) const
inlineoverrideprotectedvirtual

Return default values for attributes, empty for base class.

Reimplemented from ROOT::Experimental::RAttrAggregation.

Definition at line 29 of file RAttrText.hxx.

◆ operator=()

RAttrText & ROOT::Experimental::RAttrText::operator= ( const RAttrText src)
inline

Definition at line 29 of file RAttrText.hxx.

Member Data Documentation

◆ align

RAttrValue<EAlign> ROOT::Experimental::RAttrText::align {this, "align", kCenter}

! text align

Definition at line 48 of file RAttrText.hxx.

◆ angle

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

! text angle

Definition at line 47 of file RAttrText.hxx.

◆ color

RAttrValue<RColor> ROOT::Experimental::RAttrText::color {this, "color", RColor::kBlack}

! text color

Definition at line 45 of file RAttrText.hxx.

◆ font

RAttrFont ROOT::Experimental::RAttrText::font {this, "font"}

! text font

Definition at line 49 of file RAttrText.hxx.

◆ size

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

! text size

Definition at line 46 of file RAttrText.hxx.

Libraries for ROOT::Experimental::RAttrText:

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