MythTV  master
mythmainwindow_internal.h
Go to the documentation of this file.
1 #ifndef MYTHMAINWINDOW_INT
2 #define MYTHMAINWINDOW_INT
3 
4 // Qt
5 #include <QWidget>
6 
7 // MythTV
8 #include "mythrender_base.h"
9 
10 class MythMainWindow;
12 
13 class MythPainterWindow : public QWidget
14 {
15  public:
17  MythRender* GetRenderDevice(void) { return m_render; }
18  bool RenderIsShared (void) { return m_render && m_render->IsShared(); }
19 
20  protected:
21  MythRender* m_render { nullptr };
22 };
23 
24 #ifdef USING_OPENGL
25 #include "mythrenderopengl.h"
27 {
28  Q_OBJECT
29 
30  public:
32  ~MythPainterWindowGL() override;
33  bool IsValid(void);
34  QPaintEngine *paintEngine() const override;
35 
36  // QWidget
37  void paintEvent(QPaintEvent *e) override;
38 
39  MythMainWindow *m_parent { nullptr };
40  MythMainWindowPrivate *d { nullptr };
41  bool m_valid { false };
42 };
43 #endif
44 
45 #ifdef _WIN32
47 {
48  Q_OBJECT
49 
50  public:
52 
53  // QWidget
54  void paintEvent(QPaintEvent *e) override;
55 
58 };
59 #endif
60 
62 {
63  Q_OBJECT
64 
65  public:
67 
68  // QWidget
69  void paintEvent(QPaintEvent *e) override;
70 
73 };
74 
75 #endif
void paintEvent(QPaintEvent *e) override
~MythPainterWindowGL() override
MythMainWindowPrivate * d
QPaintEngine * paintEngine() const override
MythMainWindowPrivate * d
bool IsShared(void) const
Warning: The reference count can be decremented between the call to this function and the use of it's...
void paintEvent(QPaintEvent *e) override
MythMainWindowPrivate * d
MythPainterWindow(MythMainWindow *MainWin)
MythPainterWindowD3D9(MythMainWindow *win, MythMainWindowPrivate *priv)
MythPainterWindowQt(MythMainWindow *MainWin, MythMainWindowPrivate *MainWinPriv)
MythPainterWindowGL(MythMainWindow *MainWin, MythMainWindowPrivate *MainWinPriv)
void paintEvent(QPaintEvent *e) override
MythRender * GetRenderDevice(void)