Copyright | Will Thompson, Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
DevicePad
is an interface implemented by devices of type
InputSourceTabletPad
, it allows querying the features provided
by the pad device.
Tablet pads may contain one or more groups, each containing a subset
of the buttons/rings/strips available. devicePadGetNGroups
can be used to obtain the number of groups, devicePadGetNFeatures
and devicePadGetFeatureGroup
can be combined to find out the
number of buttons/rings/strips the device has, and how are they grouped.
Each of those groups have different modes, which may be used to map
each individual pad feature to multiple actions. Only one mode is
effective (current) for each given group, different groups may have
different current modes. The number of available modes in a group can
be found out through devicePadGetGroupNModes
, and the current
mode for a given group will be notified through the EventPadGroupMode
event.
- newtype DevicePad = DevicePad (ManagedPtr DevicePad)
- noDevicePad :: Maybe DevicePad
- class GObject o => IsDevicePad o
- toDevicePad :: IsDevicePad o => o -> IO DevicePad
- data DevicePadGetFeatureGroupMethodInfo
- devicePadGetFeatureGroup :: (HasCallStack, MonadIO m, IsDevicePad a) => a -> DevicePadFeature -> Int32 -> m Int32
- data DevicePadGetGroupNModesMethodInfo
- devicePadGetGroupNModes :: (HasCallStack, MonadIO m, IsDevicePad a) => a -> Int32 -> m Int32
- data DevicePadGetNFeaturesMethodInfo
- devicePadGetNFeatures :: (HasCallStack, MonadIO m, IsDevicePad a) => a -> DevicePadFeature -> m Int32
- data DevicePadGetNGroupsMethodInfo
- devicePadGetNGroups :: (HasCallStack, MonadIO m, IsDevicePad a) => a -> m Int32
Exported types
GObject DevicePad Source # | |
IsObject DevicePad Source # | |
IsDevice DevicePad Source # | |
IsDevicePad DevicePad Source # | |
((~) * info (ResolveDevicePadMethod t DevicePad), MethodInfo * info DevicePad p) => IsLabel t (DevicePad -> p) Source # | |
((~) * info (ResolveDevicePadMethod t DevicePad), MethodInfo * info DevicePad p) => IsLabelProxy t (DevicePad -> p) Source # | |
HasAttributeList * DevicePad Source # | |
type AttributeList DevicePad Source # | |
type SignalList DevicePad Source # | |
class GObject o => IsDevicePad o Source #
toDevicePad :: IsDevicePad o => o -> IO DevicePad Source #
Methods
getFeatureGroup
data DevicePadGetFeatureGroupMethodInfo Source #
((~) * signature (DevicePadFeature -> Int32 -> m Int32), MonadIO m, IsDevicePad a) => MethodInfo * DevicePadGetFeatureGroupMethodInfo a signature Source # | |
devicePadGetFeatureGroup Source #
:: (HasCallStack, MonadIO m, IsDevicePad a) | |
=> a |
|
-> DevicePadFeature |
|
-> Int32 |
|
-> m Int32 | Returns: The group number of the queried pad feature. |
Returns the group the given feature
and idx
belong to,
or -1 if feature/index do not exist in pad
.
Since: 3.22
getGroupNModes
data DevicePadGetGroupNModesMethodInfo Source #
((~) * signature (Int32 -> m Int32), MonadIO m, IsDevicePad a) => MethodInfo * DevicePadGetGroupNModesMethodInfo a signature Source # | |
devicePadGetGroupNModes Source #
:: (HasCallStack, MonadIO m, IsDevicePad a) | |
=> a |
|
-> Int32 |
|
-> m Int32 | Returns: The number of modes available in |
Returns the number of modes that group
may have.
Since: 3.22
getNFeatures
data DevicePadGetNFeaturesMethodInfo Source #
((~) * signature (DevicePadFeature -> m Int32), MonadIO m, IsDevicePad a) => MethodInfo * DevicePadGetNFeaturesMethodInfo a signature Source # | |
devicePadGetNFeatures Source #
:: (HasCallStack, MonadIO m, IsDevicePad a) | |
=> a |
|
-> DevicePadFeature |
|
-> m Int32 | Returns: The amount of elements of type |
Returns the number of features a tablet pad has.
Since: 3.22
getNGroups
data DevicePadGetNGroupsMethodInfo Source #
((~) * signature (m Int32), MonadIO m, IsDevicePad a) => MethodInfo * DevicePadGetNGroupsMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsDevicePad a) | |
=> a |
|
-> m Int32 | Returns: The number of button/ring/strip groups in the pad. |
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.
Since: 3.22