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 Swipeable = Swipeable (ManagedPtr Swipeable)
- class (GObject o, IsDescendantOf Swipeable o) => IsSwipeable o
- toSwipeable :: (MonadIO m, IsSwipeable o) => o -> m Swipeable
- type C_SwipeableBeginSwipeCallback = Ptr () -> Int32 -> Ptr () -> IO ()
- type SwipeableBeginSwipeCallback = Int32 -> IO ()
- afterSwipeableBeginSwipe :: (IsSwipeable a, MonadIO m) => a -> SwipeableBeginSwipeCallback -> m SignalHandlerId
- genClosure_SwipeableBeginSwipe :: MonadIO m => SwipeableBeginSwipeCallback -> m (GClosure C_SwipeableBeginSwipeCallback)
- mk_SwipeableBeginSwipeCallback :: C_SwipeableBeginSwipeCallback -> IO (FunPtr C_SwipeableBeginSwipeCallback)
- noSwipeableBeginSwipeCallback :: Maybe SwipeableBeginSwipeCallback
- onSwipeableBeginSwipe :: (IsSwipeable a, MonadIO m) => a -> SwipeableBeginSwipeCallback -> m SignalHandlerId
- wrap_SwipeableBeginSwipeCallback :: SwipeableBeginSwipeCallback -> C_SwipeableBeginSwipeCallback
- type C_SwipeableEndSwipeCallback = Ptr () -> Int64 -> CDouble -> Ptr () -> IO ()
- type SwipeableEndSwipeCallback = Int64 -> Double -> IO ()
- afterSwipeableEndSwipe :: (IsSwipeable a, MonadIO m) => a -> SwipeableEndSwipeCallback -> m SignalHandlerId
- genClosure_SwipeableEndSwipe :: MonadIO m => SwipeableEndSwipeCallback -> m (GClosure C_SwipeableEndSwipeCallback)
- mk_SwipeableEndSwipeCallback :: C_SwipeableEndSwipeCallback -> IO (FunPtr C_SwipeableEndSwipeCallback)
- noSwipeableEndSwipeCallback :: Maybe SwipeableEndSwipeCallback
- onSwipeableEndSwipe :: (IsSwipeable a, MonadIO m) => a -> SwipeableEndSwipeCallback -> m SignalHandlerId
- wrap_SwipeableEndSwipeCallback :: SwipeableEndSwipeCallback -> C_SwipeableEndSwipeCallback
- type C_SwipeableSwitchChildCallback = Ptr () -> Word32 -> Int64 -> Ptr () -> IO ()
- type SwipeableSwitchChildCallback = Word32 -> Int64 -> IO ()
- afterSwipeableSwitchChild :: (IsSwipeable a, MonadIO m) => a -> SwipeableSwitchChildCallback -> m SignalHandlerId
- genClosure_SwipeableSwitchChild :: MonadIO m => SwipeableSwitchChildCallback -> m (GClosure C_SwipeableSwitchChildCallback)
- mk_SwipeableSwitchChildCallback :: C_SwipeableSwitchChildCallback -> IO (FunPtr C_SwipeableSwitchChildCallback)
- noSwipeableSwitchChildCallback :: Maybe SwipeableSwitchChildCallback
- onSwipeableSwitchChild :: (IsSwipeable a, MonadIO m) => a -> SwipeableSwitchChildCallback -> m SignalHandlerId
- wrap_SwipeableSwitchChildCallback :: SwipeableSwitchChildCallback -> C_SwipeableSwitchChildCallback
- type C_SwipeableUpdateSwipeCallback = Ptr () -> CDouble -> Ptr () -> IO ()
- type SwipeableUpdateSwipeCallback = Double -> IO ()
- afterSwipeableUpdateSwipe :: (IsSwipeable a, MonadIO m) => a -> SwipeableUpdateSwipeCallback -> m SignalHandlerId
- genClosure_SwipeableUpdateSwipe :: MonadIO m => SwipeableUpdateSwipeCallback -> m (GClosure C_SwipeableUpdateSwipeCallback)
- mk_SwipeableUpdateSwipeCallback :: C_SwipeableUpdateSwipeCallback -> IO (FunPtr C_SwipeableUpdateSwipeCallback)
- noSwipeableUpdateSwipeCallback :: Maybe SwipeableUpdateSwipeCallback
- onSwipeableUpdateSwipe :: (IsSwipeable a, MonadIO m) => a -> SwipeableUpdateSwipeCallback -> m SignalHandlerId
- wrap_SwipeableUpdateSwipeCallback :: SwipeableUpdateSwipeCallback -> C_SwipeableUpdateSwipeCallback
Exported types
Memory-managed wrapper type.
Instances
Eq Swipeable Source # | |
GObject Swipeable Source # | |
Defined in GI.Handy.Interfaces.Swipeable | |
ManagedPtrNewtype Swipeable Source # | |
Defined in GI.Handy.Interfaces.Swipeable toManagedPtr :: Swipeable -> ManagedPtr Swipeable | |
TypedObject Swipeable Source # | |
Defined in GI.Handy.Interfaces.Swipeable glibType :: IO GType | |
IsGValue Swipeable Source # | Convert |
Defined in GI.Handy.Interfaces.Swipeable toGValue :: Swipeable -> IO GValue fromGValue :: GValue -> IO Swipeable | |
HasParentTypes Swipeable Source # | |
Defined in GI.Handy.Interfaces.Swipeable | |
type ParentTypes Swipeable Source # | |
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
(GObject o, IsDescendantOf Swipeable o) => IsSwipeable o Source # | |
Defined in GI.Handy.Interfaces.Swipeable |
toSwipeable :: (MonadIO m, IsSwipeable o) => o -> m Swipeable Source #
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 #
= Int32 |
|
-> 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
genClosure_SwipeableBeginSwipe :: MonadIO m => SwipeableBeginSwipeCallback -> m (GClosure C_SwipeableBeginSwipeCallback) Source #
Wrap the callback into a GClosure
.
mk_SwipeableBeginSwipeCallback :: C_SwipeableBeginSwipeCallback -> IO (FunPtr C_SwipeableBeginSwipeCallback) Source #
Generate a function pointer callable from C code, from a C_SwipeableBeginSwipeCallback
.
noSwipeableBeginSwipeCallback :: Maybe SwipeableBeginSwipeCallback Source #
A convenience synonym for
.Nothing
:: Maybe
SwipeableBeginSwipeCallback
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
wrap_SwipeableBeginSwipeCallback :: SwipeableBeginSwipeCallback -> C_SwipeableBeginSwipeCallback Source #
Wrap a SwipeableBeginSwipeCallback
into a C_SwipeableBeginSwipeCallback
.
endSwipe
type C_SwipeableEndSwipeCallback = Ptr () -> Int64 -> CDouble -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type SwipeableEndSwipeCallback Source #
= Int64 |
|
-> Double |
|
-> 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
wrap_SwipeableEndSwipeCallback :: SwipeableEndSwipeCallback -> C_SwipeableEndSwipeCallback Source #
Wrap a SwipeableEndSwipeCallback
into a C_SwipeableEndSwipeCallback
.
switchChild
type C_SwipeableSwitchChildCallback = Ptr () -> Word32 -> Int64 -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type SwipeableSwitchChildCallback Source #
= Word32 |
|
-> Int64 |
|
-> 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
genClosure_SwipeableSwitchChild :: MonadIO m => SwipeableSwitchChildCallback -> m (GClosure C_SwipeableSwitchChildCallback) Source #
Wrap the callback into a GClosure
.
mk_SwipeableSwitchChildCallback :: C_SwipeableSwitchChildCallback -> IO (FunPtr C_SwipeableSwitchChildCallback) Source #
Generate a function pointer callable from C code, from a C_SwipeableSwitchChildCallback
.
noSwipeableSwitchChildCallback :: Maybe SwipeableSwitchChildCallback Source #
A convenience synonym for
.Nothing
:: Maybe
SwipeableSwitchChildCallback
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
wrap_SwipeableSwitchChildCallback :: SwipeableSwitchChildCallback -> C_SwipeableSwitchChildCallback Source #
Wrap a SwipeableSwitchChildCallback
into a C_SwipeableSwitchChildCallback
.
updateSwipe
type C_SwipeableUpdateSwipeCallback = Ptr () -> CDouble -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type SwipeableUpdateSwipeCallback Source #
= Double |
|
-> 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
genClosure_SwipeableUpdateSwipe :: MonadIO m => SwipeableUpdateSwipeCallback -> m (GClosure C_SwipeableUpdateSwipeCallback) Source #
Wrap the callback into a GClosure
.
mk_SwipeableUpdateSwipeCallback :: C_SwipeableUpdateSwipeCallback -> IO (FunPtr C_SwipeableUpdateSwipeCallback) Source #
Generate a function pointer callable from C code, from a C_SwipeableUpdateSwipeCallback
.
noSwipeableUpdateSwipeCallback :: Maybe SwipeableUpdateSwipeCallback Source #
A convenience synonym for
.Nothing
:: Maybe
SwipeableUpdateSwipeCallback
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