MythTV
master
|
A simple wrapper to retrieve the major Wayland objects from the Qt Wayland native interface. More...
#include <libmythui/platforms/mythwaylandextras.h>
Public Member Functions | |
MythWaylandDevice (QWidget *Widget) | |
bool | SetOpaqueRegion (QRect Region) const |
Provide a rendering optimisation hint to the compositor. More... | |
Static Public Member Functions | |
static bool | IsAvailable () |
Check whether we can connect to a Wayland server. More... | |
Public Attributes | |
wl_display * | m_display { nullptr } |
wl_compositor * | m_compositor { nullptr } |
wl_surface * | m_surface { nullptr } |
A simple wrapper to retrieve the major Wayland objects from the Qt Wayland native interface.
Definition at line 27 of file mythwaylandextras.h.
|
explicit |
Definition at line 26 of file mythwaylandextras.cpp.
|
static |
Check whether we can connect to a Wayland server.
Definition at line 100 of file mythwaylandextras.cpp.
bool MythWaylandDevice::SetOpaqueRegion | ( | QRect | Region | ) | const |
Provide a rendering optimisation hint to the compositor.
This is only a hint and support varies by compositor. As a result we still need to use other workarounds to ensure alpha blending works correctly.
Definition at line 54 of file mythwaylandextras.cpp.
wl_display* MythWaylandDevice::m_display { nullptr } |
Definition at line 34 of file mythwaylandextras.h.
Referenced by MythWaylandDevice(), and MythScreenSaverWayland::WindowReady().
wl_compositor* MythWaylandDevice::m_compositor { nullptr } |
Definition at line 35 of file mythwaylandextras.h.
Referenced by MythWaylandDevice(), and SetOpaqueRegion().
wl_surface* MythWaylandDevice::m_surface { nullptr } |
Definition at line 36 of file mythwaylandextras.h.
Referenced by MythScreenSaverWayland::Disable(), MythWaylandDevice(), SetOpaqueRegion(), and MythScreenSaverWayland::WindowReady().