MythTV  master
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
MythYUVAPainter Class Reference

#include <mythpainter_yuva.h>

Inheritance diagram for MythYUVAPainter:
Inheritance graph
[legend]
Collaboration diagram for MythYUVAPainter:
Collaboration graph
[legend]

Public Member Functions

 MythYUVAPainter ()
 
 ~MythYUVAPainter ()
 
QString GetName (void) override
 
void DrawImage (const QRect &dest, MythImage *im, const QRect &src, int alpha) override
 
void DrawText (const QRect &dest, const QString &msg, int flags, const MythFontProperties &font, int alpha, const QRect &boundRect) override
 
void DrawRect (const QRect &area, const QBrush &fillBrush, const QPen &linePen, int alpha) override
 
void DrawRoundRect (const QRect &area, int cornerRadius, const QBrush &fillBrush, const QPen &linePen, int alpha) override
 
void DrawEllipse (const QRect &area, const QBrush &fillBrush, const QPen &linePen, int alpha) override
 
- Public Member Functions inherited from MythQImagePainter
 MythQImagePainter ()
 
 ~MythQImagePainter ()
 
bool SupportsAnimation (void) override
 
bool SupportsAlpha (void) override
 
bool SupportsClipping (void) override
 
void Begin (QPaintDevice *parent) override
 
void End () override
 
void SetClipRect (const QRect &clipRect) override
 
void SetClipRegion (const QRegion &region) override
 
void Clear (QPaintDevice *device, const QRegion &region) override
 
- Public Member Functions inherited from MythPainter
 MythPainter ()
 
virtual ~MythPainter ()=default
 MythPainter destructor. More...
 
virtual void FreeResources (void)
 
QPaintDevice * GetParent (void)
 
void DrawImage (int x, int y, MythImage *im, int alpha)
 
void DrawImage (const QPoint &topLeft, MythImage *im, int alph)
 
virtual void DrawTextLayout (const QRect &canvasRect, const LayoutVector &layouts, const FormatVector &formats, const MythFontProperties &font, int alpha, const QRect &destRect)
 
virtual void PushTransformation (const UIEffects &zoom, 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)
 
bool ShowTypeNames (void)
 
void SetMaximumCacheSizes (int hardware, int software)
 

Protected Member Functions

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

Protected Attributes

QMap< QString, MythFontProperties * > m_convertedFonts
 
std::list< QString > m_expireList
 
- Protected Attributes inherited from MythQImagePainter
QPainter * m_painter {nullptr}
 
QRegion m_clipRegion
 
QRegion m_paintedRegion
 
bool m_copy {false}
 
- Protected Attributes inherited from MythPainter
QPaintDevice * m_Parent {nullptr}
 
int m_HardwareCacheSize {0}
 
int m_MaxHardwareCacheSize
 

Detailed Description

Definition at line 10 of file mythpainter_yuva.h.

Constructor & Destructor Documentation

◆ MythYUVAPainter()

MythYUVAPainter::MythYUVAPainter ( )
inline

Definition at line 13 of file mythpainter_yuva.h.

◆ ~MythYUVAPainter()

MythYUVAPainter::~MythYUVAPainter ( )

Definition at line 12 of file mythpainter_yuva.cpp.

Member Function Documentation

◆ GetName()

QString MythYUVAPainter::GetName ( void  )
inlineoverridevirtual

Reimplemented from MythQImagePainter.

Definition at line 16 of file mythpainter_yuva.h.

◆ DrawImage()

void MythYUVAPainter::DrawImage ( const QRect &  dest,
MythImage im,
const QRect &  src,
int  alpha 
)
overridevirtual

Reimplemented from MythQImagePainter.

Definition at line 19 of file mythpainter_yuva.cpp.

◆ DrawText()

void MythYUVAPainter::DrawText ( const QRect &  dest,
const QString &  msg,
int  flags,
const MythFontProperties font,
int  alpha,
const QRect &  boundRect 
)
overridevirtual

Reimplemented from MythQImagePainter.

Definition at line 32 of file mythpainter_yuva.cpp.

◆ DrawRect()

void MythYUVAPainter::DrawRect ( const QRect &  area,
const QBrush &  fillBrush,
const QPen &  linePen,
int  alpha 
)
overridevirtual

Reimplemented from MythQImagePainter.

Definition at line 55 of file mythpainter_yuva.cpp.

◆ DrawRoundRect()

void MythYUVAPainter::DrawRoundRect ( const QRect &  area,
int  cornerRadius,
const QBrush &  fillBrush,
const QPen &  linePen,
int  alpha 
)
overridevirtual

Reimplemented from MythQImagePainter.

Definition at line 99 of file mythpainter_yuva.cpp.

◆ DrawEllipse()

void MythYUVAPainter::DrawEllipse ( const QRect &  area,
const QBrush &  fillBrush,
const QPen &  linePen,
int  alpha 
)
overridevirtual

Reimplemented from MythQImagePainter.

Definition at line 122 of file mythpainter_yuva.cpp.

◆ GetConvertedFont()

MythFontProperties * MythYUVAPainter::GetConvertedFont ( const MythFontProperties font)
protected

Definition at line 144 of file mythpainter_yuva.cpp.

Referenced by DrawText().

Member Data Documentation

◆ m_convertedFonts

QMap<QString, MythFontProperties*> MythYUVAPainter::m_convertedFonts
protected

Definition at line 35 of file mythpainter_yuva.h.

Referenced by GetConvertedFont(), and ~MythYUVAPainter().

◆ m_expireList

std::list<QString> MythYUVAPainter::m_expireList
protected

Definition at line 36 of file mythpainter_yuva.h.

Referenced by GetConvertedFont().


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