15namespace Experimental {
37 std::unique_ptr<RDisplayItem>
Display(
const RDisplayContext &)
final;
78 std::array<RPadLength::Normal, 2>
PixelsToNormal(
const std::array<RPadLength::Pixel, 2> &pos)
const override
81 std::array<RPadLength::Normal, 2> myPixelInNormal =
83 std::array<RPadLength::Normal, 2> myUserInNormal =
87 return {{posInParentNormal[0] / (
fSize.
Horiz().
GetNormal() + myPixelInNormal[0] + myUserInNormal[0]),
88 posInParentNormal[1] / (
fSize.
Vert().
GetNormal() + myPixelInNormal[1] + myUserInNormal[1])}};
96 return {{pos.
Horiz().
GetNormal() + pixelsInNormal[0] + userInNormal[0],
97 pos.
Vert().
GetNormal() + pixelsInNormal[1] + userInNormal[1]}};
static void GetPixel(int y, int width, Byte_t *scline)
Get pixels in line y and put in array scline.
Drawing line attributes for different objects.
Base class for graphic containers for RDrawable-s.
std::array< RPadLength::Normal, 2 > UserToNormal(const std::array< RPadLength::User, 2 > &pos) const
Convert user coordinates to normal coordinates.
virtual std::array< RPadLength::Normal, 2 > PixelsToNormal(const std::array< RPadLength::Pixel, 2 > &pos) const =0
Convert a Pixel position to Canvas-normalized positions.
virtual const RCanvas * GetCanvas() const =0
Access to the top-most canvas, if any (const version).
An extent / size (horizontal and vertical) in a RPad.
A position (horizontal and vertical) in a RPad.
Graphic container for RDrawable-s.
std::unique_ptr< RDisplayItem > Display(const RDisplayContext &) final
Create pad display item.
const RPadExtent & GetSize() const
Get the size of the pad in parent (!) coordinates.
void SetSize(const RPadExtent &sz)
Set the size of the pad in parent (!) coordinates.
const RCanvas * GetCanvas() const override
Access to the top-most canvas (const version).
const RPadBase * GetParent() const
Access to the parent pad (const version).
RCanvas * GetCanvas() override
Access to the top-most canvas (non-const version).
virtual ~RPad()
Destructor to have a vtable.
RPad & SetAttrLine(const RAttrLine &attr)
RPadBase * GetParent()
Access to the parent pad (non-const version).
std::array< RPadLength::Normal, 2 > ToNormal(const RPadPos &pos) const
Convert a RPadPos to [x, y] of normalized coordinates.
RAttrLine fAttrLine
! border attributes
std::array< RPadLength::Normal, 2 > PixelsToNormal(const std::array< RPadLength::Pixel, 2 > &pos) const override
Convert a Pixel position to Canvas-normalized positions.
const RAttrLine & GetAttrLine() const
RPad(RPadBase *parent, const RPadPos &pos, const RPadExtent &size)
Create a child pad.
RPadBase * fParent
Pad containing this pad as a sub-pad.
RPad()=default
Create a topmost, non-paintable pad.
void SetPos(const RPadPos &p)
Set position.
const RPadPos & GetPos() const
Get the position of the pad in parent (!) coordinates.
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...