This ROOT 7 example demonstrates how to customize RLine object using RStyle "normal" coordinates' system. 
  
#include "ROOT/RText.hxx"
#include "ROOT/RLine.hxx"
#include <string>
 
 
{
   auto canvas = RCanvas::Create("Use RStyle for line styling");
   double num = 0.3;
 
   for (int i = 10; i > 0; i--) {
      num = num + 0.05;
 
      text->text.align = RAttrText::kRightCenter;
 
      text->text.font = RAttrFont::kArialOblique;
 
 
      line->SetId(std::string(
"obj") + std::to_string(i));
 
      line->SetCssClass(std::string(
"user_class_") + std::to_string(i % 3));
 
   }
 
   auto style = std::make_shared<RStyle>();
 
 
   style->AddBlock(
".user_class_1").AddInt(
"line_style", 4);     
 
   style->AddBlock(
".user_class_2").AddDouble(
"line_width", 5.); 
 
   style->AddBlock(
"#obj7").AddString(
"line_color", 
"#0000FF");  
 
 
   style->AddBlock(
"line").AddString(
"line_color", 
"red"); 
 
 
 
   canvas->Show();
 
   
   canvas->ClearOnClose(
style);
 
}
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
 
A position (horizontal and vertical) in a RPad.
 
- Date
 - 2019-10-04 
 
- Warning
 - This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback is welcome! 
 
- Author
 - Iliana Betsou 
 
Definition in file rstyle.cxx.