Skip to main content

DevicePadExt

Trait 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

Trait containing all DevicePad methods.

§Implementors

DevicePad

Provided Methods§

Source

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.

Source

fn group_n_modes(&self, group_idx: i32) -> i32

Returns the number of modes that group may have.

§group_idx

group to get the number of available modes from

§Returns

The number of modes available in group.

Source

fn n_features(&self, feature: DevicePadFeature) -> i32

Returns the number of features a tablet pad has.

§feature

a pad feature

§Returns

The amount of elements of type feature that this pad has.

Source

fn 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.

§Returns

The number of button/ring/strip groups in the pad.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§