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 |
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.
Instances
Eq ButtonEvent Source # | |
Defined in GI.Gdk.Objects.ButtonEvent (==) :: ButtonEvent -> ButtonEvent -> Bool # (/=) :: ButtonEvent -> ButtonEvent -> Bool # | |
ManagedPtrNewtype ButtonEvent Source # | |
Defined in GI.Gdk.Objects.ButtonEvent | |
BoxedPtr ButtonEvent Source # | |
Defined in GI.Gdk.Objects.ButtonEvent boxedPtrCopy :: ButtonEvent -> IO ButtonEvent # boxedPtrFree :: ButtonEvent -> IO () # | |
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
:: (HasCallStack, MonadIO m, IsButtonEvent a) | |
=> a |
|
-> m Word32 | Returns: the button of |
Extract the button number from a button event.