This ROOT 7 example demonstrates how to create a ROOT 7 canvas (RCanvas) and draw ROOT 7 boxes in it (RBox).
It generates a set of boxes using the "normal" coordinates' system.
#include "ROOT/RBox.hxx"
{
auto canvas = RCanvas::Create("RBox drawing");
box1->border.color = RColor::kBlue;
box1->fill.style = RAttrFill::kSolid;
box2->border.color = RColor::kRed;
box2->border.width = 10.f;
box2->border.style = RAttrLine::kDashed;
box2->fill.style = RAttrFill::kSolid;
box3->fill.color = RColor::kBlue;
box3->fill.style = RAttrFill::kSolid;
canvas->Show();
}
A position (horizontal and vertical) in a RPad.
- Date
- 2018-10-10
- Warning
- This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback is welcome!
- Author
- Olivier Couet
Definition in file rbox.cxx.