Wayland++ 1.0.0
C++ Bindings for Wayland
|
an exported surface handle More...
#include <wayland-server-protocol-unstable.hpp>
Inherits wayland::server::resource_t.
Public Member Functions | |
std::function< void()> & | on_destroy () |
unexport the exported surface | |
void | handle (std::string const &handle, bool post=true) |
the exported surface handle | |
bool | proxy_has_object () const |
Check whether this wrapper actually wraps an object. | |
void | post_no_memory () const |
uint32_t | get_id () const |
client_t | get_client () const |
unsigned int | get_version () const |
std::string | get_class () |
Static Public Attributes | |
static constexpr std::uint32_t | handle_since_version = 1 |
Minimum protocol version required for the handle function. | |
an exported surface handle
An xdg_exported object represents an exported reference to a surface. The exported surface may be referenced as long as the xdg_exported object not destroyed. Destroying the xdg_exported invalidates any relationship the importer may have established using xdg_imported.
Definition at line 8349 of file wayland-server-protocol-unstable.hpp.
|
inherited |
Retrieve the interface name (class) of a resource object.
|
inherited |
Get the associated client
|
inherited |
Get the internal ID of the resource
|
inherited |
Get interface version
void zxdg_exported_v2_t::handle | ( | std::string const & | handle, |
bool | post = true |
||
) |
the exported surface handle
handle | the exported surface handle |
The handle event contains the unique handle of this exported surface reference. It may be shared with any client, which then can use it to import the surface by calling xdg_importer.import_toplevel. A handle may be used to import the surface multiple times.
Definition at line 7974 of file wayland-server-protocol-unstable.cpp.
std::function< void()> & zxdg_exported_v2_t::on_destroy | ( | ) |
unexport the exported surface
Revoke the previously exported surface. This invalidates any relationship the importer may have set up using the xdg_imported created given the handle sent via xdg_exported.handle.
Definition at line 7968 of file wayland-server-protocol-unstable.cpp.
|
inherited |
Post "not enough memory" error to the client
If the compositor has not enough memory to fulfill a certail request of the client, this function can be called to notify the client of this circumstance.
|
inherited |
Check whether this wrapper actually wraps an object.
|
staticconstexpr |
Minimum protocol version required for the handle function.
Definition at line 8397 of file wayland-server-protocol-unstable.hpp.