[−][src]Module wayland_raw_protocol_bindings::client::pointer_constraints_unstable_v1::zwp_pointer_constraints_v1
constrain the movement of a pointer
The global interface exposing pointer constraining functionality. It exposes two requests: lock_pointer for locking the pointer to its position, and confine_pointer for locking the pointer to a region.
The lock_pointer and confine_pointer requests create the objects wp_locked_pointer and wp_confined_pointer respectively, and the client can use these objects to interact with the lock.
For any surface, only one lock or confinement may be active across all wl_pointer objects of the same seat. If a lock or confinement is requested when another lock or confinement is active or requested on the same surface and with any of the wl_pointer objects of the same seat, an 'already_constrained' error will be raised.
Enums
error | wp_pointer_constraints error values |
lifetime | constraint lifetime |
zwp_pointer_constraints_v1 |
Statics
zwp_pointer_constraints_v1_requests | C-representation of the messages of this interface, for interop |
zwp_pointer_constraints_v1_interface | C representation of this interface, for interop |
Traits
zwp_pointer_constraints_v1_listener | An interface for handling events. |
Functions
zwp_pointer_constraints_v1_set_user_data⚠ | |
zwp_pointer_constraints_v1_get_user_data⚠ | |
zwp_pointer_constraints_v1_get_version⚠ | |
zwp_pointer_constraints_v1_add_listener⚠ | |
zwp_pointer_constraints_v1_add_rust_listener⚠ | |
zwp_pointer_constraints_v1_destroy⚠ | destroy the pointer constraints manager object |
zwp_pointer_constraints_v1_lock_pointer⚠ | lock pointer to a position |
zwp_pointer_constraints_v1_confine_pointer⚠ | confine pointer to a region |