Enum wayland_protocols::unstable::pointer_constraints::v1::server::zwp_locked_pointer_v1::Request
[−]
[src]
pub enum Request {
Destroy,
SetCursorPositionHint {
surface_x: f64,
surface_y: f64,
},
SetRegion {
region: Option<Resource<WlRegion>>,
},
}Variants
Destroydestroy the locked pointer object
Destroy the locked pointer object. If applicable, the compositor will unlock the pointer.
This is a destructor, once received this object cannot be used any longer.
SetCursorPositionHintset 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.
Fields of SetCursorPositionHint
surface_x: f64 | |
surface_y: f64 |
SetRegionset 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.
Fields of SetRegion
region: Option<Resource<WlRegion>> |
Trait Implementations
impl MessageGroup for Request[src]
fn is_destructor(&self) -> bool[src]
Whether this message is a destructor Read more
unsafe fn from_raw_c(
obj: *mut c_void,
opcode: u32,
args: *const wl_argument
) -> Result<Request, ()>[src]
obj: *mut c_void,
opcode: u32,
args: *const wl_argument
) -> Result<Request, ()>
Construct a message of this group from its C representation
fn as_raw_c_in<F, T>(self, f: F) -> T where
F: FnOnce(u32, &mut [wl_argument]) -> T, [src]
F: FnOnce(u32, &mut [wl_argument]) -> T,
Build a C representation of this message Read more