|
MythTV master
|
#include <libmythui/mythpainter_d3d9.h>
Public Member Functions | |
| MythD3D9Painter (MythRenderD3D9 *render=nullptr) | |
| ~MythD3D9Painter () | |
| void | SetTarget (D3D9Image *target) |
| void | SetSwapControl (bool swap) |
| QString | GetName (void) override |
| bool | SupportsAnimation (void) override |
| bool | SupportsAlpha (void) override |
| bool | SupportsClipping (void) override |
| void | FreeResources (void) override |
| void | Begin (QPaintDevice *parent) override |
| void | End () override |
| void | DrawImage (QRect dest, MythImage *im, QRect src, int alpha) override |
| void | DrawRect (QRect area, const QBrush &fillBrush, const QPen &linePen, int alpha) override |
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 ®ion) |
| 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 (const UIEffects &zoom, QPointF center=QPointF()) |
| virtual void | PopTransformation (void) |
| MythImage * | GetFormatImage () |
| 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 Member Functions | |
| MythImage * | GetFormatImagePriv (void) override |
| Creates a reference counted image, call DecrRef() to delete. More... | |
| void | DeleteFormatImagePriv (MythImage *im) override |
| void | Teardown (void) override |
| bool | InitD3D9 (QPaintDevice *parent) |
| void | ClearCache (void) |
| void | DeleteBitmaps (void) |
| D3D9Image * | GetImageFromCache (MythImage *im) |
Protected Member Functions inherited from MythPainter | |
| MythImage * | GetImageFromString (const QString &msg, int flags, QRect r, const MythFontProperties &font) |
| MythImage * | GetImageFromTextLayout (const LayoutVector &layouts, const FormatVector &formats, const MythFontProperties &font, QRect &canvas, QRect &dest) |
| MythImage * | GetImageFromRect (QRect area, int radius, int ellipse, const QBrush &fillBrush, const QPen &linePen) |
| virtual MythImage * | GetFormatImagePriv (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) |
Protected Attributes | |
| MythRenderD3D9 * | m_render {nullptr} |
| D3D9Image * | m_target {nullptr} |
| bool | m_swap_control {true} |
| QMap< MythImage *, D3D9Image * > | m_ImageBitmapMap |
| std::list< MythImage * > | m_ImageExpireList |
| std::list< D3D9Image * > | m_bitmapDeleteList |
| QMutex | m_bitmapDeleteLock |
Protected Attributes inherited from MythPainter | |
| float | m_frameTime { 0 } |
| int | m_hardwareCacheSize { 0 } |
| int | m_maxHardwareCacheSize { 0 } |
Friends | |
| class | VideoOutputD3D |
Additional Inherited Members | |
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) |
Definition at line 13 of file mythpainter_d3d9.h.
|
explicit |
Definition at line 14 of file mythpainter_d3d9.cpp.
| MythD3D9Painter::~MythD3D9Painter | ( | ) |
Definition at line 21 of file mythpainter_d3d9.cpp.
|
overridevirtual |
Reimplemented from MythPainter.
Definition at line 69 of file mythpainter_d3d9.cpp.
|
protected |
Definition at line 115 of file mythpainter_d3d9.cpp.
Referenced by FreeResources(), and Teardown().
|
protected |
Definition at line 130 of file mythpainter_d3d9.cpp.
Referenced by Begin(), FreeResources(), GetImageFromCache(), and Teardown().
|
overrideprotectedvirtual |
Implements MythPainter.
Definition at line 187 of file mythpainter_d3d9.cpp.
Referenced by GetImageFromCache().
|
overridevirtual |
Implements MythPainter.
Definition at line 142 of file mythpainter_d3d9.cpp.
|
overridevirtual |
Reimplemented from MythPainter.
Definition at line 153 of file mythpainter_d3d9.cpp.
|
overridevirtual |
Reimplemented from MythPainter.
Definition at line 100 of file mythpainter_d3d9.cpp.
|
overridevirtual |
Reimplemented from MythPainter.
Definition at line 63 of file mythpainter_d3d9.cpp.
|
inlineoverrideprotectedvirtual |
Creates a reference counted image, call DecrRef() to delete.
Implements MythPainter.
Definition at line 40 of file mythpainter_d3d9.h.
Definition at line 198 of file mythpainter_d3d9.cpp.
Referenced by DrawImage().
|
inlineoverridevirtual |
Implements MythPainter.
Definition at line 22 of file mythpainter_d3d9.h.
|
protected |
Definition at line 26 of file mythpainter_d3d9.cpp.
Referenced by Begin().
|
inline |
Definition at line 21 of file mythpainter_d3d9.h.
|
inline |
Definition at line 20 of file mythpainter_d3d9.h.
|
inlineoverridevirtual |
Implements MythPainter.
Definition at line 26 of file mythpainter_d3d9.h.
|
inlineoverridevirtual |
Implements MythPainter.
Definition at line 24 of file mythpainter_d3d9.h.
|
inlineoverridevirtual |
Implements MythPainter.
Definition at line 28 of file mythpainter_d3d9.h.
|
overrideprotectedvirtual |
Reimplemented from MythPainter.
Definition at line 46 of file mythpainter_d3d9.cpp.
Referenced by InitD3D9(), and ~MythD3D9Painter().
|
friend |
Definition at line 15 of file mythpainter_d3d9.h.
|
protected |
Definition at line 55 of file mythpainter_d3d9.h.
Referenced by ClearCache(), DeleteBitmaps(), DeleteFormatImagePriv(), and Teardown().
|
protected |
Definition at line 56 of file mythpainter_d3d9.h.
Referenced by ClearCache(), DeleteBitmaps(), and DeleteFormatImagePriv().
Definition at line 53 of file mythpainter_d3d9.h.
Referenced by ClearCache(), DeleteFormatImagePriv(), GetImageFromCache(), and Teardown().
|
protected |
Definition at line 54 of file mythpainter_d3d9.h.
Referenced by ClearCache(), DeleteFormatImagePriv(), GetImageFromCache(), and Teardown().
|
protected |
Definition at line 50 of file mythpainter_d3d9.h.
Referenced by Begin(), DrawRect(), End(), GetImageFromCache(), InitD3D9(), MythD3D9Painter(), and Teardown().
Definition at line 52 of file mythpainter_d3d9.h.
|
protected |
Definition at line 51 of file mythpainter_d3d9.h.