boolseat_t::can_name()const
Check whether the name function is available with the currently bound version of the protocol.
Definition at line 2601 of file wayland-server-protocol.cpp.
voidseat_t::capabilities(seat_capabilityconst&capabilities,boolpost=true)
seat capabilities changed
Parameterscapabilities capabilities of the seat
This is emitted whenever a seat gains or loses the pointer, keyboard or touch capabilities. The argument
is a capability enum containing the complete set of capabilities this seat has.
When the pointer capability is added, a client may create a wl_pointer object using the
wl_seat.get_pointer request. This object will receive pointer events until the capability is removed in
the future.
When the pointer capability is removed, a client should destroy the wl_pointer objects associated with
the seat where the capability was removed, using the wl_pointer.release request. No further pointer
events will be received on these objects.
In some compositors, if a seat regains the pointer capability and a client has a previously obtained
wl_pointer object of version 4 or less, that object may start sending pointer events again. This behavior
is considered a misinterpretation of the intended behavior and must not be relied upon by the client.
wl_pointer objects of version 5 or later must not send events if created before the most recent event
notifying the client of an added pointer capability.
The above behavior also applies to wl_keyboard and wl_touch with the keyboard and touch capabilities,
respectively.
Definition at line 2591 of file wayland-server-protocol.cpp.
std::stringwayland::server::resource_t::get_class()[inherited]
Retrieve the interface name (class) of a resource object.
Returns
Interface name of the resource object.
client_twayland::server::resource_t::get_client()const[inherited]
Get the associated client
Returns
the client that owns the resource.
uint32_twayland::server::resource_t::get_id()const[inherited]
Get the internal ID of the resource
Returns
the internal ID of the resource
unsignedintwayland::server::resource_t::get_version()const[inherited]
Get interface version
Returns
Interface version this resource has been constructed with.
voidseat_t::name(std::stringconst&name,boolpost=true)
unique identifier for this seat
Parametersname seat identifier
In a multi-seat configuration the seat name can be used by clients to help identify which physical
devices the seat represents.
The seat name is a UTF-8 string with no convention defined for its contents. Each name is unique among
all wl_seat globals. The name is only guaranteed to be unique for the current compositor instance.
The same seat names are used for all clients. Thus, the name can be shared across processes to refer to a
specific wl_seat global.
The name event is sent after binding to the seat global. This event is only sent once per seat object,
and the name does not change over the lifetime of the wl_seat global.
Compositors may re-use the same seat name if the wl_seat global is destroyed and re-created later.
Definition at line 2596 of file wayland-server-protocol.cpp.
std::function<void(keyboard_t)>&seat_t::on_get_keyboard()
return keyboard object
Parametersid seat keyboard
The ID provided will be initialized to the wl_keyboard interface for this seat.
This request only takes effect if the seat has the keyboard capability, or has had the keyboard
capability in the past. It is a protocol violation to issue this request on a seat that has never had the
keyboard capability. The missing_capability error will be sent in this case.
Definition at line 2573 of file wayland-server-protocol.cpp.
std::function<void(pointer_t)>&seat_t::on_get_pointer()
return pointer object
Parametersid seat pointer
The ID provided will be initialized to the wl_pointer interface for this seat.
This request only takes effect if the seat has the pointer capability, or has had the pointer capability
in the past. It is a protocol violation to issue this request on a seat that has never had the pointer
capability. The missing_capability error will be sent in this case.
Definition at line 2567 of file wayland-server-protocol.cpp.
std::function<void(touch_t)>&seat_t::on_get_touch()
return touch object
Parametersid seat touch interface
The ID provided will be initialized to the wl_touch interface for this seat.
This request only takes effect if the seat has the touch capability, or has had the touch capability in
the past. It is a protocol violation to issue this request on a seat that has never had the touch
capability. The missing_capability error will be sent in this case.
Definition at line 2579 of file wayland-server-protocol.cpp.
std::function<void()>&seat_t::on_release()
release the seat object Using this request a client can tell the server that it is not going to use the
seat object anymore.
Definition at line 2585 of file wayland-server-protocol.cpp.
voidseat_t::post_missing_capability(std::stringconst&msg)
Post error: get_pointer, get_keyboard or get_touch called on seat without the matching capability.
Definition at line 2606 of file wayland-server-protocol.cpp.
voidwayland::server::resource_t::post_no_memory()const[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.
boolwayland::server::resource_t::proxy_has_object()const[inherited]
Check whether this wrapper actually wraps an object.
Returns
true if there is an underlying object, false if this wrapper is empty