Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
The Swipeable
interface is implemented by all swipeable widgets. They
can be synced using SwipeGroup
.
Swipeable
is only meant to be used by libhandy widgets and is currently
implemented by Leaflet
and Paginator
. It should not be implemented
by applications.
Since: 0.0.12
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 | |
HasParentTypes Swipeable Source # | |
Defined in GI.Handy.Interfaces.Swipeable | |
IsGValue (Maybe Swipeable) Source # | Convert |
Defined in GI.Handy.Interfaces.Swipeable gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe Swipeable -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe Swipeable) | |
type ParentTypes Swipeable Source # | |
Defined in GI.Handy.Interfaces.Swipeable |
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
Click to display all available methods, including inherited ones
Methods
activate, addAccelerator, addChild, addDeviceEvents, addEvents, addMnemonicLabel, addTickCallback, bindProperty, bindPropertyFull, canActivateAccel, childFocus, childNotify, classPath, computeExpand, constructChild, createPangoContext, createPangoLayout, customFinished, customTagEnd, customTagStart, destroy, destroyed, deviceIsShadowed, dragBegin, dragBeginWithCoordinates, dragCheckThreshold, dragDestAddImageTargets, dragDestAddTextTargets, dragDestAddUriTargets, dragDestFindTarget, dragDestGetTargetList, dragDestGetTrackMotion, dragDestSet, dragDestSetProxy, dragDestSetTargetList, dragDestSetTrackMotion, dragDestUnset, dragGetData, dragHighlight, dragSourceAddImageTargets, dragSourceAddTextTargets, dragSourceAddUriTargets, dragSourceGetTargetList, dragSourceSet, dragSourceSetIconGicon, dragSourceSetIconName, dragSourceSetIconPixbuf, dragSourceSetIconStock, dragSourceSetTargetList, dragSourceUnset, dragUnhighlight, draw, ensureStyle, errorBell, event, forceFloating, freezeChildNotify, freezeNotify, getv, grabAdd, grabDefault, grabFocus, grabRemove, hasDefault, hasFocus, hasGrab, hasRcStyle, hasScreen, hasVisibleFocus, hide, hideOnDelete, inDestruction, initTemplate, inputShapeCombineRegion, insertActionGroup, intersect, isAncestor, isComposited, isDrawable, isFloating, isFocus, isSensitive, isToplevel, isVisible, keynavFailed, listAccelClosures, listActionPrefixes, listMnemonicLabels, map, mnemonicActivate, modifyBase, modifyBg, modifyCursor, modifyFg, modifyFont, modifyStyle, modifyText, notify, notifyByPspec, overrideBackgroundColor, overrideColor, overrideCursor, overrideFont, overrideSymbolicColor, parserFinished, path, queueAllocate, queueComputeExpand, queueDraw, queueDrawArea, queueDrawRegion, queueResize, queueResizeNoRedraw, realize, ref, refSink, regionIntersect, registerWindow, removeAccelerator, removeMnemonicLabel, removeTickCallback, renderIcon, renderIconPixbuf, reparent, resetRcStyles, resetStyle, runDispose, sendExpose, sendFocusChange, shapeCombineRegion, show, showAll, showNow, sizeAllocate, sizeAllocateWithBaseline, sizeRequest, stealData, stealQdata, styleAttach, styleGetProperty, thawChildNotify, thawNotify, translateCoordinates, triggerTooltipQuery, unmap, unparent, unrealize, unref, unregisterWindow, unsetStateFlags, watchClosure.
Getters
getAccessible, getActionGroup, getAllocatedBaseline, getAllocatedHeight, getAllocatedSize, getAllocatedWidth, getAllocation, getAncestor, getAppPaintable, getCanDefault, getCanFocus, getChildRequisition, getChildVisible, getClip, getClipboard, getCompositeName, getData, getDeviceEnabled, getDeviceEvents, getDirection, getDisplay, getDoubleBuffered, getEvents, getFocusOnClick, getFontMap, getFontOptions, getFrameClock, getHalign, getHasTooltip, getHasWindow, getHexpand, getHexpandSet, getInternalChild, getMapped, getMarginBottom, getMarginEnd, getMarginLeft, getMarginRight, getMarginStart, getMarginTop, getModifierMask, getModifierStyle, getName, getNoShowAll, getOpacity, getPangoContext, getParent, getParentWindow, getPath, getPointer, getPreferredHeight, getPreferredHeightAndBaselineForWidth, getPreferredHeightForWidth, getPreferredSize, getPreferredWidth, getPreferredWidthForHeight, getProperty, getQdata, getRealized, getReceivesDefault, getRequestMode, getRequisition, getRootWindow, getScaleFactor, getScreen, getSensitive, getSettings, getSizeRequest, getState, getStateFlags, getStyle, getStyleContext, getSupportMultidevice, getTemplateChild, getTooltipMarkup, getTooltipText, getTooltipWindow, getToplevel, getValign, getValignWithBaseline, getVexpand, getVexpandSet, getVisible, getVisual, getWindow.
Setters
setAccelPath, setAllocation, setAppPaintable, setBuildableProperty, setCanDefault, setCanFocus, setChildVisible, setClip, setCompositeName, setData, setDataFull, setDeviceEnabled, setDeviceEvents, setDirection, setDoubleBuffered, setEvents, setFocusOnClick, setFontMap, setFontOptions, setHalign, setHasTooltip, setHasWindow, setHexpand, setHexpandSet, setMapped, setMarginBottom, setMarginEnd, setMarginLeft, setMarginRight, setMarginStart, setMarginTop, setName, setNoShowAll, setOpacity, setParent, setParentWindow, setProperty, setRealized, setReceivesDefault, setRedrawOnAllocate, setSensitive, setSizeRequest, setState, setStateFlags, setStyle, setSupportMultidevice, setTooltipMarkup, setTooltipText, setTooltipWindow, setValign, setVexpand, setVexpandSet, setVisible, setVisual, setWindow.
Signals
beginSwipe
type C_SwipeableBeginSwipeCallback = Ptr () -> Int32 -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type SwipeableBeginSwipeCallback Source #
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 #
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