gi-clutter-1.0.2: clutter GObject bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Clutter.Objects.SwipeAction

Description

The SwipeAction structure contains only private data and should be accessed using the provided API

Since: 1.8

Synopsis

Exported types

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

Instances details
(GObject o, IsDescendantOf SwipeAction o) => IsSwipeAction o Source # 
Instance details

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

new

swipeActionNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m SwipeAction

Returns: the newly created SwipeAction

Creates a new SwipeAction instance

Since: 1.8

Signals

swept

type SwipeActionSweptCallback Source #

Arguments

 = Actor

actor: the Actor attached to the action

-> [SwipeDirection]

direction: the main direction of the swipe gesture

-> IO () 

Deprecated: (Since version 1.14)Use the swipe signal instead.

The swept signal is emitted when a swipe gesture is recognized on the attached actor.

Since: 1.8

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 #

Arguments

 = Actor

actor: the Actor attached to the action

-> [SwipeDirection]

direction: the main direction of the swipe gesture

-> IO Bool

Returns: True if the swipe should continue, and False if the swipe should be cancelled.

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