Function input_sys::libinput_tablet_pad_mode_group_get_num_modes [] [src]

pub unsafe extern "C" fn libinput_tablet_pad_mode_group_get_num_modes(
    group: *mut libinput_tablet_pad_mode_group
) -> c_uint

@ingroup tablet_pad_modes

Query the mode group for the number of available modes. The number of modes is usually decided by the number of physical LEDs available on the device. Different mode groups may have a different number of modes. Use libinput_tablet_pad_mode_group_get_mode() to get the currently active mode.

libinput guarantees that at least one mode is available. A device without mode switching capability has a single mode group and a single mode.

@param group A previously obtained mode group @return the number of modes available in this mode group