gi-handy-0.0.7: libhandy bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Handy.Interfaces.Swipeable

Description

No description available in the introspection data.

Synopsis

Exported types

newtype Swipeable Source #

Memory-managed wrapper type.

Constructors

Swipeable (ManagedPtr Swipeable) 

Instances

Instances details
Eq Swipeable Source # 
Instance details

Defined in GI.Handy.Interfaces.Swipeable

Methods

(==) :: Swipeable -> Swipeable -> Bool

(/=) :: Swipeable -> Swipeable -> Bool

GObject Swipeable Source # 
Instance details

Defined in GI.Handy.Interfaces.Swipeable

ManagedPtrNewtype Swipeable Source # 
Instance details

Defined in GI.Handy.Interfaces.Swipeable

Methods

toManagedPtr :: Swipeable -> ManagedPtr Swipeable

TypedObject Swipeable Source # 
Instance details

Defined in GI.Handy.Interfaces.Swipeable

Methods

glibType :: IO GType

IsGValue Swipeable Source #

Convert Swipeable to and from GValue with toGValue and fromGValue.

Instance details

Defined in GI.Handy.Interfaces.Swipeable

Methods

toGValue :: Swipeable -> IO GValue

fromGValue :: GValue -> IO Swipeable

HasParentTypes Swipeable Source # 
Instance details

Defined in GI.Handy.Interfaces.Swipeable

type ParentTypes Swipeable Source # 
Instance details

Defined in GI.Handy.Interfaces.Swipeable

type ParentTypes Swipeable = '[Object, Widget]

class (GObject o, IsDescendantOf Swipeable o) => IsSwipeable o Source #

Type class for types which can be safely cast to Swipeable, for instance with toSwipeable.

Instances

Instances details
(GObject o, IsDescendantOf Swipeable o) => IsSwipeable o Source # 
Instance details

Defined in GI.Handy.Interfaces.Swipeable

toSwipeable :: (MonadIO m, IsSwipeable o) => o -> m Swipeable Source #

Cast to Swipeable, for types for which this is known to be safe. For general casts, use castTo.

Methods

Overloaded methods

Signals

beginSwipe

type C_SwipeableBeginSwipeCallback = Ptr () -> Int32 -> Ptr () -> IO () Source #

Type for the callback on the (unwrapped) C side.

type SwipeableBeginSwipeCallback Source #

Arguments

 = Int32

direction: The direction of the swipe, can be 1 or -1

-> IO () 

This signal is emitted when a possible swipe is detected. This is used by SwipeGroup, applications should not connect to it. The direction value can be used to restrict the swipe to a certain direction.

Since: 0.0.12

afterSwipeableBeginSwipe :: (IsSwipeable a, MonadIO m) => a -> SwipeableBeginSwipeCallback -> m SignalHandlerId Source #

Connect a signal handler for the beginSwipe signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after swipeable #beginSwipe callback

onSwipeableBeginSwipe :: (IsSwipeable a, MonadIO m) => a -> SwipeableBeginSwipeCallback -> m SignalHandlerId Source #

Connect a signal handler for the beginSwipe signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on swipeable #beginSwipe callback

endSwipe

type C_SwipeableEndSwipeCallback = Ptr () -> Int64 -> CDouble -> Ptr () -> IO () Source #

Type for the callback on the (unwrapped) C side.

type SwipeableEndSwipeCallback Source #

Arguments

 = Int64

duration: Snap-back animation duration in milliseconds

-> Double

to: The progress value to animate to

-> IO () 

This signal is emitted as soon as the gesture has stopped. This is used by SwipeGroup, applications should not connect to it.

Since: 0.0.12

afterSwipeableEndSwipe :: (IsSwipeable a, MonadIO m) => a -> SwipeableEndSwipeCallback -> m SignalHandlerId Source #

Connect a signal handler for the endSwipe signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after swipeable #endSwipe callback

genClosure_SwipeableEndSwipe :: MonadIO m => SwipeableEndSwipeCallback -> m (GClosure C_SwipeableEndSwipeCallback) Source #

Wrap the callback into a GClosure.

mk_SwipeableEndSwipeCallback :: C_SwipeableEndSwipeCallback -> IO (FunPtr C_SwipeableEndSwipeCallback) Source #

Generate a function pointer callable from C code, from a C_SwipeableEndSwipeCallback.

noSwipeableEndSwipeCallback :: Maybe SwipeableEndSwipeCallback Source #

A convenience synonym for Nothing :: Maybe SwipeableEndSwipeCallback.

onSwipeableEndSwipe :: (IsSwipeable a, MonadIO m) => a -> SwipeableEndSwipeCallback -> m SignalHandlerId Source #

Connect a signal handler for the endSwipe signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on swipeable #endSwipe callback

switchChild

type C_SwipeableSwitchChildCallback = Ptr () -> Word32 -> Int64 -> Ptr () -> IO () Source #

Type for the callback on the (unwrapped) C side.

type SwipeableSwitchChildCallback Source #

Arguments

 = Word32

index: the index of the child to switch to

-> Int64

duration: Animation duration in milliseconds

-> IO () 

This signal should be emitted when the widget's visible child is changed.

duration can be 0 if the child is switched without animation.

Since: 0.0.12

afterSwipeableSwitchChild :: (IsSwipeable a, MonadIO m) => a -> SwipeableSwitchChildCallback -> m SignalHandlerId Source #

Connect a signal handler for the switchChild signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after swipeable #switchChild callback

onSwipeableSwitchChild :: (IsSwipeable a, MonadIO m) => a -> SwipeableSwitchChildCallback -> m SignalHandlerId Source #

Connect a signal handler for the switchChild signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on swipeable #switchChild callback

updateSwipe

type C_SwipeableUpdateSwipeCallback = Ptr () -> CDouble -> Ptr () -> IO () Source #

Type for the callback on the (unwrapped) C side.

type SwipeableUpdateSwipeCallback Source #

Arguments

 = Double

value: The current animation progress value

-> IO () 

This signal is emitted every time the progress value changes. This is used by SwipeGroup, applications should not connect to it.

Since: 0.0.12

afterSwipeableUpdateSwipe :: (IsSwipeable a, MonadIO m) => a -> SwipeableUpdateSwipeCallback -> m SignalHandlerId Source #

Connect a signal handler for the updateSwipe signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after swipeable #updateSwipe callback

onSwipeableUpdateSwipe :: (IsSwipeable a, MonadIO m) => a -> SwipeableUpdateSwipeCallback -> m SignalHandlerId Source #

Connect a signal handler for the updateSwipe signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on swipeable #updateSwipe callback