Skip to main content

host_pointer_at

Function host_pointer_at 

Source
pub(crate) fn host_pointer_at(
    place: CursorPlace,
    stream: (i32, i32),
    x: i32,
    y: i32,
    motion: u64,
) -> PointerAt
Expand description

A cursor meta’s position (x, y) in a stream negotiated at stream pixels as the pointer in the union layout: the display’s origin plus the position scaled to its capture size, the inverse of the mapping absolute motion is injected through (host::stream_point). The scale is the output’s capture pixels per logical pixel, what a relative pixel moves.