9#ifndef ROOT7_RPadDisplayItem
10#define ROOT7_RPadDisplayItem
17namespace Experimental {
36 std::vector<std::shared_ptr<RStyle>>
fStyles;
42 void Add(std::unique_ptr<RDisplayItem> &&item, std::shared_ptr<RStyle> &&
style)
45 item->SetStyle(
style.get());
81 std::string subprefix = prefix + std::to_string(
GetIndex()) +
"_";
83 item->BuildFullId(subprefix);
110 item->BuildFullId(prefix);
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t height
std::array< int, 2 > fWinSize
canvas window size
std::string fTitle
title of the canvas
RCanvasDisplayItem()=default
void BuildFullId(const std::string &prefix) override
Build full id, including prefix and object index.
void SetTitle(const std::string &title)
virtual ~RCanvasDisplayItem()=default
void SetWindowSize(int width, int height)
Base class for painting data for JS.
virtual void BuildFullId(const std::string &prefix)
Build full id, including prefix and object index.
void SetStyle(RStyle *style)
unsigned GetIndex() const
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)
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
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
Build full id, including prefix and object index.
RPadDisplayItem()=default
virtual ~RPadDisplayItem()
An extent / size (horizontal and vertical) in a RPad.
A position (horizontal and vertical) in a RPad.
This file contains a specialised ROOT message handler to test for diagnostic in unit tests.