Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
An event caused by a pointing device moving between surfaces.
Synopsis
- newtype CrossingEvent = CrossingEvent (ManagedPtr CrossingEvent)
- class (BoxedPtr o, TypedObject o, IsDescendantOf CrossingEvent o) => IsCrossingEvent o
- toCrossingEvent :: (MonadIO m, IsCrossingEvent o) => o -> m CrossingEvent
- crossingEventGetDetail :: (HasCallStack, MonadIO m, IsCrossingEvent a) => a -> m NotifyType
- crossingEventGetFocus :: (HasCallStack, MonadIO m, IsCrossingEvent a) => a -> m Bool
- crossingEventGetMode :: (HasCallStack, MonadIO m, IsCrossingEvent a) => a -> m CrossingMode
Exported types
newtype CrossingEvent Source #
Memory-managed wrapper type.
CrossingEvent (ManagedPtr CrossingEvent) |
Instances
Eq CrossingEvent Source # | |
Defined in GI.Gdk.Objects.CrossingEvent (==) :: CrossingEvent -> CrossingEvent -> Bool # (/=) :: CrossingEvent -> CrossingEvent -> Bool # | |
BoxedPtr CrossingEvent Source # | |
Defined in GI.Gdk.Objects.CrossingEvent boxedPtrCopy :: CrossingEvent -> IO CrossingEvent boxedPtrFree :: CrossingEvent -> IO () | |
ManagedPtrNewtype CrossingEvent Source # | |
Defined in GI.Gdk.Objects.CrossingEvent toManagedPtr :: CrossingEvent -> ManagedPtr CrossingEvent | |
TypedObject CrossingEvent Source # | |
Defined in GI.Gdk.Objects.CrossingEvent | |
HasParentTypes CrossingEvent Source # | |
Defined in GI.Gdk.Objects.CrossingEvent | |
type ParentTypes CrossingEvent Source # | |
Defined in GI.Gdk.Objects.CrossingEvent |
class (BoxedPtr o, TypedObject o, IsDescendantOf CrossingEvent o) => IsCrossingEvent o Source #
Type class for types which can be safely cast to CrossingEvent
, for instance with toCrossingEvent
.
Instances
(BoxedPtr o, TypedObject o, IsDescendantOf CrossingEvent o) => IsCrossingEvent o Source # | |
Defined in GI.Gdk.Objects.CrossingEvent |
toCrossingEvent :: (MonadIO m, IsCrossingEvent o) => o -> m CrossingEvent Source #
Cast to CrossingEvent
, 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, getDetail, getDevice, getDeviceTool, getDisplay, getEventSequence, getEventType, getFocus, getHistory, getMode, getModifierState, getPointerEmulated, getPosition, getSeat, getSurface, getTime.
Setters
None.
getDetail
crossingEventGetDetail Source #
:: (HasCallStack, MonadIO m, IsCrossingEvent a) | |
=> a |
|
-> m NotifyType | Returns: the notify detail of |
Extracts the notify detail from a crossing event.
getFocus
crossingEventGetFocus Source #
:: (HasCallStack, MonadIO m, IsCrossingEvent a) | |
=> a |
|
-> m Bool | Returns: |
Checks if the event
surface is the focus surface.
getMode
:: (HasCallStack, MonadIO m, IsCrossingEvent a) | |
=> a |
|
-> m CrossingMode | Returns: the mode of |
Extracts the crossing mode from a crossing event.