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 |
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
- swipeableEmitChildSwitched :: (HasCallStack, MonadIO m, IsSwipeable a) => a -> Word32 -> Int64 -> m ()
- swipeableGetCancelProgress :: (HasCallStack, MonadIO m, IsSwipeable a) => a -> m Double
- swipeableGetDistance :: (HasCallStack, MonadIO m, IsSwipeable a) => a -> m Double
- swipeableGetProgress :: (HasCallStack, MonadIO m, IsSwipeable a) => a -> m Double
- swipeableGetSnapPoints :: (HasCallStack, MonadIO m, IsSwipeable a) => a -> m [Double]
- swipeableGetSwipeArea :: (HasCallStack, MonadIO m, IsSwipeable a) => a -> NavigationDirection -> Bool -> m Rectangle
- swipeableGetSwipeTracker :: (HasCallStack, MonadIO m, IsSwipeable a) => a -> m SwipeTracker
- swipeableSwitchChild :: (HasCallStack, MonadIO m, IsSwipeable a) => a -> Word32 -> Int64 -> m ()
- type SwipeableChildSwitchedCallback = Word32 -> Int64 -> IO ()
- afterSwipeableChildSwitched :: (IsSwipeable a, MonadIO m) => a -> ((?self :: a) => SwipeableChildSwitchedCallback) -> m SignalHandlerId
- onSwipeableChildSwitched :: (IsSwipeable a, MonadIO m) => a -> ((?self :: a) => SwipeableChildSwitchedCallback) -> m SignalHandlerId
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 | |
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 | |
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, emitChildSwitched, 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, switchChild, thawChildNotify, thawNotify, translateCoordinates, triggerTooltipQuery, unmap, unparent, unrealize, unref, unregisterWindow, unsetStateFlags, watchClosure.
Getters
getAccessible, getActionGroup, getAllocatedBaseline, getAllocatedHeight, getAllocatedSize, getAllocatedWidth, getAllocation, getAncestor, getAppPaintable, getCanDefault, getCanFocus, getCancelProgress, getChildRequisition, getChildVisible, getClip, getClipboard, getCompositeName, getData, getDeviceEnabled, getDeviceEvents, getDirection, getDisplay, getDistance, 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, getProgress, getProperty, getQdata, getRealized, getReceivesDefault, getRequestMode, getRequisition, getRootWindow, getScaleFactor, getScreen, getSensitive, getSettings, getSizeRequest, getSnapPoints, getState, getStateFlags, getStyle, getStyleContext, getSupportMultidevice, getSwipeArea, getSwipeTracker, 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.
emitChildSwitched
swipeableEmitChildSwitched Source #
:: (HasCallStack, MonadIO m, IsSwipeable a) | |
=> a |
|
-> Word32 |
|
-> Int64 |
|
-> m () |
Emits HdySwipeable[childSwitched](#g:signal:childSwitched) signal. This should be called when the widget switches visible child widget.
duration
can be 0 if the child is switched without animation.
Since: 1.0
getCancelProgress
swipeableGetCancelProgress Source #
:: (HasCallStack, MonadIO m, IsSwipeable a) | |
=> a |
|
-> m Double | Returns: the cancel progress, unitless |
Gets the progress self
will snap back to after the gesture is canceled.
Since: 1.0
getDistance
:: (HasCallStack, MonadIO m, IsSwipeable a) | |
=> a |
|
-> m Double | Returns: the swipe distance in pixels |
Gets the swipe distance of self
. This corresponds to how many pixels
1 unit represents.
Since: 1.0
getProgress
:: (HasCallStack, MonadIO m, IsSwipeable a) | |
=> a |
|
-> m Double | Returns: the current progress, unitless |
Gets the current progress of self
Since: 1.0
getSnapPoints
swipeableGetSnapPoints Source #
:: (HasCallStack, MonadIO m, IsSwipeable a) | |
=> a |
|
-> m [Double] | Returns: the snap points of
|
Gets the snap points of self
. Each snap point represents a progress value
that is considered acceptable to end the swipe on.
Since: 1.0
getSwipeArea
swipeableGetSwipeArea Source #
:: (HasCallStack, MonadIO m, IsSwipeable a) | |
=> a |
|
-> NavigationDirection |
|
-> Bool |
|
-> m Rectangle |
Gets the area self
can start a swipe from for the given direction and
gesture type.
This can be used to restrict swipes to only be possible from a certain area,
for example, to only allow edge swipes, or to have a draggable element and
ignore swipes elsewhere.
Swipe area is only considered for direct swipes (as in, not initiated by
SwipeGroup
).
If not implemented, the default implementation returns the allocation of
self
, allowing swipes from anywhere.
Since: 1.0
getSwipeTracker
swipeableGetSwipeTracker Source #
:: (HasCallStack, MonadIO m, IsSwipeable a) | |
=> a |
|
-> m SwipeTracker | Returns: the swipe tracker |
Gets the SwipeTracker
used by this swipeable widget.
Since: 1.0
switchChild
:: (HasCallStack, MonadIO m, IsSwipeable a) | |
=> a |
|
-> Word32 |
|
-> Int64 |
|
-> m () |
See HdySwipeable[childSwitched](#g:signal:childSwitched).
Since: 1.0
Signals
childSwitched
type SwipeableChildSwitchedCallback 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.
This is used by SwipeGroup
, applications should not connect to it.
Since: 1.0
afterSwipeableChildSwitched :: (IsSwipeable a, MonadIO m) => a -> ((?self :: a) => SwipeableChildSwitchedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the childSwitched signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
swipeable #childSwitched 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.
onSwipeableChildSwitched :: (IsSwipeable a, MonadIO m) => a -> ((?self :: a) => SwipeableChildSwitchedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the childSwitched signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
swipeable #childSwitched callback