24#include "ROOT/RPaveText.hxx"
25#include "ROOT/RFont.hxx"
32 auto canvas = RCanvas::Create(
"RPave example");
36 pave->fill.color = RColor::kBlue;
37 pave->fill.style = RAttrFill::k3001;
38 pave->border.color = RColor::kGreen;
39 pave->border.width = 3;
40 pave->corner = RPave::kTopLeft;
47 pave2->fill.color = RColor::kRed;
48 pave2->fill.style = RAttrFill::k3002;
49 pave2->corner = RPave::kBottomLeft;
55 text->AddLine(
"This is RPaveText");
56 text->AddLine(
"It can have several lines");
57 text->AddLine(
"It should be in top right corner");
58 text->fill.color = RColor::kYellow;
59 text->fill.style = RAttrFill::k3003;
60 text->corner = RPave::kTopRight;
66 auto pos =
fname.find(
"rpave.cxx");
67 if (pos > 0) {
fname.resize(pos);
fname.append(
"comic.woff2"); }
68 else fname =
"comic.woff2";
72 text2->AddLine(
"RPaveText with custom font");
73 text2->AddLine(
"It loaded from comic.woff2 file");
74 text2->AddLine(
"One also can provide valid URL");
75 text2->fill.color = RColor::kGreen;
76 text2->fill.style = RAttrFill::k3004;
77 text2->corner = RPave::kBottomRight;
81 text2->text.font.family =
"CustomFont";
83 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...