Function libinput_event_tablet_tool_get_x_transformed
pub unsafe extern "C" fn libinput_event_tablet_tool_get_x_transformed(
event: *mut libinput_event_tablet_tool,
width: u32,
) -> f64
Expand description
@ingroup event_tablet
Return the current absolute x coordinate of the tablet tool event, transformed to screen coordinates.
@note This function may be called for a specific axis even if libinput_event_tablet_tool_*_has_changed() returns 0 for that axis. libinput always includes all device axes in the event.
@note On some devices, returned value may be negative or larger than the width of the device. See the libinput documentation for more details.
@param event The libinput tablet tool event @param width The current output screen width @return the current absolute x coordinate transformed to a screen coordinate
@since 1.2