Function input_sys::libinput_device_tablet_pad_get_mode_group[][src]

pub unsafe extern "C" fn libinput_device_tablet_pad_get_mode_group(
    device: *mut libinput_device,
    index: c_uint
) -> *mut libinput_tablet_pad_mode_group
Expand description

@ingroup tablet_pad_modes

The returned mode group is not refcounted and may become invalid after the next call to libinput. Use libinput_tablet_pad_mode_group_ref() and libinput_tablet_pad_mode_group_unref() to continue using the handle outside of the immediate scope.

While at least one reference is kept by the caller, the returned mode group will be identical for each subsequent call of this function with the same index and that same struct is returned from libinput_event_tablet_pad_get_mode_group(), provided the event was generated by this mode group.

@param device A device with the @ref LIBINPUT_DEVICE_CAP_TABLET_PAD capability @param index A mode group index @return the mode group with the given index or NULL if an invalid index is given.

@since 1.4