Logo ROOT   6.12/07
Reference Guide
List of all members | Public Member Functions | Private Attributes | List of all members
ROOT::Experimental::TextDrawingOpts Class Reference

Definition at line 69 of file TText.hxx.

Public Member Functions

 TextDrawingOpts ()=default
 
 TextDrawingOpts (TPadBase &pad)
 
TColorGetFillColor ()
 
TColorGetLineColor ()
 
void SetFillColor (const TColor &col)
 The width of the line. More...
 
void SetLineColor (const TColor &col)
 The color of the line. More...
 
- Public Member Functions inherited from ROOT::Experimental::TDrawingOptsBase< TextDrawingOpts >
 TDrawingOptsBase ()=default
 
 TDrawingOptsBase (TPadBase &pad, std::string_view name)
 Construct from the pad that holds our TDrawable. More...
 
void Apply (const TextDrawingOpts &other)
 Apply the given options to this option set. More...
 
- Public Member Functions inherited from ROOT::Experimental::TDrawingOptsBaseNoDefault
 TDrawingOptsBaseNoDefault ()=default
 
 TDrawingOptsBaseNoDefault (const TDrawingOptsBaseNoDefault &other)
 
 TDrawingOptsBaseNoDefault (TDrawingOptsBaseNoDefault &&other)=default
 
 ~TDrawingOptsBaseNoDefault ()
 
template<class PRIMITIVE >
PRIMITIVE & Get (TDrawingAttrRef< PRIMITIVE > ref)
 Access to the attribute (non-const version). More...
 
template<class PRIMITIVE >
const PRIMITIVE & Get (TDrawingAttrRef< PRIMITIVE > ref) const
 Access to the attribute (const version). More...
 

Private Attributes

TFillAttrs fFill {*this, "Text.Fill", TColor::kWhite}
 The fill attributes. More...
 
TLineAttrs fLine {*this, "Text.Line", TColor::kBlack, TLineAttrs::Width{3}}
 The line attributes. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from ROOT::Experimental::TDrawingOptsBase< TextDrawingOpts >
static TextDrawingOptsDefault ()
 Retrieve the default drawing options for DERIVED. More...
 
static TextDrawingOpts GetDefaultForStyle (const TStyle &style)
 Retrieve the default drawing options for the given style. More...
 
- Protected Member Functions inherited from ROOT::Experimental::TDrawingOptsBaseNoDefault
 TDrawingOptsBaseNoDefault (TPadBase &pad, std::string_view name)
 Construct from the pad that holds our TDrawable. More...
 
TCanvasGetCanvas ()
 The TCanvas holding the TDrawable (or its TPad) (non-const version). More...
 
const TCanvasGetCanvas () const
 The TCanvas holding the TDrawable (or its TPad) (const version). More...
 
const std::string & GetName () const
 Get the (style config) name of this option set. More...
 
template<class PRIMITIVE >
TDrawingAttrRef< PRIMITIVE > Register (const PRIMITIVE &val)
 
template<class PRIMITIVE >
TDrawingAttrRef< PRIMITIVE > SameAs (TDrawingAttrRef< PRIMITIVE > idx)
 
template<class PRIMITIVE >
TDrawingAttrRef< PRIMITIVE > SameAs (const PRIMITIVE &val)
 
template<class PRIMITIVE >
void Update (TDrawingAttrRef< PRIMITIVE > idx, const PRIMITIVE &val)
 
- Static Protected Member Functions inherited from ROOT::Experimental::TDrawingOptsBaseNoDefault
static TPadBaseGetDefaultCanvas (const TStyle &style)
 Default attributes need to register their values in a pad - they will take this pad for default attributes of a style, as identified by the style's name. More...
 
static bool IsDefaultCanvas (const TPadBase &canv)
 Whether the canvas is one of the canvases used to store attribute defaults. More...
 

#include <ROOT/TText.hxx>

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

Constructor & Destructor Documentation

◆ TextDrawingOpts() [1/2]

ROOT::Experimental::TextDrawingOpts::TextDrawingOpts ( )
default

◆ TextDrawingOpts() [2/2]

ROOT::Experimental::TextDrawingOpts::TextDrawingOpts ( TPadBase pad)
inlineexplicit

Definition at line 76 of file TText.hxx.

Member Function Documentation

◆ GetFillColor()

TColor& ROOT::Experimental::TextDrawingOpts::GetFillColor ( )
inline

Definition at line 93 of file TText.hxx.

◆ GetLineColor()

TColor& ROOT::Experimental::TextDrawingOpts::GetLineColor ( )
inline

Definition at line 83 of file TText.hxx.

◆ SetFillColor()

void ROOT::Experimental::TextDrawingOpts::SetFillColor ( const TColor col)
inline

The width of the line.

The fill color

Definition at line 92 of file TText.hxx.

◆ SetLineColor()

void ROOT::Experimental::TextDrawingOpts::SetLineColor ( const TColor col)
inline

The color of the line.

Definition at line 82 of file TText.hxx.

Member Data Documentation

◆ fFill

TFillAttrs ROOT::Experimental::TextDrawingOpts::fFill {*this, "Text.Fill", TColor::kWhite}
private

The fill attributes.

Definition at line 72 of file TText.hxx.

◆ fLine

TLineAttrs ROOT::Experimental::TextDrawingOpts::fLine {*this, "Text.Line", TColor::kBlack, TLineAttrs::Width{3}}
private

The line attributes.

Definition at line 71 of file TText.hxx.

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

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