Function input_sys::libinput_device_get_size[][src]

pub unsafe extern "C" fn libinput_device_get_size(
    device: *mut libinput_device,
    width: *mut f64,
    height: *mut f64
) -> c_int
Expand description

@ingroup device

Get the physical size of a device in mm, where meaningful. This function only succeeds on devices with the required data, i.e. tablets, touchpads and touchscreens.

If this function returns nonzero, width and height are unmodified.

@param device The device @param width Set to the width of the device @param height Set to the height of the device @return 0 on success, or nonzero otherwise