Function input_sys::libinput_event_pointer_get_absolute_x_transformed [] [src]

pub unsafe extern "C" fn libinput_event_pointer_get_absolute_x_transformed(
    event: *mut libinput_event_pointer,
    width: u32
) -> f64

@ingroup event_pointer

Return the current absolute x coordinate of the pointer event, transformed to screen coordinates.

For pointer events that are not of type @ref LIBINPUT_EVENT_POINTER_MOTION_ABSOLUTE, the return value of this function is undefined.

@note It is an application bug to call this function for events other than @ref LIBINPUT_EVENT_POINTER_MOTION_ABSOLUTE.

@param event The libinput pointer event @param width The current output screen width @return The current absolute x coordinate transformed to a screen coordinate