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 ScrollEvent = ScrollEvent (ManagedPtr ScrollEvent)
- class (BoxedPtr o, TypedObject o, IsDescendantOf ScrollEvent o) => IsScrollEvent o
- toScrollEvent :: (MonadIO m, IsScrollEvent o) => o -> m ScrollEvent
- scrollEventGetDeltas :: (HasCallStack, MonadIO m, IsScrollEvent a) => a -> m (Double, Double)
- scrollEventGetDirection :: (HasCallStack, MonadIO m, IsScrollEvent a) => a -> m ScrollDirection
- scrollEventIsStop :: (HasCallStack, MonadIO m, IsScrollEvent a) => a -> m Bool
Exported types
newtype ScrollEvent Source #
Memory-managed wrapper type.
Instances
Eq ScrollEvent Source # | |
Defined in GI.Gdk.Objects.ScrollEvent (==) :: ScrollEvent -> ScrollEvent -> Bool # (/=) :: ScrollEvent -> ScrollEvent -> Bool # | |
ManagedPtrNewtype ScrollEvent Source # | |
Defined in GI.Gdk.Objects.ScrollEvent | |
BoxedPtr ScrollEvent Source # | |
Defined in GI.Gdk.Objects.ScrollEvent boxedPtrCopy :: ScrollEvent -> IO ScrollEvent # boxedPtrFree :: ScrollEvent -> IO () # | |
TypedObject ScrollEvent Source # | |
Defined in GI.Gdk.Objects.ScrollEvent | |
HasParentTypes ScrollEvent Source # | |
Defined in GI.Gdk.Objects.ScrollEvent | |
type ParentTypes ScrollEvent Source # | |
Defined in GI.Gdk.Objects.ScrollEvent |
class (BoxedPtr o, TypedObject o, IsDescendantOf ScrollEvent o) => IsScrollEvent o Source #
Type class for types which can be safely cast to ScrollEvent
, for instance with toScrollEvent
.
Instances
(BoxedPtr o, TypedObject o, IsDescendantOf ScrollEvent o) => IsScrollEvent o Source # | |
Defined in GI.Gdk.Objects.ScrollEvent |
toScrollEvent :: (MonadIO m, IsScrollEvent o) => o -> m ScrollEvent Source #
Cast to ScrollEvent
, for types for which this is known to be safe. For general casts, use castTo
.
Methods
Overloaded methods
getDeltas
:: (HasCallStack, MonadIO m, IsScrollEvent a) | |
=> a |
|
-> m (Double, Double) |
Extracts the scroll deltas of a scroll event.
The deltas will be zero unless the scroll direction
is ScrollDirectionSmooth
.
getDirection
scrollEventGetDirection Source #
:: (HasCallStack, MonadIO m, IsScrollEvent a) | |
=> a |
|
-> m ScrollDirection | Returns: the scroll direction of |
Extracts the direction of a scroll event.
isStop
:: (HasCallStack, MonadIO m, IsScrollEvent a) | |
=> a |
|
-> m Bool | Returns: |
Check whether a scroll event is a stop scroll event. Scroll sequences with smooth scroll information may provide a stop scroll event once the interaction with the device finishes, e.g. by lifting a finger. This stop scroll event is the signal that a widget may trigger kinetic scrolling based on the current velocity.
Stop scroll events always have a delta of 0/0.