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

GI.Handy.Interfaces.Swipeable

Description

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

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

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

HasParentTypes Swipeable Source # 
Instance details

Defined in GI.Handy.Interfaces.Swipeable

IsGValue (Maybe Swipeable) Source #

Convert Swipeable to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.Handy.Interfaces.Swipeable

Methods

gvalueGType_ :: IO GType

gvalueSet_ :: Ptr GValue -> Maybe Swipeable -> IO ()

gvalueGet_ :: Ptr GValue -> IO (Maybe 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

Click to display all available methods, including inherited ones

Expand

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 #

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.

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