Function libinput_event_touch_get_x_transformed
pub unsafe extern "C" fn libinput_event_touch_get_x_transformed(
event: *mut libinput_event_touch,
width: u32,
) -> f64
Expand description
@ingroup event_touch
Return the current absolute x coordinate of the touch event, transformed to screen coordinates.
For events not of type @ref LIBINPUT_EVENT_TOUCH_DOWN, @ref LIBINPUT_EVENT_TOUCH_MOTION, this function returns 0.
@note It is an application bug to call this function for events of type other than @ref LIBINPUT_EVENT_TOUCH_DOWN or @ref LIBINPUT_EVENT_TOUCH_MOTION.
@param event The libinput touch event @param width The current output screen width @return The current absolute x coordinate transformed to a screen coordinate