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 Arrows
widget displays arrows indicating a swiping direction.
An animation is run when the widget is mapped or then hdy_arrows_animate
()
is invoked.
Synopsis
- newtype Arrows = Arrows (ManagedPtr Arrows)
- class (GObject o, IsDescendantOf Arrows o) => IsArrows o
- toArrows :: (MonadIO m, IsArrows o) => o -> m Arrows
- arrowsAnimate :: (HasCallStack, MonadIO m, IsArrows a) => a -> m ()
- arrowsGetCount :: (HasCallStack, MonadIO m, IsArrows a) => a -> m Word32
- arrowsGetDirection :: (HasCallStack, MonadIO m, IsArrows a) => a -> m ArrowsDirection
- arrowsGetDuration :: (HasCallStack, MonadIO m, IsArrows a) => a -> m Word32
- arrowsNew :: (HasCallStack, MonadIO m) => m Arrows
- arrowsSetCount :: (HasCallStack, MonadIO m, IsArrows a) => a -> Word32 -> m ()
- arrowsSetDirection :: (HasCallStack, MonadIO m, IsArrows a) => a -> ArrowsDirection -> m ()
- arrowsSetDuration :: (HasCallStack, MonadIO m, IsArrows a) => a -> Word32 -> m ()
- constructArrowsCount :: (IsArrows o, MonadIO m) => Word32 -> m (GValueConstruct o)
- getArrowsCount :: (MonadIO m, IsArrows o) => o -> m Word32
- setArrowsCount :: (MonadIO m, IsArrows o) => o -> Word32 -> m ()
- constructArrowsDirection :: (IsArrows o, MonadIO m) => ArrowsDirection -> m (GValueConstruct o)
- getArrowsDirection :: (MonadIO m, IsArrows o) => o -> m ArrowsDirection
- setArrowsDirection :: (MonadIO m, IsArrows o) => o -> ArrowsDirection -> m ()
- constructArrowsDuration :: (IsArrows o, MonadIO m) => Word32 -> m (GValueConstruct o)
- getArrowsDuration :: (MonadIO m, IsArrows o) => o -> m Word32
- setArrowsDuration :: (MonadIO m, IsArrows o) => o -> Word32 -> m ()
Exported types
Memory-managed wrapper type.
Instances
Eq Arrows Source # | |
GObject Arrows Source # | |
Defined in GI.Handy.Objects.Arrows | |
ManagedPtrNewtype Arrows Source # | |
Defined in GI.Handy.Objects.Arrows toManagedPtr :: Arrows -> ManagedPtr Arrows | |
TypedObject Arrows Source # | |
Defined in GI.Handy.Objects.Arrows | |
HasParentTypes Arrows Source # | |
Defined in GI.Handy.Objects.Arrows | |
IsGValue (Maybe Arrows) Source # | Convert |
Defined in GI.Handy.Objects.Arrows gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe Arrows -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe Arrows) | |
type ParentTypes Arrows Source # | |
Defined in GI.Handy.Objects.Arrows |
class (GObject o, IsDescendantOf Arrows o) => IsArrows o Source #
Instances
(GObject o, IsDescendantOf Arrows o) => IsArrows o Source # | |
Defined in GI.Handy.Objects.Arrows |
Methods
Click to display all available methods, including inherited ones
Methods
activate, addAccelerator, addChild, addDeviceEvents, addEvents, addMnemonicLabel, addTickCallback, animate, 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, getCount, getData, getDeviceEnabled, getDeviceEvents, getDirection, getDisplay, getDoubleBuffered, getDuration, 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, setCount, setData, setDataFull, setDeviceEnabled, setDeviceEvents, setDirection, setDoubleBuffered, setDuration, 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.
animate
:: (HasCallStack, MonadIO m, IsArrows a) | |
=> a |
|
-> m () |
Deprecated: (Since version 0.0.12)Use e.g. Image
and CSS animation instead
Render the arrows animation.
getCount
:: (HasCallStack, MonadIO m, IsArrows a) | |
=> a |
|
-> m Word32 | Returns: the current number of arrows |
Deprecated: (Since version 0.0.12)Use e.g. Image
and CSS animation instead
Get the number of arrows displayed in the widget.
getDirection
:: (HasCallStack, MonadIO m, IsArrows a) | |
=> a |
|
-> m ArrowsDirection | Returns: the arrows direction |
Deprecated: (Since version 0.0.12)Use e.g. Image
and CSS animation instead
Get the direction the arrows point to
getDuration
:: (HasCallStack, MonadIO m, IsArrows a) | |
=> a |
|
-> m Word32 | Returns: the duration of the animation in ms |
Deprecated: (Since version 0.0.12)Use e.g. Image
and CSS animation instead
Get the duration of the arrows animation.
new
:: (HasCallStack, MonadIO m) | |
=> m Arrows | Returns: the newly created |
setCount
:: (HasCallStack, MonadIO m, IsArrows a) | |
=> a |
|
-> Word32 |
|
-> m () |
Deprecated: (Since version 0.0.12)Use e.g. Image
and CSS animation instead
Set the number of arrows to display.
setDirection
:: (HasCallStack, MonadIO m, IsArrows a) | |
=> a |
|
-> ArrowsDirection |
|
-> m () |
Deprecated: (Since version 0.0.12)Use e.g. Image
and CSS animation instead
Set the direction the arrows should point to.
setDuration
:: (HasCallStack, MonadIO m, IsArrows a) | |
=> a |
|
-> Word32 |
|
-> m () |
Deprecated: (Since version 0.0.12)Use e.g. Image
and CSS animation instead
Set the duration of the arrow animation.
Properties
count
No description available in the introspection data.
constructArrowsCount :: (IsArrows o, MonadIO m) => Word32 -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “count
” property. This is rarely needed directly, but it is used by new
.
getArrowsCount :: (MonadIO m, IsArrows o) => o -> m Word32 Source #
Get the value of the “count
” property.
When overloading is enabled, this is equivalent to
get
arrows #count
setArrowsCount :: (MonadIO m, IsArrows o) => o -> Word32 -> m () Source #
Set the value of the “count
” property.
When overloading is enabled, this is equivalent to
set
arrows [ #count:=
value ]
direction
No description available in the introspection data.
constructArrowsDirection :: (IsArrows o, MonadIO m) => ArrowsDirection -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “direction
” property. This is rarely needed directly, but it is used by new
.
getArrowsDirection :: (MonadIO m, IsArrows o) => o -> m ArrowsDirection Source #
Get the value of the “direction
” property.
When overloading is enabled, this is equivalent to
get
arrows #direction
setArrowsDirection :: (MonadIO m, IsArrows o) => o -> ArrowsDirection -> m () Source #
Set the value of the “direction
” property.
When overloading is enabled, this is equivalent to
set
arrows [ #direction:=
value ]
duration
No description available in the introspection data.
constructArrowsDuration :: (IsArrows o, MonadIO m) => Word32 -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “duration
” property. This is rarely needed directly, but it is used by new
.
getArrowsDuration :: (MonadIO m, IsArrows o) => o -> m Word32 Source #
Get the value of the “duration
” property.
When overloading is enabled, this is equivalent to
get
arrows #duration
setArrowsDuration :: (MonadIO m, IsArrows o) => o -> Word32 -> m () Source #
Set the value of the “duration
” property.
When overloading is enabled, this is equivalent to
set
arrows [ #duration:=
value ]