Wayland platform handle.
More...
#include <RWLPlatformHandle.h>
|
| static std::shared_ptr< RWLPlatformHandle > | Make (wl_display *wlDisplay, CZOwn ownership) noexcept |
| | Creates a Wayland platform handle from an existing display connection.
|
| |
Wayland platform handle.
RWLPlatformHandle is the RPlatformHandle for the Wayland platform (RPlatform::Wayland). It wraps a client wl_display connection that Ream uses to talk to the compositor, and can be obtained from an RPlatformHandle via asWL().
◆ ~RWLPlatformHandle()
Destroys the handle, disconnecting the wl_display if it is owned.
◆ Make()
| static std::shared_ptr< RWLPlatformHandle > Make |
( |
wl_display * |
wlDisplay, |
|
|
CZOwn |
ownership |
|
) |
| |
|
staticnoexcept |
Creates a Wayland platform handle from an existing display connection.
- Parameters
-
| wlDisplay | The wl_display connection. Must not be null. |
| ownership | Whether this handle owns wlDisplay (and disconnects it on destruction) or merely borrows it. |
- Returns
- A valid handle on success, nullptr if
wlDisplay is null.
◆ wlDisplay()
| wl_display * wlDisplay |
( |
| ) |
const |
|
inlinenoexcept |
Returns the wrapped wl_display connection.