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

#include <mythrender_base.h>

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

Public Member Functions

 MythRender (RenderType type)
 
bool IsShared (void) const
 Warning: The reference count can be decremented between the call to this function and the use of it's value. More...
 
RenderType Type (void) const
 
bool IsErrored (void) const
 
QSize GetSize (void) const
 
virtual void Release (void)
 
- Public Member Functions inherited from ReferenceCounter
 ReferenceCounter (const QString &debugName, bool logDebug=true)
 Creates reference counter with an initial value of 1. More...
 
virtual int IncrRef (void)
 Increments reference count. More...
 
virtual int DecrRef (void)
 Decrements reference count and deletes on 0. More...
 

Protected Member Functions

virtual ~MythRender ()=default
 
- Protected Member Functions inherited from ReferenceCounter
virtual ~ReferenceCounter (void)
 Called on destruction, will warn if object deleted with references in place. More...
 

Protected Attributes

RenderType m_type
 
QSize m_size
 
bool m_errored
 
- Protected Attributes inherited from ReferenceCounter
bool m_logDebug
 This is used to suppress creating LoggingItem classes for LoggingItem reference count changes. More...
 
QAtomicInt m_referenceCount {1}
 

Additional Inherited Members

- Static Public Member Functions inherited from ReferenceCounter
static void PrintDebug (void)
 Print out any leaks if that level of debugging is enabled. More...
 

Detailed Description

Definition at line 22 of file mythrender_base.h.

Constructor & Destructor Documentation

◆ MythRender()

MythRender::MythRender ( RenderType  type)
inlineexplicit

Definition at line 25 of file mythrender_base.h.

◆ ~MythRender()

virtual MythRender::~MythRender ( )
protectedvirtualdefault

Member Function Documentation

◆ IsShared()

bool MythRender::IsShared ( void  ) const
inline

Warning: The reference count can be decremented between the call to this function and the use of it's value.

Definition at line 33 of file mythrender_base.h.

Referenced by MythMainWindow::animate(), VideoOutputOpenGL::CreatePainter(), MythMainWindow::drawScreen(), and MythMainWindow::HidePainterWindow().

◆ Type()

RenderType MythRender::Type ( void  ) const
inline

◆ IsErrored()

bool MythRender::IsErrored ( void  ) const
inline

Definition at line 40 of file mythrender_base.h.

Referenced by VideoOutputNullVDPAU::DrawSlice().

◆ GetSize()

QSize MythRender::GetSize ( void  ) const
inline

Definition at line 41 of file mythrender_base.h.

Referenced by VideoOutputVDPAU::PrepareFrame().

◆ Release()

virtual void MythRender::Release ( void  )
inlinevirtual

Reimplemented in MythRenderOpenGL.

Definition at line 42 of file mythrender_base.h.

Referenced by MythMainWindow::ShowPainterWindow().

Member Data Documentation

◆ m_type

RenderType MythRender::m_type
protected

◆ m_size

QSize MythRender::m_size
protected

◆ m_errored

bool MythRender::m_errored
protected

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