MythTV  master
interactivescreen.h
Go to the documentation of this file.
1 #ifndef INTERACTIVESCREEN_H
2 #define INTERACTIVESCREEN_H
3 
4 #include "mythscreentype.h"
5 #include "mythplayer.h"
6 
8 {
9  public:
10  InteractiveScreen(MythPlayer *player, const QString &name);
11  virtual ~InteractiveScreen() = default;
12  bool Create(void) override // MythScreenType
13  {
14  SetArea(MythRect());
15  return true;
16  }
17  void UpdateArea(void);
18  void OptimiseDisplayedArea(void);
19 
20  public slots:
21  void Close() override; // MythScreenType
22 
23  private:
24  MythPlayer *m_player {nullptr};
25  QRect m_safeArea;
26 };
27 
28 #endif // INTERACTIVESCREEN_H
unsigned int slots[4]
Definition: element.c:38
bool Create(void) override
virtual ~InteractiveScreen()=default
InteractiveScreen(MythPlayer *player, const QString &name)
void Close() override
Wrapper around QRect allowing us to handle percentage and other relative values for areas in mythui.
Definition: mythrect.h:17
const char * name
Definition: ParseText.cpp:328
MythPlayer * m_player
virtual void SetArea(const MythRect &rect)
Definition: mythuitype.cpp:591
Screen in which all other widgets are contained and rendered.
void OptimiseDisplayedArea(void)