9#ifndef ROOT7_RPadDisplayItem
10#define ROOT7_RPadDisplayItem
18namespace Experimental {
38 std::vector<std::shared_ptr<RStyle>>
fStyles;
45 void Add(std::unique_ptr<RDisplayItem> &&item, std::shared_ptr<RStyle> &&
style)
48 item->SetStyle(
style.get());
84 std::string subprefix = prefix + std::to_string(
GetIndex()) +
"_";
86 item->BuildFullId(subprefix);
113 item->BuildFullId(prefix);
void SetWindowSize(const std::array< RPadLength::Pixel, 2 > &win)
std::array< int, 2 > fWinSize
canvas window size
std::string fTitle
title of the canvas
RCanvasDisplayItem()=default
void BuildFullId(const std::string &prefix) override
void SetTitle(const std::string &title)
virtual ~RCanvasDisplayItem()=default
Base class for painting data for JS.
void SetStyle(RStyle *style)
virtual void BuildFullId(const std::string &prefix)
unsigned GetIndex() const
Holds a user coordinate system with a palette.
class RPadBaseDisplayItem
RPadBaseDisplayItem()=default
void SetPadStyle(std::shared_ptr< RStyle > &&style)
Assign style for the pad.
void Add(std::unique_ptr< RDisplayItem > &&item, std::shared_ptr< RStyle > &&style)
Add display item and style which should be used for it.
void SetAttributes(const RAttrMap *f)
const RFrame * fFrame
temporary pointer on frame object
virtual ~RPadBaseDisplayItem()=default
std::vector< std::shared_ptr< RStyle > > fStyles
! locked styles of the objects and pad until streaming is performed
const RAttrMap * fAttr
temporary pointer on attributes
void SetFrame(const RFrame *f)
std::vector< std::unique_ptr< RDisplayItem > > PadPrimitives_t
PadPrimitives_t fPrimitives
display items for all primitives in the pad
const RPadExtent * fSize
pad size
void SetPadPosSize(const RPadPos *pos, const RPadExtent *size)
const RPadPos * fPos
pad position
void BuildFullId(const std::string &prefix) override
RPadDisplayItem()=default
virtual ~RPadDisplayItem()
An extent / size (horizontal and vertical) in a RPad.
A position (horizontal and vertical) in a RPad.