| Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria |
| Safe Haskell | None |
| Language | Haskell2010 |
GI.Gdk.Objects.ButtonEvent
Description
No description available in the introspection data.
Synopsis
- newtype ButtonEvent = ButtonEvent (ManagedPtr ButtonEvent)
- class (BoxedPtr o, TypedObject o, IsDescendantOf ButtonEvent o) => IsButtonEvent o
- toButtonEvent :: (MonadIO m, IsButtonEvent o) => o -> m ButtonEvent
- buttonEventGetButton :: (HasCallStack, MonadIO m, IsButtonEvent a) => a -> m Word32
Exported types
newtype ButtonEvent Source #
Memory-managed wrapper type.
Constructors
| ButtonEvent (ManagedPtr ButtonEvent) |
Instances
| Eq ButtonEvent Source # | |
Defined in GI.Gdk.Objects.ButtonEvent | |
| ManagedPtrNewtype ButtonEvent Source # | |
Defined in GI.Gdk.Objects.ButtonEvent Methods | |
| BoxedPtr ButtonEvent Source # | |
Defined in GI.Gdk.Objects.ButtonEvent | |
| TypedObject ButtonEvent Source # | |
Defined in GI.Gdk.Objects.ButtonEvent | |
| HasParentTypes ButtonEvent Source # | |
Defined in GI.Gdk.Objects.ButtonEvent | |
| type ParentTypes ButtonEvent Source # | |
Defined in GI.Gdk.Objects.ButtonEvent | |
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
Overloaded methods
getButton
Arguments
| :: (HasCallStack, MonadIO m, IsButtonEvent a) | |
| => a |
|
| -> m Word32 | Returns: the button of |
Extract the button number from a button event.