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.ButtonEvent
Contents
Description
An event related to a button on a pointer device.
Synopsis
- newtype ButtonEvent = ButtonEvent (ManagedPtr ButtonEvent)
- class (BoxedPtr o, TypedObject o, IsDescendantOf ButtonEvent o) => IsButtonEvent o
- toButtonEvent :: (MonadIO m, IsButtonEvent o) => o -> m ButtonEvent
- type family ResolveButtonEventMethod (t :: Symbol) o where ...
- data ButtonEventGetButtonMethodInfo
- buttonEventGetButton :: (HasCallStack, MonadIO m, IsButtonEvent a) => a -> m Word32
Exported types
newtype ButtonEvent Source #
Memory-managed wrapper type.
Constructors
ButtonEvent (ManagedPtr ButtonEvent) |
Instances
class (BoxedPtr o, TypedObject o, IsDescendantOf ButtonEvent o) => IsButtonEvent o Source #
Type class for types which can be safely cast to ButtonEvent
, for instance with toButtonEvent
.
Instances
(BoxedPtr o, TypedObject o, IsDescendantOf ButtonEvent o) => IsButtonEvent o Source # | |
Defined in GI.Gdk.Objects.ButtonEvent |
toButtonEvent :: (MonadIO m, IsButtonEvent o) => o -> m ButtonEvent Source #
Cast to ButtonEvent
, for types for which this is known to be safe. For general casts, use castTo
.
Methods
Click to display all available methods, including inherited ones
Methods
ref, triggersContextMenu, unref.
Getters
getAxes, getAxis, getButton, getDevice, getDeviceTool, getDisplay, getEventSequence, getEventType, getHistory, getModifierState, getPointerEmulated, getPosition, getSeat, getSurface, getTime.
Setters
None.
type family ResolveButtonEventMethod (t :: Symbol) o where ... Source #
Equations
getButton
data ButtonEventGetButtonMethodInfo Source #
Instances
(signature ~ m Word32, MonadIO m, IsButtonEvent a) => OverloadedMethod ButtonEventGetButtonMethodInfo a signature Source # | |
Defined in GI.Gdk.Objects.ButtonEvent Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo ButtonEventGetButtonMethodInfo (a :: Type) Source # | |
Defined in GI.Gdk.Objects.ButtonEvent Methods |
Arguments
:: (HasCallStack, MonadIO m, IsButtonEvent a) | |
=> a |
|
-> m Word32 | Returns: the button of |
Extract the button number from a button event.