MythTV
master
mythtv
libs
libmythui
platforms
mythwaylandextras.h
Go to the documentation of this file.
1
#ifndef MYTHWAYLANDEXTRAS_H
2
#define MYTHWAYLANDEXTRAS_H
3
4
// Qt
5
#include <QRect>
6
7
// Std
8
#include <map>
9
10
class
QWidget;
11
struct
wl_interface;
12
struct
wl_display;
13
struct
wl_registry;
14
struct
wl_compositor;
15
struct
wl_surface;
16
17
using
MythWaylandRegistry
= std::map<const wl_interface*,void*>;
18
19
class
MythWaylandExtras
20
{
21
public
:
22
static
void
AnnounceGlobal
(
void
* Opaque,
struct
wl_registry* Reg, uint32_t
Name
,
23
const
char
* Interface, uint32_t Version);
24
static
const
struct
wl_registry_listener
kRegistryListener
;
25
};
26
27
class
MythWaylandDevice
28
{
29
public
:
30
static
bool
IsAvailable
();
31
explicit
MythWaylandDevice
(QWidget* Widget);
32
bool
SetOpaqueRegion
(QRect Region)
const
;
33
34
wl_display*
m_display
{
nullptr
};
35
wl_compositor*
m_compositor
{
nullptr
};
36
wl_surface*
m_surface
{
nullptr
};
37
};
38
39
#endif
MythWaylandRegistry
std::map< const wl_interface *, void * > MythWaylandRegistry
Definition:
mythwaylandextras.h:17
MythWaylandDevice::m_surface
wl_surface * m_surface
Definition:
mythwaylandextras.h:36
MythWaylandDevice
A simple wrapper to retrieve the major Wayland objects from the Qt Wayland native interface.
Definition:
mythwaylandextras.h:27
MythWaylandDevice::SetOpaqueRegion
bool SetOpaqueRegion(QRect Region) const
Provide a rendering optimisation hint to the compositor.
Definition:
mythwaylandextras.cpp:54
MythWaylandDevice::IsAvailable
static bool IsAvailable()
Check whether we can connect to a Wayland server.
Definition:
mythwaylandextras.cpp:100
MythWaylandExtras::AnnounceGlobal
static void AnnounceGlobal(void *Opaque, struct wl_registry *Reg, uint32_t Name, const char *Interface, uint32_t Version)
MythTV implementation of the Wayland registry callback.
Definition:
mythwaylandextras.cpp:73
MythWaylandDevice::MythWaylandDevice
MythWaylandDevice(QWidget *Widget)
Definition:
mythwaylandextras.cpp:26
MythWaylandExtras
Definition:
mythwaylandextras.cpp:73
Name
Definition:
channelsettings.cpp:71
MythWaylandDevice::m_compositor
wl_compositor * m_compositor
Definition:
mythwaylandextras.h:35
MythWaylandDevice::m_display
wl_display * m_display
Definition:
mythwaylandextras.h:34
MythWaylandExtras::kRegistryListener
static const struct wl_registry_listener kRegistryListener
Definition:
mythwaylandextras.h:24
Generated on Tue Jan 7 2025 03:18:37 for MythTV by
1.8.17