MythTV  master
Public Types | Public Slots | Public Member Functions | Protected Attributes | List of all members
MythPainterGPU Class Reference

#include <libmythui/mythpaintergpu.h>

Inheritance diagram for MythPainterGPU:
[legend]
Collaboration diagram for MythPainterGPU:
[legend]

Public Types

enum  ViewControl : std::uint8_t { None = 0x00, Viewport = 0x01, Framebuffer = 0x02 }
 

Public Slots

void CurrentDPIChanged (qreal DPI)
 

Public Member Functions

 MythPainterGPU (MythMainWindow *Parent)
 
 ~MythPainterGPU () override=default
 
void SetViewControl (ViewControls Control)
 
- Public Member Functions inherited from MythPainter
 MythPainter ()
 
 ~MythPainter () override=default
 MythPainter destructor. More...
 
virtual QString GetName (void)=0
 
virtual bool SupportsAnimation (void)=0
 
virtual bool SupportsAlpha (void)=0
 
virtual bool SupportsClipping (void)=0
 
virtual void FreeResources (void)
 
virtual void Begin (QPaintDevice *)
 
virtual void End ()
 
virtual void SetClipRect (QRect clipRect)
 
virtual void SetClipRegion (const QRegion &clipRegion)
 
virtual void Clear (QPaintDevice *device, const QRegion &region)
 
virtual void DrawImage (QRect dest, MythImage *im, QRect src, int alpha)=0
 
void DrawImage (int x, int y, MythImage *im, int alpha)
 
void DrawImage (QPoint topLeft, MythImage *im, int alph)
 
virtual void DrawProcedural (QRect, int, const ProcSource &, const ProcSource &, const QString &)
 
virtual void DrawText (QRect r, const QString &msg, int flags, const MythFontProperties &font, int alpha, QRect boundRect)
 
virtual void DrawTextLayout (QRect canvasRect, const LayoutVector &layouts, const FormatVector &formats, const MythFontProperties &font, int alpha, QRect destRect)
 
virtual void DrawRect (QRect area, const QBrush &fillBrush, const QPen &linePen, int alpha)
 
virtual void DrawRoundRect (QRect area, int cornerRadius, const QBrush &fillBrush, const QPen &linePen, int alpha)
 
virtual void DrawEllipse (QRect area, const QBrush &fillBrush, const QPen &linePen, int alpha)
 
virtual void PushTransformation ([[maybe_unused]] const UIEffects &zoom, [[maybe_unused]] QPointF center=QPointF())
 
virtual void PopTransformation (void)
 
MythImageGetFormatImage ()
 Returns a blank reference counted image in the format required for the Draw functions for this painter. More...
 
void DeleteFormatImage (MythImage *im)
 
void SetDebugMode (bool showBorders, bool showNames)
 
bool ShowBorders (void) const
 
bool ShowTypeNames (void) const
 
void SetMaximumCacheSizes (int hardware, int software)
 

Protected Attributes

MythMainWindowm_parent { nullptr }
 
ViewControls m_viewControl { Viewport | Framebuffer }
 
qreal m_pixelRatio { 1.0 }
 
bool m_usingHighDPI { false }
 
QSize m_lastSize
 
- Protected Attributes inherited from MythPainter
float m_frameTime { 0 }
 
int m_hardwareCacheSize { 0 }
 
int m_maxHardwareCacheSize { 0 }
 

Additional Inherited Members

- Protected Member Functions inherited from MythPainter
MythImageGetImageFromString (const QString &msg, int flags, QRect r, const MythFontProperties &font)
 
MythImageGetImageFromTextLayout (const LayoutVector &layouts, const FormatVector &formats, const MythFontProperties &font, QRect &canvas, QRect &dest)
 
MythImageGetImageFromRect (QRect area, int radius, int ellipse, const QBrush &fillBrush, const QPen &linePen)
 
virtual MythImageGetFormatImagePriv (void)=0
 Creates a reference counted image, call DecrRef() to delete. More...
 
virtual void DeleteFormatImagePriv (MythImage *im)=0
 
void ExpireImages (int64_t max=0)
 
virtual void Teardown (void)
 
void CheckFormatImage (MythImage *im)
 
- Static Protected Member Functions inherited from MythPainter
static void DrawTextPriv (MythImage *im, const QString &msg, int flags, QRect r, const MythFontProperties &font)
 
static void DrawRectPriv (MythImage *im, QRect area, int radius, int ellipse, const QBrush &fillBrush, const QPen &linePen)
 

Detailed Description

Definition at line 11 of file mythpaintergpu.h.

Member Enumeration Documentation

◆ ViewControl

enum MythPainterGPU::ViewControl : std::uint8_t
Enumerator
None 
Viewport 
Framebuffer 

Definition at line 16 of file mythpaintergpu.h.

Constructor & Destructor Documentation

◆ MythPainterGPU()

MythPainterGPU::MythPainterGPU ( MythMainWindow Parent)
explicit

Definition at line 9 of file mythpaintergpu.cpp.

◆ ~MythPainterGPU()

MythPainterGPU::~MythPainterGPU ( )
overridedefault

Member Function Documentation

◆ SetViewControl()

void MythPainterGPU::SetViewControl ( ViewControls  Control)

◆ CurrentDPIChanged

void MythPainterGPU::CurrentDPIChanged ( qreal  DPI)
slot

Definition at line 24 of file mythpaintergpu.cpp.

Referenced by MythPainterGPU().

Member Data Documentation

◆ m_parent

MythMainWindow* MythPainterGPU::m_parent { nullptr }
protected

Definition at line 33 of file mythpaintergpu.h.

Referenced by MythOpenGLPainter::Begin(), and MythPainterGPU().

◆ m_viewControl

ViewControls MythPainterGPU::m_viewControl { Viewport | Framebuffer }
protected

◆ m_pixelRatio

qreal MythPainterGPU::m_pixelRatio { 1.0 }
protected

◆ m_usingHighDPI

bool MythPainterGPU::m_usingHighDPI { false }
protected

◆ m_lastSize

QSize MythPainterGPU::m_lastSize
protected

The documentation for this class was generated from the following files: