MythTV  master
interactivescreen.h
Go to the documentation of this file.
1 #ifndef INTERACTIVESCREEN_H
2 #define INTERACTIVESCREEN_H
3 
4 // MythTV
5 #include "mythscreentype.h"
6 
7 class MythPlayerUI;
8 
10 {
11  Q_OBJECT
12  public:
13  InteractiveScreen(MythPlayerUI* Player, MythPainter* Painter, const QString& Name);
14  ~InteractiveScreen() override = default;
15  bool Create() override
16  {
17  SetArea(MythRect());
18  return true;
19  }
20  void UpdateArea();
21  void OptimiseDisplayedArea();
22 
23  public slots:
24  void Close() override;
25 
26  private:
27  MythPlayerUI* m_player { nullptr };
28  QRect m_safeArea;
29 };
30 
31 #endif
InteractiveScreen::~InteractiveScreen
~InteractiveScreen() override=default
MythUIType::SetArea
virtual void SetArea(const MythRect &rect)
Definition: mythuitype.cpp:595
MythScreenType
Screen in which all other widgets are contained and rendered.
Definition: mythscreentype.h:44
MythRect
Wrapper around QRect allowing us to handle percentage and other relative values for areas in mythui.
Definition: mythrect.h:17
InteractiveScreen::Close
void Close() override
Definition: interactivescreen.cpp:13
MythPlayerUI
Definition: mythplayerui.h:10
InteractiveScreen::m_player
MythPlayerUI * m_player
Definition: interactivescreen.h:27
InteractiveScreen
Definition: interactivescreen.h:9
InteractiveScreen::OptimiseDisplayedArea
void OptimiseDisplayedArea()
Definition: interactivescreen.cpp:34
MythPainter
Definition: mythpainter.h:32
Name
Definition: channelsettings.cpp:46
InteractiveScreen::m_safeArea
QRect m_safeArea
Definition: interactivescreen.h:28
InteractiveScreen::UpdateArea
void UpdateArea()
Definition: interactivescreen.cpp:19
Player
Definition: zmliveplayer.h:34
InteractiveScreen::Create
bool Create() override
Definition: interactivescreen.h:15
mythscreentype.h
InteractiveScreen::InteractiveScreen
InteractiveScreen(MythPlayerUI *Player, MythPainter *Painter, const QString &Name)
Definition: interactivescreen.cpp:5