Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
GI.Gdk.Objects.PadEvent
Description
An event related to a pad-based device.
Synopsis
- newtype PadEvent = PadEvent (ManagedPtr PadEvent)
- class (BoxedPtr o, TypedObject o, IsDescendantOf PadEvent o) => IsPadEvent o
- toPadEvent :: (MonadIO m, IsPadEvent o) => o -> m PadEvent
- padEventGetAxisValue :: (HasCallStack, MonadIO m, IsPadEvent a) => a -> m (Word32, Double)
- padEventGetButton :: (HasCallStack, MonadIO m, IsPadEvent a) => a -> m Word32
- padEventGetGroupMode :: (HasCallStack, MonadIO m, IsPadEvent a) => a -> m (Word32, Word32)
Exported types
Memory-managed wrapper type.
Constructors
PadEvent (ManagedPtr PadEvent) |
Instances
Eq PadEvent Source # | |
BoxedPtr PadEvent Source # | |
Defined in GI.Gdk.Objects.PadEvent | |
ManagedPtrNewtype PadEvent Source # | |
Defined in GI.Gdk.Objects.PadEvent Methods toManagedPtr :: PadEvent -> ManagedPtr PadEvent # | |
TypedObject PadEvent Source # | |
Defined in GI.Gdk.Objects.PadEvent | |
HasParentTypes PadEvent Source # | |
Defined in GI.Gdk.Objects.PadEvent | |
type ParentTypes PadEvent Source # | |
Defined in GI.Gdk.Objects.PadEvent |
class (BoxedPtr o, TypedObject o, IsDescendantOf PadEvent o) => IsPadEvent o Source #
Type class for types which can be safely cast to PadEvent
, for instance with toPadEvent
.
Instances
(BoxedPtr o, TypedObject o, IsDescendantOf PadEvent o) => IsPadEvent o Source # | |
Defined in GI.Gdk.Objects.PadEvent |
toPadEvent :: (MonadIO m, IsPadEvent o) => o -> m PadEvent Source #
Methods
Click to display all available methods, including inherited ones
Methods
ref, triggersContextMenu, unref.
Getters
getAxes, getAxis, getAxisValue, getButton, getDevice, getDeviceTool, getDisplay, getEventSequence, getEventType, getGroupMode, getHistory, getModifierState, getPointerEmulated, getPosition, getSeat, getSurface, getTime.
Setters
None.
getAxisValue
Arguments
:: (HasCallStack, MonadIO m, IsPadEvent a) | |
=> a |
|
-> m (Word32, Double) |
Extracts the information from a pad strip or ring event.
getButton
Arguments
:: (HasCallStack, MonadIO m, IsPadEvent a) | |
=> a |
|
-> m Word32 | Returns: the button of |
Extracts information about the pressed button from a pad event.
getGroupMode
Arguments
:: (HasCallStack, MonadIO m, IsPadEvent a) | |
=> a |
|
-> m (Word32, Word32) |
Extracts group and mode information from a pad event.