15#include "ROOT/RText.hxx"
16#include "ROOT/RLine.hxx"
22 auto canvas = RCanvas::Create(
"Different RLine styles");
23 auto posy = 0.9_normal;
25 for (
int i = 1; i <= 11; i++) {
28 lbl = std::to_string(i);
32 auto text = canvas->Add<RText>(
RPadPos{.3_normal, posy}, lbl);
33 text->text.size = 0.04;
34 text->text.align = RAttrText::kRightCenter;
35 text->text.font = RAttrFont::kArialOblique;
37 auto draw = canvas->Add<RLine>(
RPadPos{.32_normal, posy},
RPadPos{.8_normal, posy});
41 draw->line.pattern =
"10,2,8,2,10,6,1,6";
A position (horizontal and vertical) in a RPad.