MythTV
master
mythtv
libs
libmythui
mythpaintergpu.h
Go to the documentation of this file.
1
#ifndef MYTHPAINTERGPU_H
2
#define MYTHPAINTERGPU_H
3
4
// MythTV
5
#include "
mythuiexp.h
"
6
#include "
mythpainter.h
"
7
8
class
MythMainWindow
;
9
class
MythDisplay
;
10
11
class
MUI_PUBLIC
MythPainterGPU
:
public
MythPainter
12
{
13
Q_OBJECT
14
15
public
:
16
enum
ViewControl
: std::uint8_t
17
{
18
None
= 0x00,
19
Viewport = 0x01,
20
Framebuffer = 0x02
21
};
22
Q_DECLARE_FLAGS(ViewControls, ViewControl)
23
24
explicit
MythPainterGPU
(
MythMainWindow
* Parent);
25
~MythPainterGPU
()
override
=
default
;
26
27
void
SetViewControl (ViewControls Control);
28
29
public
slots:
30
void
DisplayChanged ();
31
32
protected
:
33
MythMainWindow
* m_parent {
nullptr
};
34
ViewControls m_viewControl { Viewport | Framebuffer };
35
qreal m_pixelRatio { 1.0 };
36
bool
m_usingHighDPI {
false
};
37
QSize
m_lastSize
;
38
};
39
40
Q_DECLARE_OPERATORS_FOR_FLAGS(MythPainterGPU::ViewControls)
41
42
#endif
MythDisplay
Definition:
mythdisplay.h:23
MythMainWindow
Definition:
mythmainwindow.h:29
MythPainterGPU
Definition:
mythpaintergpu.h:12
MythPainterGPU::ViewControl
ViewControl
Definition:
mythpaintergpu.h:17
MythPainterGPU::~MythPainterGPU
~MythPainterGPU() override=default
MythPainterGPU::m_lastSize
QSize m_lastSize
Definition:
mythpaintergpu.h:37
MythPainter
Definition:
mythpainter.h:32
mythpainter.h
mythuiexp.h
MUI_PUBLIC
#define MUI_PUBLIC
Definition:
mythuiexp.h:9
AutoExtendType::None
@ None
Generated on Tue Jul 28 2026 03:18:41 for MythTV by
1.9.4