Enum wayland_protocols::unstable::pointer_constraints::v1::client::zwp_locked_pointer_v1::Request [−][src]
#[non_exhaustive]
pub enum Request {
Destroy,
SetCursorPositionHint {
surface_x: f64,
surface_y: f64,
},
SetRegion {
region: Option<WlRegion>,
},
}
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Destroy
destroy the locked pointer object
Destroy the locked pointer object. If applicable, the compositor will unlock the pointer.
This is a destructor, once sent this object cannot be used any longer.
SetCursorPositionHint
set the pointer cursor position hint
Set the cursor position hint relative to the top left corner of the surface.
If the client is drawing its own cursor, it should update the position hint to the position of its own cursor. A compositor may use this information to warp the pointer upon unlock in order to avoid pointer jumps.
The cursor position hint is double buffered. The new hint will only take effect when the associated surface gets it pending state applied. See wl_surface.commit for details.
SetRegion
set a new lock region
Set a new region used to lock the pointer.
The new lock region is double-buffered. The new lock region will only take effect when the associated surface gets its pending state applied. See wl_surface.commit for details.
For details about the lock region, see wp_locked_pointer.
Trait Implementations
Wire representation of this MessageGroup
The wrapper type for ObjectMap allowing the mapping of Object and NewId arguments to the object map during parsing. Read more
Whether this message is a destructor Read more
Retrieve the child Object
associated with this message if any
Construct a message from its raw representation
unsafe fn from_raw_c(
obj: *mut c_void,
opcode: u32,
args: *const wl_argument
) -> Result<Request, ()>
unsafe fn from_raw_c(
obj: *mut c_void,
opcode: u32,
args: *const wl_argument
) -> Result<Request, ()>
Construct a message of this group from its C representation Read more
Build a C representation of this message Read more