Trait gdk::prelude::DevicePadExt [−][src]
pub trait DevicePadExt: 'static { 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
Required methods
fn 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,
or -1 if feature/index do not exist in self
.
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.
fn group_n_modes(&self, group_idx: i32) -> i32
fn group_n_modes(&self, group_idx: i32) -> i32
fn n_features(&self, feature: DevicePadFeature) -> i32
fn n_features(&self, feature: DevicePadFeature) -> i32