28 #include <initializer_list> 33 namespace Experimental {
123 inline std::unique_ptr<ROOT::Experimental::TTextDrawable>
126 return std::make_unique<ROOT::Experimental::TTextDrawable>(
text, pad);
TText(const std::string &str)
TextDrawingOpts & GetOptions()
double fX
Text's X position.
Base class for drawable entities: objects that can be painted on a TPad.
void SetPosition(double x, double y)
Namespace for new ROOT classes and functions.
Base class for drawing options.
void SetFillColor(const TColor &col)
The width of the line.
const TextDrawingOpts & GetOptions() const
Base class for graphic containers for TDrawable-s.
TTextDrawable(const std::shared_ptr< ROOT::Experimental::TText > &txt, TPadBase &pad)
static constexpr PredefinedRGB kBlack
double fY
Text's Y position.
void SetLineColor(const TColor &col)
The color of the line.
Abstract interface for painting a canvas.
void SetText(const std::string &txt)
std::string GetText() const
void Paint(Internal::TVirtualCanvasPainter &canv) final
static constexpr PredefinedRGB kWhite
A color: Red|Green|Blue|Alpha, or a position in a TPalette.
std::unique_ptr< TPadDrawable > GetDrawable(std::unique_ptr< TPad > &&pad, TPadBase &parent)
TextDrawingOpts(TPadBase &pad)