25#include "ROOT/RPaveText.hxx"
26#include "ROOT/RFont.hxx"
33 auto canvas = RCanvas::Create(
"RPave example");
37 pave->fill.color = RColor::kBlue;
38 pave->fill.style = RAttrFill::k3001;
39 pave->border.color = RColor::kGreen;
40 pave->border.width = 3;
41 pave->corner = RPave::kTopLeft;
48 pave2->fill.color = RColor::kRed;
49 pave2->fill.style = RAttrFill::k3002;
50 pave2->corner = RPave::kBottomLeft;
56 text->AddLine(
"This is RPaveText");
57 text->AddLine(
"It can have several lines");
58 text->AddLine(
"It should be in top right corner");
59 text->fill.color = RColor::kYellow;
60 text->fill.style = RAttrFill::k3003;
61 text->corner = RPave::kTopRight;
67 auto pos =
fname.find(
"rpave.cxx");
70 fname.append(
"comic.woff2");
72 fname =
"comic.woff2";
76 text2->AddLine(
"RPaveText with custom font");
77 text2->AddLine(
"It loaded from comic.woff2 file");
78 text2->AddLine(
"One also can provide valid URL");
79 text2->fill.color = RColor::kGreen;
80 text2->fill.style = RAttrFill::k3004;
81 text2->corner = RPave::kBottomRight;
85 text2->text.font.family =
"CustomFont";
87 canvas->SetSize(1000, 700);
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t TPoint TPoint const char text
Base class for paves with text, statistic, legends, placed relative to RFrame position and adjustable...