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 |
The SwipeAction
structure contains
only private data and should be accessed using the provided API
Since: 1.8
Synopsis
- newtype SwipeAction = SwipeAction (ManagedPtr SwipeAction)
- class (GObject o, IsDescendantOf SwipeAction o) => IsSwipeAction o
- toSwipeAction :: (MonadIO m, IsSwipeAction o) => o -> m SwipeAction
- swipeActionNew :: (HasCallStack, MonadIO m) => m SwipeAction
- type SwipeActionSweptCallback = Actor -> [SwipeDirection] -> IO ()
- afterSwipeActionSwept :: (IsSwipeAction a, MonadIO m) => a -> ((?self :: a) => SwipeActionSweptCallback) -> m SignalHandlerId
- onSwipeActionSwept :: (IsSwipeAction a, MonadIO m) => a -> ((?self :: a) => SwipeActionSweptCallback) -> m SignalHandlerId
- type SwipeActionSwipeCallback = Actor -> [SwipeDirection] -> IO Bool
- afterSwipeActionSwipe :: (IsSwipeAction a, MonadIO m) => a -> ((?self :: a) => SwipeActionSwipeCallback) -> m SignalHandlerId
- onSwipeActionSwipe :: (IsSwipeAction a, MonadIO m) => a -> ((?self :: a) => SwipeActionSwipeCallback) -> m SignalHandlerId
Exported types
newtype SwipeAction Source #
Memory-managed wrapper type.
Instances
Eq SwipeAction Source # | |
Defined in GI.Clutter.Objects.SwipeAction (==) :: SwipeAction -> SwipeAction -> Bool # (/=) :: SwipeAction -> SwipeAction -> Bool # | |
GObject SwipeAction Source # | |
Defined in GI.Clutter.Objects.SwipeAction | |
ManagedPtrNewtype SwipeAction Source # | |
Defined in GI.Clutter.Objects.SwipeAction | |
TypedObject SwipeAction Source # | |
Defined in GI.Clutter.Objects.SwipeAction | |
HasParentTypes SwipeAction Source # | |
Defined in GI.Clutter.Objects.SwipeAction | |
IsGValue (Maybe SwipeAction) Source # | Convert |
Defined in GI.Clutter.Objects.SwipeAction gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe SwipeAction -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe SwipeAction) # | |
type ParentTypes SwipeAction Source # | |
Defined in GI.Clutter.Objects.SwipeAction |
class (GObject o, IsDescendantOf SwipeAction o) => IsSwipeAction o Source #
Type class for types which can be safely cast to SwipeAction
, for instance with toSwipeAction
.
Instances
(GObject o, IsDescendantOf SwipeAction o) => IsSwipeAction o Source # | |
Defined in GI.Clutter.Objects.SwipeAction |
toSwipeAction :: (MonadIO m, IsSwipeAction o) => o -> m SwipeAction Source #
Cast to SwipeAction
, 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
bindProperty, bindPropertyFull, cancel, forceFloating, freezeNotify, getv, isFloating, notify, notifyByPspec, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getActor, getData, getDevice, getEnabled, getLastEvent, getMotionCoords, getMotionDelta, getNCurrentPoints, getNTouchPoints, getName, getPressCoords, getProperty, getQdata, getReleaseCoords, getSequence, getThresholdTriggerDistance, getThresholdTriggerEdge, getThresholdTriggerEgde, getVelocity.
Setters
setData, setDataFull, setEnabled, setNTouchPoints, setName, setProperty, setThresholdTriggerDistance, setThresholdTriggerEdge.
new
:: (HasCallStack, MonadIO m) | |
=> m SwipeAction | Returns: the newly created |
Creates a new SwipeAction
instance
Since: 1.8
Signals
swept
type SwipeActionSweptCallback Source #
= Actor |
|
-> [SwipeDirection] |
|
-> IO () |
afterSwipeActionSwept :: (IsSwipeAction a, MonadIO m) => a -> ((?self :: a) => SwipeActionSweptCallback) -> m SignalHandlerId Source #
Connect a signal handler for the swept signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
swipeAction #swept callback
By default the object invoking the signal is not passed to the callback.
If you need to access it, you can use the implit ?self
parameter.
Note that this requires activating the ImplicitParams
GHC extension.
onSwipeActionSwept :: (IsSwipeAction a, MonadIO m) => a -> ((?self :: a) => SwipeActionSweptCallback) -> m SignalHandlerId Source #
Connect a signal handler for the swept signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
swipeAction #swept callback
swipe
type SwipeActionSwipeCallback Source #
= Actor |
|
-> [SwipeDirection] |
|
-> IO Bool | Returns: |
The swipe signal is emitted when a swipe gesture is recognized on the attached actor.
Since: 1.14
afterSwipeActionSwipe :: (IsSwipeAction a, MonadIO m) => a -> ((?self :: a) => SwipeActionSwipeCallback) -> m SignalHandlerId Source #
Connect a signal handler for the swipe signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
swipeAction #swipe callback
By default the object invoking the signal is not passed to the callback.
If you need to access it, you can use the implit ?self
parameter.
Note that this requires activating the ImplicitParams
GHC extension.
onSwipeActionSwipe :: (IsSwipeAction a, MonadIO m) => a -> ((?self :: a) => SwipeActionSwipeCallback) -> m SignalHandlerId Source #
Connect a signal handler for the swipe signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
swipeAction #swipe callback