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

#include <mythmediaoverlay.h>

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

Public Member Functions

 MythMediaOverlay (MythMainWindow *MainWindow, TV *Tv, MythPlayerUI *Player, MythPainter *Painter)
 
 ~MythMediaOverlay () override
 
void SetPlayer (MythPlayerUI *Player)
 
virtual bool Init (QRect Rect, float FontAspect)
 
QRect Bounds () const
 
int GetFontStretch () const
 
bool HasWindow (const QString &Window)
 
virtual MythScreenTypeGetWindow (const QString &Window)
 
virtual void HideWindow (const QString &Window)
 

Protected Member Functions

virtual void TearDown ()
 
void OverrideUIScale (bool Log=true)
 
void RevertUIScale ()
 
MythScreenTypeInitWindow (const QString &Window, MythScreenType *Screen)
 

Protected Attributes

MythMainWindowm_mainWindow { nullptr }
 
TVm_tv { nullptr }
 
MythPlayerUIm_player { nullptr }
 
MythPainterm_painter { nullptr }
 
QRect m_rect { }
 
bool m_uiScaleOverride { false }
 
float m_savedWMult { 1.0F }
 
float m_savedHMult { 1.0F }
 
QRect m_savedUIRect { }
 
int m_fontStretch { 0 }
 
int m_savedFontStretch { 0 }
 
QMap< QString, MythScreenType * > m_children { }
 

Detailed Description

Definition at line 30 of file mythmediaoverlay.h.

Constructor & Destructor Documentation

◆ MythMediaOverlay()

MythMediaOverlay::MythMediaOverlay ( MythMainWindow MainWindow,
TV Tv,
MythPlayerUI Player,
MythPainter Painter 
)

Definition at line 27 of file mythmediaoverlay.cpp.

◆ ~MythMediaOverlay()

MythMediaOverlay::~MythMediaOverlay ( )
override

Definition at line 35 of file mythmediaoverlay.cpp.

Member Function Documentation

◆ SetPlayer()

void MythMediaOverlay::SetPlayer ( MythPlayerUI Player)

Definition at line 40 of file mythmediaoverlay.cpp.

Referenced by MythPlayerUI::MythPlayerUI().

◆ Init()

bool MythMediaOverlay::Init ( QRect  Rect,
float  FontAspect 
)
virtual

Reimplemented in OSD.

Definition at line 62 of file mythmediaoverlay.cpp.

Referenced by MythPlayerVideoUI::ReinitOSD(), and MythPlayerUI::VideoStart().

◆ Bounds()

QRect MythMediaOverlay::Bounds ( ) const

Definition at line 52 of file mythmediaoverlay.cpp.

Referenced by MythPlayerVideoUI::ReinitOSD().

◆ GetFontStretch()

int MythMediaOverlay::GetFontStretch ( ) const

Definition at line 57 of file mythmediaoverlay.cpp.

Referenced by MythPlayerVideoUI::ReinitOSD().

◆ HasWindow()

bool MythMediaOverlay::HasWindow ( const QString &  Window)

◆ GetWindow()

MythScreenType * MythMediaOverlay::GetWindow ( const QString &  Window)
virtual

◆ HideWindow()

void MythMediaOverlay::HideWindow ( const QString &  Window)
virtual

Reimplemented in OSD.

Definition at line 74 of file mythmediaoverlay.cpp.

Referenced by OSD::HideWindow(), and MythCaptionsOverlay::InitTeletext().

◆ TearDown()

void MythMediaOverlay::TearDown ( )
protectedvirtual

Reimplemented in OSD, and MythCaptionsOverlay.

Definition at line 45 of file mythmediaoverlay.cpp.

Referenced by Init(), MythCaptionsOverlay::TearDown(), OSD::TearDown(), and ~MythMediaOverlay().

◆ OverrideUIScale()

void MythMediaOverlay::OverrideUIScale ( bool  Log = true)
protected

◆ RevertUIScale()

void MythMediaOverlay::RevertUIScale ( )
protected

◆ InitWindow()

MythScreenType * MythMediaOverlay::InitWindow ( const QString &  Window,
MythScreenType Screen 
)
protected

Definition at line 100 of file mythmediaoverlay.cpp.

Referenced by GetWindow(), and MythCaptionsOverlay::GetWindow().

Member Data Documentation

◆ m_mainWindow

MythMainWindow* MythMediaOverlay::m_mainWindow { nullptr }
protected

◆ m_tv

TV* MythMediaOverlay::m_tv { nullptr }
protected

Definition at line 51 of file mythmediaoverlay.h.

Referenced by OSD::DialogShow(), and OSD::OSD().

◆ m_player

MythPlayerUI* MythMediaOverlay::m_player { nullptr }
protected

◆ m_painter

MythPainter* MythMediaOverlay::m_painter { nullptr }
protected

◆ m_rect

QRect MythMediaOverlay::m_rect { }
protected

Definition at line 54 of file mythmediaoverlay.h.

Referenced by Bounds(), Init(), OSD::Init(), OverrideUIScale(), and OSD::PositionWindow().

◆ m_uiScaleOverride

bool MythMediaOverlay::m_uiScaleOverride { false }
protected

Definition at line 55 of file mythmediaoverlay.h.

Referenced by OSD::Draw(), OverrideUIScale(), and RevertUIScale().

◆ m_savedWMult

float MythMediaOverlay::m_savedWMult { 1.0F }
protected

Definition at line 56 of file mythmediaoverlay.h.

Referenced by OverrideUIScale(), and RevertUIScale().

◆ m_savedHMult

float MythMediaOverlay::m_savedHMult { 1.0F }
protected

Definition at line 57 of file mythmediaoverlay.h.

Referenced by OverrideUIScale(), and RevertUIScale().

◆ m_savedUIRect

QRect MythMediaOverlay::m_savedUIRect { }
protected

Definition at line 58 of file mythmediaoverlay.h.

Referenced by OverrideUIScale(), and RevertUIScale().

◆ m_fontStretch

int MythMediaOverlay::m_fontStretch { 0 }
protected

◆ m_savedFontStretch

int MythMediaOverlay::m_savedFontStretch { 0 }
protected

Definition at line 60 of file mythmediaoverlay.h.

Referenced by OverrideUIScale(), and RevertUIScale().

◆ m_children

QMap<QString, MythScreenType*> MythMediaOverlay::m_children { }
protected

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