11#ifndef ROOT_TQt6PadPainter
12#define ROOT_TQt6PadPainter
31namespace Experimental {
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
bool Bool_t
Boolean (0=false, 1=true) (bool)
short Color_t
Color number (short)
float Float_t
Float 4 bytes (float)
short Font_t
Font number (short)
#define ClassDefOverride(name, id)
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t DrawFillArea
Option_t Option_t TPoint TPoint const char x2
Option_t Option_t TPoint TPoint const char x1
Option_t Option_t TPoint TPoint const char mode
Option_t Option_t TPoint TPoint const char y2
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void SetCursor
Option_t Option_t TPoint DrawPolyMarker
Option_t Option_t TPoint TPoint const char DrawLine
Option_t Option_t TPoint TPoint percent
Option_t Option_t TPoint TPoint DrawText
Option_t Option_t TPoint TPoint SetOpacity
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t height
Option_t Option_t TPoint TPoint const char text
Option_t Option_t TPoint TPoint const char y1
QBrush GetFillBrush()
Return QBrush for fill drawing drawing.
void SaveImage(TVirtualPad *, const char *, Int_t) const override
Produce image.
Bool_t IsNative() const override
Int_t CreateDrawable(UInt_t, UInt_t) override
void ClearDrawable() override
void PaintQString(int x, int y, const QString &s)
Actual text painting image.
void DrawTextUrl(Double_t x, Double_t y, const char *text, const char *url) override
Paint text with url.
TQt6PadPainter(const TQt6PadPainter &rhs)=delete
Bool_t HasTTFonts() const override
static QString GetFontFamily(Font_t id)
Return font family for specified ROOT font id If necessary, register TTF font to Qt first.
void SetDoubleBuffer(Int_t, Int_t) override
Set double buffer mode for specified device, redirect to gVirtualX.
void DrawPolyLineNDC(Int_t n, const Double_t *u, const Double_t *v) override
Paint polyline in normalized coordinates.
void GetTextAscentDescent(Font_t font, Double_t size, UInt_t &a, UInt_t &d, const char *mess) override
Returns text accent / descent.
void DrawPixels(const unsigned char *pixelData, UInt_t width, UInt_t height, Int_t dstX, Int_t dstY, Bool_t enableAlphaBlending) override
Noop, for non-gl pad TASImage calls gVirtualX->CopyArea.
void SelectDrawable(Int_t) override
TQt6PadPainter(TQt6PadPainter &&rhs)=delete
TQt6PadPainter(QPaintWidget *widget=nullptr)
Bool_t IsSupportAlpha() const override
static QColor GetQColor(Color_t id)
Return QColor created from specified TColor.
QPaintWidget * fPaintWidget
void DrawTextNDC(Double_t u, Double_t v, const char *text, ETextMode mode) override
Paint text in normalized coordinates.
void GetTextExtent(Font_t font, Double_t size, UInt_t &w, UInt_t &h, const char *mess) override
Returns text extent.
void DrawBox(Double_t x1, Double_t y1, Double_t x2, Double_t y2, EBoxMode mode) override
Paint a simple box.
void DrawPolyLine(Int_t n, const Double_t *x, const Double_t *y) override
Paint Polyline.
void DrawLineNDC(Double_t u1, Double_t v1, Double_t u2, Double_t v2) override
Paint a simple line in normalized coordinates.
void CopyDrawable(Int_t, Int_t, Int_t) override
TQt6PadPainter & operator=(const TQt6PadPainter &rhs)=delete
UInt_t GetTextAdvance(Font_t font, Double_t size, const char *text, Bool_t kern) override
Returns text advance.
void DestroyDrawable(Int_t) override
QPen GetLinePen()
Return QPen for lines drawing.
Extends TVirtualPadPainter interface to simplify work with graphical attributes.
Basic TCanvasImp ABI implementation for Qt6.
TVirtualPad is an abstract base class for the Pad and Canvas classes.