| 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 |
GI.Handy.Objects.Carousel
Contents
- Exported types
- Methods
- getAllowLongSwipes
- getAllowMouseDrag
- getAllowScrollWheel
- getAnimationDuration
- getInteractive
- getNPages
- getPosition
- getRevealDuration
- getSpacing
- insert
- new
- prepend
- reorder
- scrollTo
- scrollToFull
- setAllowLongSwipes
- setAllowMouseDrag
- setAllowScrollWheel
- setAnimationDuration
- setInteractive
- setRevealDuration
- setSpacing
- Properties
- Signals
Description
A paginated scrolling widget.
The HdyCarousel widget can be used to display a set of pages with
swipe-based navigation between them.
- class
carouselIndicatorDots - and [class
carouselIndicatorLines] can be used to provide page indicators forHdyCarousel.
CSS nodes
HdyCarousel has a single CSS node with name carousel.
Since: 1.0
Synopsis
- newtype Carousel = Carousel (ManagedPtr Carousel)
- class (GObject o, IsDescendantOf Carousel o) => IsCarousel o
- toCarousel :: (MonadIO m, IsCarousel o) => o -> m Carousel
- carouselGetAllowLongSwipes :: (HasCallStack, MonadIO m, IsCarousel a) => a -> m Bool
- carouselGetAllowMouseDrag :: (HasCallStack, MonadIO m, IsCarousel a) => a -> m Bool
- carouselGetAllowScrollWheel :: (HasCallStack, MonadIO m, IsCarousel a) => a -> m Bool
- carouselGetAnimationDuration :: (HasCallStack, MonadIO m, IsCarousel a) => a -> m Word32
- carouselGetInteractive :: (HasCallStack, MonadIO m, IsCarousel a) => a -> m Bool
- carouselGetNPages :: (HasCallStack, MonadIO m, IsCarousel a) => a -> m Word32
- carouselGetPosition :: (HasCallStack, MonadIO m, IsCarousel a) => a -> m Double
- carouselGetRevealDuration :: (HasCallStack, MonadIO m, IsCarousel a) => a -> m Word32
- carouselGetSpacing :: (HasCallStack, MonadIO m, IsCarousel a) => a -> m Word32
- carouselInsert :: (HasCallStack, MonadIO m, IsCarousel a, IsWidget b) => a -> b -> Int32 -> m ()
- carouselNew :: (HasCallStack, MonadIO m) => m Carousel
- carouselPrepend :: (HasCallStack, MonadIO m, IsCarousel a, IsWidget b) => a -> b -> m ()
- carouselReorder :: (HasCallStack, MonadIO m, IsCarousel a, IsWidget b) => a -> b -> Int32 -> m ()
- carouselScrollTo :: (HasCallStack, MonadIO m, IsCarousel a, IsWidget b) => a -> b -> m ()
- carouselScrollToFull :: (HasCallStack, MonadIO m, IsCarousel a, IsWidget b) => a -> b -> Int64 -> m ()
- carouselSetAllowLongSwipes :: (HasCallStack, MonadIO m, IsCarousel a) => a -> Bool -> m ()
- carouselSetAllowMouseDrag :: (HasCallStack, MonadIO m, IsCarousel a) => a -> Bool -> m ()
- carouselSetAllowScrollWheel :: (HasCallStack, MonadIO m, IsCarousel a) => a -> Bool -> m ()
- carouselSetAnimationDuration :: (HasCallStack, MonadIO m, IsCarousel a) => a -> Word32 -> m ()
- carouselSetInteractive :: (HasCallStack, MonadIO m, IsCarousel a) => a -> Bool -> m ()
- carouselSetRevealDuration :: (HasCallStack, MonadIO m, IsCarousel a) => a -> Word32 -> m ()
- carouselSetSpacing :: (HasCallStack, MonadIO m, IsCarousel a) => a -> Word32 -> m ()
- constructCarouselAllowLongSwipes :: (IsCarousel o, MonadIO m) => Bool -> m (GValueConstruct o)
- getCarouselAllowLongSwipes :: (MonadIO m, IsCarousel o) => o -> m Bool
- setCarouselAllowLongSwipes :: (MonadIO m, IsCarousel o) => o -> Bool -> m ()
- constructCarouselAllowMouseDrag :: (IsCarousel o, MonadIO m) => Bool -> m (GValueConstruct o)
- getCarouselAllowMouseDrag :: (MonadIO m, IsCarousel o) => o -> m Bool
- setCarouselAllowMouseDrag :: (MonadIO m, IsCarousel o) => o -> Bool -> m ()
- constructCarouselAllowScrollWheel :: (IsCarousel o, MonadIO m) => Bool -> m (GValueConstruct o)
- getCarouselAllowScrollWheel :: (MonadIO m, IsCarousel o) => o -> m Bool
- setCarouselAllowScrollWheel :: (MonadIO m, IsCarousel o) => o -> Bool -> m ()
- constructCarouselAnimationDuration :: (IsCarousel o, MonadIO m) => Word32 -> m (GValueConstruct o)
- getCarouselAnimationDuration :: (MonadIO m, IsCarousel o) => o -> m Word32
- setCarouselAnimationDuration :: (MonadIO m, IsCarousel o) => o -> Word32 -> m ()
- constructCarouselInteractive :: (IsCarousel o, MonadIO m) => Bool -> m (GValueConstruct o)
- getCarouselInteractive :: (MonadIO m, IsCarousel o) => o -> m Bool
- setCarouselInteractive :: (MonadIO m, IsCarousel o) => o -> Bool -> m ()
- getCarouselNPages :: (MonadIO m, IsCarousel o) => o -> m Word32
- getCarouselPosition :: (MonadIO m, IsCarousel o) => o -> m Double
- constructCarouselRevealDuration :: (IsCarousel o, MonadIO m) => Word32 -> m (GValueConstruct o)
- getCarouselRevealDuration :: (MonadIO m, IsCarousel o) => o -> m Word32
- setCarouselRevealDuration :: (MonadIO m, IsCarousel o) => o -> Word32 -> m ()
- constructCarouselSpacing :: (IsCarousel o, MonadIO m) => Word32 -> m (GValueConstruct o)
- getCarouselSpacing :: (MonadIO m, IsCarousel o) => o -> m Word32
- setCarouselSpacing :: (MonadIO m, IsCarousel o) => o -> Word32 -> m ()
- type CarouselPageChangedCallback = Word32 -> IO ()
- afterCarouselPageChanged :: (IsCarousel a, MonadIO m) => a -> ((?self :: a) => CarouselPageChangedCallback) -> m SignalHandlerId
- onCarouselPageChanged :: (IsCarousel a, MonadIO m) => a -> ((?self :: a) => CarouselPageChangedCallback) -> m SignalHandlerId
Exported types
Memory-managed wrapper type.
Instances
| Eq Carousel Source # | |
| GObject Carousel Source # | |
Defined in GI.Handy.Objects.Carousel | |
| ManagedPtrNewtype Carousel Source # | |
Defined in GI.Handy.Objects.Carousel Methods toManagedPtr :: Carousel -> ManagedPtr Carousel | |
| TypedObject Carousel Source # | |
Defined in GI.Handy.Objects.Carousel | |
| HasParentTypes Carousel Source # | |
Defined in GI.Handy.Objects.Carousel | |
| IsGValue (Maybe Carousel) Source # | Convert |
Defined in GI.Handy.Objects.Carousel Methods gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe Carousel -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe Carousel) | |
| type ParentTypes Carousel Source # | |
Defined in GI.Handy.Objects.Carousel | |
class (GObject o, IsDescendantOf Carousel o) => IsCarousel o Source #
Type class for types which can be safely cast to Carousel, for instance with toCarousel.
Instances
| (GObject o, IsDescendantOf Carousel o) => IsCarousel o Source # | |
Defined in GI.Handy.Objects.Carousel | |
toCarousel :: (MonadIO m, IsCarousel o) => o -> m Carousel Source #
Methods
Click to display all available methods, including inherited ones
Methods
activate, add, addAccelerator, addChild, addDeviceEvents, addEvents, addMnemonicLabel, addTickCallback, bindProperty, bindPropertyFull, canActivateAccel, checkResize, childFocus, childGetProperty, childNotify, childNotifyByPspec, childSetProperty, childType, 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, forall, forceFloating, foreach, freezeChildNotify, freezeNotify, getv, grabAdd, grabDefault, grabFocus, grabRemove, hasDefault, hasFocus, hasGrab, hasRcStyle, hasScreen, hasVisibleFocus, hide, hideOnDelete, inDestruction, initTemplate, inputShapeCombineRegion, insert, 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, prepend, propagateDraw, queueAllocate, queueComputeExpand, queueDraw, queueDrawArea, queueDrawRegion, queueResize, queueResizeNoRedraw, realize, ref, refSink, regionIntersect, registerWindow, remove, removeAccelerator, removeMnemonicLabel, removeTickCallback, renderIcon, renderIconPixbuf, reorder, reparent, resetRcStyles, resetStyle, resizeChildren, runDispose, scrollTo, scrollToFull, sendExpose, sendFocusChange, shapeCombineRegion, show, showAll, showNow, sizeAllocate, sizeAllocateWithBaseline, sizeRequest, stealData, stealQdata, styleAttach, styleGetProperty, switchChild, thawChildNotify, thawNotify, translateCoordinates, triggerTooltipQuery, unmap, unparent, unrealize, unref, unregisterWindow, unsetFocusChain, unsetStateFlags, watchClosure.
Getters
getAboveChild, getAccessible, getActionGroup, getAllocatedBaseline, getAllocatedHeight, getAllocatedSize, getAllocatedWidth, getAllocation, getAllowLongSwipes, getAllowMouseDrag, getAllowScrollWheel, getAncestor, getAnimationDuration, getAppPaintable, getBorderWidth, getCanDefault, getCanFocus, getCancelProgress, getChild, getChildRequisition, getChildVisible, getChildren, getClip, getClipboard, getCompositeName, getData, getDeviceEnabled, getDeviceEvents, getDirection, getDisplay, getDistance, getDoubleBuffered, getEvents, getFocusChain, getFocusChild, getFocusHadjustment, getFocusOnClick, getFocusVadjustment, getFontMap, getFontOptions, getFrameClock, getHalign, getHasTooltip, getHasWindow, getHexpand, getHexpandSet, getInteractive, getInternalChild, getMapped, getMarginBottom, getMarginEnd, getMarginLeft, getMarginRight, getMarginStart, getMarginTop, getModifierMask, getModifierStyle, getNPages, getName, getNoShowAll, getOpacity, getOrientation, getPangoContext, getParent, getParentWindow, getPath, getPathForChild, getPointer, getPosition, getPreferredHeight, getPreferredHeightAndBaselineForWidth, getPreferredHeightForWidth, getPreferredSize, getPreferredWidth, getPreferredWidthForHeight, getProgress, getProperty, getQdata, getRealized, getReceivesDefault, getRequestMode, getRequisition, getResizeMode, getRevealDuration, getRootWindow, getScaleFactor, getScreen, getSensitive, getSettings, getSizeRequest, getSnapPoints, getSpacing, getState, getStateFlags, getStyle, getStyleContext, getSupportMultidevice, getSwipeArea, getSwipeTracker, getTemplateChild, getTooltipMarkup, getTooltipText, getTooltipWindow, getToplevel, getValign, getValignWithBaseline, getVexpand, getVexpandSet, getVisible, getVisibleWindow, getVisual, getWindow.
Setters
setAboveChild, setAccelPath, setAllocation, setAllowLongSwipes, setAllowMouseDrag, setAllowScrollWheel, setAnimationDuration, setAppPaintable, setBorderWidth, setBuildableProperty, setCanDefault, setCanFocus, setChildVisible, setClip, setCompositeName, setData, setDataFull, setDeviceEnabled, setDeviceEvents, setDirection, setDoubleBuffered, setEvents, setFocusChain, setFocusChild, setFocusHadjustment, setFocusOnClick, setFocusVadjustment, setFontMap, setFontOptions, setHalign, setHasTooltip, setHasWindow, setHexpand, setHexpandSet, setInteractive, setMapped, setMarginBottom, setMarginEnd, setMarginLeft, setMarginRight, setMarginStart, setMarginTop, setName, setNoShowAll, setOpacity, setOrientation, setParent, setParentWindow, setProperty, setRealized, setReallocateRedraws, setReceivesDefault, setRedrawOnAllocate, setResizeMode, setRevealDuration, setSensitive, setSizeRequest, setSpacing, setState, setStateFlags, setStyle, setSupportMultidevice, setTooltipMarkup, setTooltipText, setTooltipWindow, setValign, setVexpand, setVexpandSet, setVisible, setVisibleWindow, setVisual, setWindow.
getAllowLongSwipes
carouselGetAllowLongSwipes Source #
Arguments
| :: (HasCallStack, MonadIO m, IsCarousel a) | |
| => a |
|
| -> m Bool | Returns: |
Gets whether to allow swiping for more than one page at a time.
Since: 1.2
getAllowMouseDrag
carouselGetAllowMouseDrag Source #
Arguments
| :: (HasCallStack, MonadIO m, IsCarousel a) | |
| => a |
|
| -> m Bool | Returns: |
Sets whether self can be dragged with mouse pointer.
Since: 1.0
getAllowScrollWheel
carouselGetAllowScrollWheel Source #
Arguments
| :: (HasCallStack, MonadIO m, IsCarousel a) | |
| => a |
|
| -> m Bool | Returns: |
Gets whether self will respond to scroll wheel events.
Since: 1.4
getAnimationDuration
carouselGetAnimationDuration Source #
Arguments
| :: (HasCallStack, MonadIO m, IsCarousel a) | |
| => a |
|
| -> m Word32 | Returns: animation duration, in milliseconds |
Gets animation duration used by [methodcarousel.scroll_to].
Since: 1.0
getInteractive
carouselGetInteractive Source #
Arguments
| :: (HasCallStack, MonadIO m, IsCarousel a) | |
| => a |
|
| -> m Bool | Returns: |
Gets whether self can be navigated.
Since: 1.0
getNPages
Arguments
| :: (HasCallStack, MonadIO m, IsCarousel a) | |
| => a |
|
| -> m Word32 | Returns: the number of pages in |
Gets the number of pages in self.
Since: 1.0
getPosition
Arguments
| :: (HasCallStack, MonadIO m, IsCarousel a) | |
| => a |
|
| -> m Double | Returns: the scroll position |
Gets current scroll position in self. It's unitless, 1 matches 1 page.
Since: 1.0
getRevealDuration
carouselGetRevealDuration Source #
Arguments
| :: (HasCallStack, MonadIO m, IsCarousel a) | |
| => a |
|
| -> m Word32 | Returns: the duration |
Gets duration of the animation used when adding or removing pages, in milliseconds.
Since: 1.0
getSpacing
Arguments
| :: (HasCallStack, MonadIO m, IsCarousel a) | |
| => a |
|
| -> m Word32 | Returns: spacing between pages |
Gets spacing between pages in pixels.
Since: 1.0
insert
Arguments
| :: (HasCallStack, MonadIO m, IsCarousel a, IsWidget b) | |
| => a |
|
| -> b |
|
| -> Int32 |
|
| -> m () |
Inserts child into self at position position.
If position is -1, or larger than the number of pages, child will be
appended to the end.
Since: 1.0
new
Arguments
| :: (HasCallStack, MonadIO m) | |
| => m Carousel | Returns: the newly created |
Creates a new HdyCarousel.
Since: 1.0
prepend
Arguments
| :: (HasCallStack, MonadIO m, IsCarousel a, IsWidget b) | |
| => a |
|
| -> b |
|
| -> m () |
Prepends child to self.
Since: 1.0
reorder
Arguments
| :: (HasCallStack, MonadIO m, IsCarousel a, IsWidget b) | |
| => a |
|
| -> b |
|
| -> Int32 |
|
| -> m () |
Moves child into position position.
If position is -1, or larger than the number of pages, child will be moved
to the end.
Since: 1.0
scrollTo
Arguments
| :: (HasCallStack, MonadIO m, IsCarousel a, IsWidget b) | |
| => a |
|
| -> b |
|
| -> m () |
Scrolls to widget position with an animation.
- property
carousel:animation-duration - property can be used for controlling the duration.
Since: 1.0
scrollToFull
Arguments
| :: (HasCallStack, MonadIO m, IsCarousel a, IsWidget b) | |
| => a |
|
| -> b |
|
| -> Int64 |
|
| -> m () |
Scrolls to widget position with an animation.
Since: 1.0
setAllowLongSwipes
carouselSetAllowLongSwipes Source #
Arguments
| :: (HasCallStack, MonadIO m, IsCarousel a) | |
| => a |
|
| -> Bool |
|
| -> m () |
Sets whether to allow swiping for more than one page at a time.
Since: 1.2
setAllowMouseDrag
carouselSetAllowMouseDrag Source #
Arguments
| :: (HasCallStack, MonadIO m, IsCarousel a) | |
| => a |
|
| -> Bool |
|
| -> m () |
Sets whether self can be dragged with mouse pointer.
If allowMouseDrag is FALSE, dragging is only available on touch.
Since: 1.0
setAllowScrollWheel
carouselSetAllowScrollWheel Source #
Arguments
| :: (HasCallStack, MonadIO m, IsCarousel a) | |
| => a |
|
| -> Bool |
|
| -> m () |
Sets whether self will respond to scroll wheel events.
Since: 1.4
setAnimationDuration
carouselSetAnimationDuration Source #
Arguments
| :: (HasCallStack, MonadIO m, IsCarousel a) | |
| => a |
|
| -> Word32 |
|
| -> m () |
Sets animation duration used by [methodcarousel.scroll_to].
Since: 1.0
setInteractive
carouselSetInteractive Source #
Arguments
| :: (HasCallStack, MonadIO m, IsCarousel a) | |
| => a |
|
| -> Bool |
|
| -> m () |
Sets whether self can be navigated.
This can be used to temporarily disable a [classcarousel] to only allow
swiping in a certain state.
Since: 1.0
setRevealDuration
carouselSetRevealDuration Source #
Arguments
| :: (HasCallStack, MonadIO m, IsCarousel a) | |
| => a |
|
| -> Word32 |
|
| -> m () |
Sets duration of the animation used when adding or removing pages, in milliseconds.
Since: 1.0
setSpacing
Arguments
| :: (HasCallStack, MonadIO m, IsCarousel a) | |
| => a |
|
| -> Word32 |
|
| -> m () |
Sets spacing between pages in pixels.
Since: 1.0
Properties
allowLongSwipes
Whether to allow swiping for more than one page at a time.
If the value is FALSE, each swipe can only move to the adjacent pages.
Since: 1.2
constructCarouselAllowLongSwipes :: (IsCarousel o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “allow-long-swipes” property. This is rarely needed directly, but it is used by new.
getCarouselAllowLongSwipes :: (MonadIO m, IsCarousel o) => o -> m Bool Source #
Get the value of the “allow-long-swipes” property.
When overloading is enabled, this is equivalent to
get carousel #allowLongSwipes
setCarouselAllowLongSwipes :: (MonadIO m, IsCarousel o) => o -> Bool -> m () Source #
Set the value of the “allow-long-swipes” property.
When overloading is enabled, this is equivalent to
setcarousel [ #allowLongSwipes:=value ]
allowMouseDrag
Sets whether the [classcarousel] can be dragged with mouse pointer.
If the value is FALSE, dragging is only available on touch.
Since: 1.0
constructCarouselAllowMouseDrag :: (IsCarousel o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “allow-mouse-drag” property. This is rarely needed directly, but it is used by new.
getCarouselAllowMouseDrag :: (MonadIO m, IsCarousel o) => o -> m Bool Source #
Get the value of the “allow-mouse-drag” property.
When overloading is enabled, this is equivalent to
get carousel #allowMouseDrag
setCarouselAllowMouseDrag :: (MonadIO m, IsCarousel o) => o -> Bool -> m () Source #
Set the value of the “allow-mouse-drag” property.
When overloading is enabled, this is equivalent to
setcarousel [ #allowMouseDrag:=value ]
allowScrollWheel
Whether the widget will respond to scroll wheel events.
If the value is FALSE, wheel events will be ignored.
Since: 1.4
constructCarouselAllowScrollWheel :: (IsCarousel o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “allow-scroll-wheel” property. This is rarely needed directly, but it is used by new.
getCarouselAllowScrollWheel :: (MonadIO m, IsCarousel o) => o -> m Bool Source #
Get the value of the “allow-scroll-wheel” property.
When overloading is enabled, this is equivalent to
get carousel #allowScrollWheel
setCarouselAllowScrollWheel :: (MonadIO m, IsCarousel o) => o -> Bool -> m () Source #
Set the value of the “allow-scroll-wheel” property.
When overloading is enabled, this is equivalent to
setcarousel [ #allowScrollWheel:=value ]
animationDuration
Animation duration used by [methodcarousel.scroll_to], in milliseconds.
Since: 1.0
constructCarouselAnimationDuration :: (IsCarousel o, MonadIO m) => Word32 -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “animation-duration” property. This is rarely needed directly, but it is used by new.
getCarouselAnimationDuration :: (MonadIO m, IsCarousel o) => o -> m Word32 Source #
Get the value of the “animation-duration” property.
When overloading is enabled, this is equivalent to
get carousel #animationDuration
setCarouselAnimationDuration :: (MonadIO m, IsCarousel o) => o -> Word32 -> m () Source #
Set the value of the “animation-duration” property.
When overloading is enabled, this is equivalent to
setcarousel [ #animationDuration:=value ]
interactive
Whether the carousel can be navigated.
This can be used to temporarily disable a HdyCarousel to only allow
navigating it in a certain state.
Since: 1.0
constructCarouselInteractive :: (IsCarousel o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “interactive” property. This is rarely needed directly, but it is used by new.
getCarouselInteractive :: (MonadIO m, IsCarousel o) => o -> m Bool Source #
Get the value of the “interactive” property.
When overloading is enabled, this is equivalent to
get carousel #interactive
setCarouselInteractive :: (MonadIO m, IsCarousel o) => o -> Bool -> m () Source #
Set the value of the “interactive” property.
When overloading is enabled, this is equivalent to
setcarousel [ #interactive:=value ]
nPages
The number of pages in a [classcarousel].
Since: 1.0
getCarouselNPages :: (MonadIO m, IsCarousel o) => o -> m Word32 Source #
Get the value of the “n-pages” property.
When overloading is enabled, this is equivalent to
get carousel #nPages
position
Current scrolling position, unitless.
1 matches 1 page. Use [methodcarousel.scroll_to] for changing it.
Since: 1.0
getCarouselPosition :: (MonadIO m, IsCarousel o) => o -> m Double Source #
Get the value of the “position” property.
When overloading is enabled, this is equivalent to
get carousel #position
revealDuration
Page reveal duration, in milliseconds.
Since: 1.0
constructCarouselRevealDuration :: (IsCarousel o, MonadIO m) => Word32 -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “reveal-duration” property. This is rarely needed directly, but it is used by new.
getCarouselRevealDuration :: (MonadIO m, IsCarousel o) => o -> m Word32 Source #
Get the value of the “reveal-duration” property.
When overloading is enabled, this is equivalent to
get carousel #revealDuration
setCarouselRevealDuration :: (MonadIO m, IsCarousel o) => o -> Word32 -> m () Source #
Set the value of the “reveal-duration” property.
When overloading is enabled, this is equivalent to
setcarousel [ #revealDuration:=value ]
spacing
Spacing between pages in pixels.
Since: 1.0
constructCarouselSpacing :: (IsCarousel o, MonadIO m) => Word32 -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “spacing” property. This is rarely needed directly, but it is used by new.
getCarouselSpacing :: (MonadIO m, IsCarousel o) => o -> m Word32 Source #
Get the value of the “spacing” property.
When overloading is enabled, this is equivalent to
get carousel #spacing
setCarouselSpacing :: (MonadIO m, IsCarousel o) => o -> Word32 -> m () Source #
Set the value of the “spacing” property.
When overloading is enabled, this is equivalent to
setcarousel [ #spacing:=value ]
Signals
pageChanged
type CarouselPageChangedCallback Source #
This signal is emitted after a page has been changed.
It can be used to implement "infinite scrolling" by amending the pages after every scroll.
Since: 1.0
afterCarouselPageChanged :: (IsCarousel a, MonadIO m) => a -> ((?self :: a) => CarouselPageChangedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the pageChanged signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after carousel #pageChanged 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.
onCarouselPageChanged :: (IsCarousel a, MonadIO m) => a -> ((?self :: a) => CarouselPageChangedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the pageChanged signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on carousel #pageChanged callback