Trait gdk4::prelude::DevicePadExt
source · pub trait DevicePadExt: IsA<DevicePad> + Sealed + 'static {
// Provided methods
fn feature_group(&self, feature: DevicePadFeature, feature_idx: i32) -> i32 { ... }
fn group_n_modes(&self, group_idx: i32) -> i32 { ... }
fn n_features(&self, feature: DevicePadFeature) -> i32 { ... }
fn n_groups(&self) -> i32 { ... }
}
Expand description
Provided Methods§
sourcefn feature_group(&self, feature: DevicePadFeature, feature_idx: i32) -> i32
fn feature_group(&self, feature: DevicePadFeature, feature_idx: i32) -> i32
Returns the group the given @feature and @idx belong to.
f the feature or index do not exist in @self, -1 is returned.
feature
the feature type to get the group from
feature_idx
the index of the feature to get the group from
Returns
The group number of the queried pad feature.