wayland::serve...d_pointer_v1_t(3)
okay so bestie, this is the wayland::serve...d_pointer_v1_t(3) page from the Wayland++ manual, and weβre about to give the confined pointer object a full vibe check π
β¨
π NAME π
wayland::server::zwp_confined_pointer_v1_t β confined pointer object π¦
β¨ SYNOPSIS β¨
#include <wayland-server-protocol-unstable.hpp>
π Public Member Functions π
std::function< void()> & on_destroy ()β destroy the confined pointer object π«Άstd::function< void(region_t)> & on_set_region ()β set a new confine region πΈvoid confined (bool post=true)β pointer confined π₯void unconfined (bool post=true)β pointer unconfined π¦bool proxy_has_object () constβ check whether this wrapper actually wraps an object πvoid post_no_memory () constβ yeah, itβs here, details below π«Άuint32_t get_id () constβ get the internal ID, lowkey important πclient_t get_client () constβ get the client that owns the resource β¨unsigned int get_version () constβ get the interface version πstd::string get_class ()β get the interface name (class) β
πΈ Static Public Attributes πΈ
static constexpr std::uint32_t confined_since_version = 1β Minimum protocol version required for theconfinedfunction. π₯static constexpr std::uint32_t unconfined_since_version = 1β Minimum protocol version required for theunconfinedfunction. π₯
π Detailed Description π
confined pointer object β thatβs the whole name, and honestly it ate π
The wp_confined_pointer interface represents a confined pointer state.
This object will send the event confined when the confinement is activated. Whenever the confinement is activated, it is guaranteed that the surface the pointer is confined to will already have received pointer focus and that the pointer will be within the region passed to the request creating this object. It is up to the compositor to decide whether this requires some user interaction and if the pointer will warp to within the passed region if outside. No cap, thatβs the compositorβs call π.
To unconfine the pointer, send the destroy request. This will also destroy the wp_confined_pointer object. Yes bestie, destroy = unconfine + cleanup combo π«Ά.
If the compositor decides to unconfine the pointer the unconfined event is sent. The wp_confined_pointer object is at this point defunct and should be destroyed. Do not keep it around like a stale group chat π.
Definition at line 3002 of file wayland-server-protocol-unstable.hpp.
π§ Member Function Documentation π§
void zwp_confined_pointer_v1_t::confined (bool post = true)
pointer confined β notification that the pointer confinement of the seatβs pointer is activated β¨
Definition at line 5509 of file wayland-server-protocol-unstable.cpp.
std::string wayland::server::resource_t::get_class () [inherited]
Retrieve the interface name (class) of a resource object.
Returns β interface name of the resource object πΈ
client_t wayland::server::resource_t::get_client () const [inherited]
Get the associated client.
Returns β the client that owns the resource π«Ά
uint32_t wayland::server::resource_t::get_id () const [inherited]
Get the internal ID of the resource.
Returns β the internal ID of the resource π
unsigned int wayland::server::resource_t::get_version () const [inherited]
Get interface version.
Returns β interface version this resource has been constructed with π
std::function< void()> & zwp_confined_pointer_v1_t::on_destroy ()
destroy the confined pointer object. Destroy the confined pointer object. If applicable, the compositor will unconfine the pointer π₯
Definition at line 5497 of file wayland-server-protocol-unstable.cpp.
std::function< void(region_t)> & zwp_confined_pointer_v1_t::on_set_region ()
set a new confine region πΈ
Parameters
- region β region of surface
Set a new region used to confine the pointer.
The new confine region is double-buffered. The new confine region will only take effect when the associated surface gets its pending state applied. See wl_surface.commit for details.
If the confinement is active when the new confinement region is applied and the pointer ends up outside of newly applied region, the pointer may warped to a position within the new confinement region. If warped, a wl_pointer.motion event will be emitted, but no wp_relative_pointer.relative_motion event.
The compositor may also, instead of using the new region, unconfine the pointer.
For details about the confine region, see wp_confined_pointer.
Definition at line 5503 of file wayland-server-protocol-unstable.cpp.
void wayland::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 π
bool wayland::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 π
void zwp_confined_pointer_v1_t::unconfined (bool post = true)
pointer unconfined β notification that the pointer confinement of the seatβs pointer is no longer active. If this is a oneshot pointer confinement (see wp_pointer_constraints.lifetime) this object is now defunct and should be destroyed. If this is a persistent pointer confinement (see wp_pointer_constraints.lifetime) this pointer confinement may again reactivate in the future π¦
Definition at line 5514 of file wayland-server-protocol-unstable.cpp.
β Member Data Documentation β
std::uint32_t wayland::server::zwp_confined_pointer_v1_t::confined_since_version = 1 [static], [constexpr]β Minimum protocol version required for theconfinedfunction. Definition at line 3070 of filewayland-server-protocol-unstable.hpp.std::uint32_t wayland::server::zwp_confined_pointer_v1_t::unconfined_since_version = 1 [static], [constexpr]β Minimum protocol version required for theunconfinedfunction. Definition at line 3086 of filewayland-server-protocol-unstable.hpp.
π Author π
Generated automatically by Doxygen for Wayland++ from the source code.
xoxo, your Wayland++ bestie π This page is from Wayland++ version 1.0.1, dated Fri Mar 27 2026, and the footerβs tiny tag is 1wayland::serve...d_pointer_v1_t(3). Byeee, go keep those pointers confined and those objects destroyed π¦β¨
π¦ where this page comes from
- ubuntu stonking: waylandpp-dev 1.0.1-2 Β· BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms