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

#include <mythcaptionsoverlay.h>

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

Public Member Functions

 MythCaptionsOverlay (MythMainWindow *MainWindow, TV *Tv, MythPlayerUI *Player, MythPainter *Painter)
 
 ~MythCaptionsOverlay () override
 
void Draw (QRect Rect)
 
MythScreenTypeGetWindow (const QString &Window) override
 
TeletextScreenInitTeletext ()
 
void EnableTeletext (bool Enable, int Page)
 
bool TeletextAction (const QString &Action, bool &Exit)
 
void TeletextReset ()
 
void TeletextClear ()
 
SubtitleScreenInitSubtitles ()
 
void EnableSubtitles (int Type, bool ForcedOnly=false)
 
void DisableForcedSubtitles ()
 
void ClearSubtitles ()
 
void DisplayDVDButton (AVSubtitle *DVDButton, QRect &Pos)
 
void DisplayBDOverlay (MythBDOverlay *Overlay)
 
- Public Member Functions inherited from MythMediaOverlay
 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 void HideWindow (const QString &Window)
 

Protected Member Functions

void TearDown () override
 
- Protected Member Functions inherited from MythMediaOverlay
void OverrideUIScale (bool Log=true)
 
void RevertUIScale ()
 
MythScreenTypeInitWindow (const QString &Window, MythScreenType *Screen)
 

Additional Inherited Members

- Protected Attributes inherited from MythMediaOverlay
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 17 of file mythcaptionsoverlay.h.

Constructor & Destructor Documentation

◆ MythCaptionsOverlay()

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

Definition at line 13 of file mythcaptionsoverlay.cpp.

◆ ~MythCaptionsOverlay()

MythCaptionsOverlay::~MythCaptionsOverlay ( )
override

Definition at line 19 of file mythcaptionsoverlay.cpp.

Member Function Documentation

◆ Draw()

void MythCaptionsOverlay::Draw ( QRect  Rect)

Definition at line 29 of file mythcaptionsoverlay.cpp.

Referenced by MythPlayerUI::RenderVideoFrame().

◆ GetWindow()

MythScreenType * MythCaptionsOverlay::GetWindow ( const QString &  Window)
overridevirtual

Reimplemented from MythMediaOverlay.

Definition at line 57 of file mythcaptionsoverlay.cpp.

Referenced by DisplayBDOverlay(), and MythPlayerUI::PreProcessNormalFrame().

◆ InitTeletext()

TeletextScreen * MythCaptionsOverlay::InitTeletext ( )

Definition at line 73 of file mythcaptionsoverlay.cpp.

Referenced by EnableTeletext(), and TeletextReset().

◆ EnableTeletext()

void MythCaptionsOverlay::EnableTeletext ( bool  Enable,
int  Page 
)

◆ TeletextAction()

bool MythCaptionsOverlay::TeletextAction ( const QString &  Action,
bool Exit 
)

Definition at line 127 of file mythcaptionsoverlay.cpp.

Referenced by MythPlayerCaptionsUI::HandleTeletextAction().

◆ TeletextReset()

void MythCaptionsOverlay::TeletextReset ( )

Definition at line 138 of file mythcaptionsoverlay.cpp.

Referenced by MythPlayerCaptionsUI::ResetTeletext().

◆ TeletextClear()

void MythCaptionsOverlay::TeletextClear ( )

Definition at line 148 of file mythcaptionsoverlay.cpp.

Referenced by MythPlayerCaptionsUI::ResetCaptions().

◆ InitSubtitles()

SubtitleScreen * MythCaptionsOverlay::InitSubtitles ( )

◆ EnableSubtitles()

void MythCaptionsOverlay::EnableSubtitles ( int  Type,
bool  ForcedOnly = false 
)

◆ DisableForcedSubtitles()

void MythCaptionsOverlay::DisableForcedSubtitles ( void  )

◆ ClearSubtitles()

void MythCaptionsOverlay::ClearSubtitles ( )

◆ DisplayDVDButton()

void MythCaptionsOverlay::DisplayDVDButton ( AVSubtitle *  DVDButton,
QRect &  Pos 
)

Definition at line 213 of file mythcaptionsoverlay.cpp.

Referenced by MythDVDPlayer::DisplayDVDButton().

◆ DisplayBDOverlay()

void MythCaptionsOverlay::DisplayBDOverlay ( MythBDOverlay Overlay)

Definition at line 226 of file mythcaptionsoverlay.cpp.

Referenced by MythBDPlayer::DisplayMenu().

◆ TearDown()

void MythCaptionsOverlay::TearDown ( )
overrideprotectedvirtual

Reimplemented from MythMediaOverlay.

Definition at line 24 of file mythcaptionsoverlay.cpp.

Referenced by ~MythCaptionsOverlay().


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