[−][src]Trait gdk::DevicePadExt
Required methods
fn get_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: v3_22
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 get_group_n_modes(&self, group_idx: i32) -> i32
Returns the number of modes that group
may have.
Feature: v3_22
group_idx
group to get the number of available modes from
Returns
The number of modes available in group
.
fn get_n_features(&self, feature: DevicePadFeature) -> i32
Returns the number of features a tablet pad has.
Feature: v3_22
feature
a pad feature
Returns
The amount of elements of type feature
that this pad has.
fn get_n_groups(&self) -> i32
Returns the number of groups this pad device has. Pads have at least one group. A pad group is a subcollection of buttons/strip/rings that is affected collectively by a same current mode.
Feature: v3_22
Returns
The number of button/ring/strip groups in the pad.