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 |
- Exported types
- Methods
- addActionWidget
- appendPage
- commit
- getCurrentPage
- getNPages
- getNthPage
- getPageComplete
- getPageHasPadding
- getPageHeaderImage
- getPageSideImage
- getPageTitle
- getPageType
- insertPage
- new
- nextPage
- prependPage
- previousPage
- removeActionWidget
- removePage
- setCurrentPage
- setForwardPageFunc
- setPageComplete
- setPageHasPadding
- setPageHeaderImage
- setPageSideImage
- setPageTitle
- setPageType
- updateButtonsState
- Properties
- Signals
A Assistant
is a widget used to represent a generally complex
operation splitted in several steps, guiding the user through its
pages and controlling the page flow to collect the necessary data.
The design of GtkAssistant is that it controls what buttons to show and to make sensitive, based on what it knows about the page sequence and the [type][GtkAssistantPageType] of each page, in addition to state information like the page [completion][gtk-assistant-set-page-complete] and [committed][gtk-assistant-commit] status.
If you have a case that doesn’t quite fit in GtkAssistants
way of
handling buttons, you can use the GTK_ASSISTANT_PAGE_CUSTOM
page
type and handle buttons yourself.
GtkAssistant as GtkBuildable
The GtkAssistant implementation of the Buildable
interface
exposes the actionArea
as internal children with the name
“action_area”.
To add pages to an assistant in Builder
, simply add it as a
child to the GtkAssistant object, and set its child properties
as necessary.
CSS nodes
GtkAssistant has a single CSS node with the name assistant.
Synopsis
- newtype Assistant = Assistant (ManagedPtr Assistant)
- class (GObject o, IsDescendantOf Assistant o) => IsAssistant o
- toAssistant :: (MonadIO m, IsAssistant o) => o -> m Assistant
- assistantAddActionWidget :: (HasCallStack, MonadIO m, IsAssistant a, IsWidget b) => a -> b -> m ()
- assistantAppendPage :: (HasCallStack, MonadIO m, IsAssistant a, IsWidget b) => a -> b -> m Int32
- assistantCommit :: (HasCallStack, MonadIO m, IsAssistant a) => a -> m ()
- assistantGetCurrentPage :: (HasCallStack, MonadIO m, IsAssistant a) => a -> m Int32
- assistantGetNPages :: (HasCallStack, MonadIO m, IsAssistant a) => a -> m Int32
- assistantGetNthPage :: (HasCallStack, MonadIO m, IsAssistant a) => a -> Int32 -> m (Maybe Widget)
- assistantGetPageComplete :: (HasCallStack, MonadIO m, IsAssistant a, IsWidget b) => a -> b -> m Bool
- assistantGetPageHasPadding :: (HasCallStack, MonadIO m, IsAssistant a, IsWidget b) => a -> b -> m Bool
- assistantGetPageHeaderImage :: (HasCallStack, MonadIO m, IsAssistant a, IsWidget b) => a -> b -> m Pixbuf
- assistantGetPageSideImage :: (HasCallStack, MonadIO m, IsAssistant a, IsWidget b) => a -> b -> m Pixbuf
- assistantGetPageTitle :: (HasCallStack, MonadIO m, IsAssistant a, IsWidget b) => a -> b -> m Text
- assistantGetPageType :: (HasCallStack, MonadIO m, IsAssistant a, IsWidget b) => a -> b -> m AssistantPageType
- assistantInsertPage :: (HasCallStack, MonadIO m, IsAssistant a, IsWidget b) => a -> b -> Int32 -> m Int32
- assistantNew :: (HasCallStack, MonadIO m) => m Assistant
- assistantNextPage :: (HasCallStack, MonadIO m, IsAssistant a) => a -> m ()
- assistantPrependPage :: (HasCallStack, MonadIO m, IsAssistant a, IsWidget b) => a -> b -> m Int32
- assistantPreviousPage :: (HasCallStack, MonadIO m, IsAssistant a) => a -> m ()
- assistantRemoveActionWidget :: (HasCallStack, MonadIO m, IsAssistant a, IsWidget b) => a -> b -> m ()
- assistantRemovePage :: (HasCallStack, MonadIO m, IsAssistant a) => a -> Int32 -> m ()
- assistantSetCurrentPage :: (HasCallStack, MonadIO m, IsAssistant a) => a -> Int32 -> m ()
- assistantSetForwardPageFunc :: (HasCallStack, MonadIO m, IsAssistant a) => a -> Maybe AssistantPageFunc -> m ()
- assistantSetPageComplete :: (HasCallStack, MonadIO m, IsAssistant a, IsWidget b) => a -> b -> Bool -> m ()
- assistantSetPageHasPadding :: (HasCallStack, MonadIO m, IsAssistant a, IsWidget b) => a -> b -> Bool -> m ()
- assistantSetPageHeaderImage :: (HasCallStack, MonadIO m, IsAssistant a, IsWidget b, IsPixbuf c) => a -> b -> Maybe c -> m ()
- assistantSetPageSideImage :: (HasCallStack, MonadIO m, IsAssistant a, IsWidget b, IsPixbuf c) => a -> b -> Maybe c -> m ()
- assistantSetPageTitle :: (HasCallStack, MonadIO m, IsAssistant a, IsWidget b) => a -> b -> Text -> m ()
- assistantSetPageType :: (HasCallStack, MonadIO m, IsAssistant a, IsWidget b) => a -> b -> AssistantPageType -> m ()
- assistantUpdateButtonsState :: (HasCallStack, MonadIO m, IsAssistant a) => a -> m ()
- constructAssistantUseHeaderBar :: (IsAssistant o, MonadIO m) => Int32 -> m (GValueConstruct o)
- getAssistantUseHeaderBar :: (MonadIO m, IsAssistant o) => o -> m Int32
- type AssistantApplyCallback = IO ()
- type C_AssistantApplyCallback = Ptr () -> Ptr () -> IO ()
- afterAssistantApply :: (IsAssistant a, MonadIO m) => a -> AssistantApplyCallback -> m SignalHandlerId
- genClosure_AssistantApply :: MonadIO m => AssistantApplyCallback -> m (GClosure C_AssistantApplyCallback)
- mk_AssistantApplyCallback :: C_AssistantApplyCallback -> IO (FunPtr C_AssistantApplyCallback)
- noAssistantApplyCallback :: Maybe AssistantApplyCallback
- onAssistantApply :: (IsAssistant a, MonadIO m) => a -> AssistantApplyCallback -> m SignalHandlerId
- wrap_AssistantApplyCallback :: AssistantApplyCallback -> C_AssistantApplyCallback
- type AssistantCancelCallback = IO ()
- type C_AssistantCancelCallback = Ptr () -> Ptr () -> IO ()
- afterAssistantCancel :: (IsAssistant a, MonadIO m) => a -> AssistantCancelCallback -> m SignalHandlerId
- genClosure_AssistantCancel :: MonadIO m => AssistantCancelCallback -> m (GClosure C_AssistantCancelCallback)
- mk_AssistantCancelCallback :: C_AssistantCancelCallback -> IO (FunPtr C_AssistantCancelCallback)
- noAssistantCancelCallback :: Maybe AssistantCancelCallback
- onAssistantCancel :: (IsAssistant a, MonadIO m) => a -> AssistantCancelCallback -> m SignalHandlerId
- wrap_AssistantCancelCallback :: AssistantCancelCallback -> C_AssistantCancelCallback
- type AssistantCloseCallback = IO ()
- type C_AssistantCloseCallback = Ptr () -> Ptr () -> IO ()
- afterAssistantClose :: (IsAssistant a, MonadIO m) => a -> AssistantCloseCallback -> m SignalHandlerId
- genClosure_AssistantClose :: MonadIO m => AssistantCloseCallback -> m (GClosure C_AssistantCloseCallback)
- mk_AssistantCloseCallback :: C_AssistantCloseCallback -> IO (FunPtr C_AssistantCloseCallback)
- noAssistantCloseCallback :: Maybe AssistantCloseCallback
- onAssistantClose :: (IsAssistant a, MonadIO m) => a -> AssistantCloseCallback -> m SignalHandlerId
- wrap_AssistantCloseCallback :: AssistantCloseCallback -> C_AssistantCloseCallback
- type AssistantEscapeCallback = IO ()
- type C_AssistantEscapeCallback = Ptr () -> Ptr () -> IO ()
- afterAssistantEscape :: (IsAssistant a, MonadIO m) => a -> AssistantEscapeCallback -> m SignalHandlerId
- genClosure_AssistantEscape :: MonadIO m => AssistantEscapeCallback -> m (GClosure C_AssistantEscapeCallback)
- mk_AssistantEscapeCallback :: C_AssistantEscapeCallback -> IO (FunPtr C_AssistantEscapeCallback)
- noAssistantEscapeCallback :: Maybe AssistantEscapeCallback
- onAssistantEscape :: (IsAssistant a, MonadIO m) => a -> AssistantEscapeCallback -> m SignalHandlerId
- wrap_AssistantEscapeCallback :: AssistantEscapeCallback -> C_AssistantEscapeCallback
- type AssistantPrepareCallback = Widget -> IO ()
- type C_AssistantPrepareCallback = Ptr () -> Ptr Widget -> Ptr () -> IO ()
- afterAssistantPrepare :: (IsAssistant a, MonadIO m) => a -> AssistantPrepareCallback -> m SignalHandlerId
- genClosure_AssistantPrepare :: MonadIO m => AssistantPrepareCallback -> m (GClosure C_AssistantPrepareCallback)
- mk_AssistantPrepareCallback :: C_AssistantPrepareCallback -> IO (FunPtr C_AssistantPrepareCallback)
- noAssistantPrepareCallback :: Maybe AssistantPrepareCallback
- onAssistantPrepare :: (IsAssistant a, MonadIO m) => a -> AssistantPrepareCallback -> m SignalHandlerId
- wrap_AssistantPrepareCallback :: AssistantPrepareCallback -> C_AssistantPrepareCallback
Exported types
Memory-managed wrapper type.
Instances
Eq Assistant Source # | |
GObject Assistant Source # | |
Defined in GI.Gtk.Objects.Assistant | |
ManagedPtrNewtype Assistant Source # | |
Defined in GI.Gtk.Objects.Assistant toManagedPtr :: Assistant -> ManagedPtr Assistant | |
TypedObject Assistant Source # | |
Defined in GI.Gtk.Objects.Assistant | |
HasParentTypes Assistant Source # | |
Defined in GI.Gtk.Objects.Assistant | |
IsGValue (Maybe Assistant) Source # | Convert |
Defined in GI.Gtk.Objects.Assistant gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe Assistant -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe Assistant) | |
type ParentTypes Assistant Source # | |
class (GObject o, IsDescendantOf Assistant o) => IsAssistant o Source #
Type class for types which can be safely cast to Assistant
, for instance with toAssistant
.
Instances
(GObject o, IsDescendantOf Assistant o) => IsAssistant o Source # | |
Defined in GI.Gtk.Objects.Assistant |
toAssistant :: (MonadIO m, IsAssistant o) => o -> m Assistant Source #
Methods
Click to display all available methods, including inherited ones
Methods
activate, activateDefault, activateFocus, activateKey, add, addAccelGroup, addAccelerator, addActionWidget, addChild, addDeviceEvents, addEvents, addMnemonic, addMnemonicLabel, addTickCallback, appendPage, beginMoveDrag, beginResizeDrag, bindProperty, bindPropertyFull, canActivateAccel, checkResize, childFocus, childGetProperty, childNotify, childNotifyByPspec, childSetProperty, childType, classPath, close, commit, computeExpand, constructChild, createPangoContext, createPangoLayout, customFinished, customTagEnd, customTagStart, deiconify, 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, forall, forceFloating, foreach, freezeChildNotify, freezeNotify, fullscreen, fullscreenOnMonitor, getv, grabAdd, grabDefault, grabFocus, grabRemove, hasDefault, hasFocus, hasGrab, hasGroup, hasRcStyle, hasScreen, hasToplevelFocus, hasVisibleFocus, hide, hideOnDelete, iconify, inDestruction, initTemplate, inputShapeCombineRegion, insertActionGroup, insertPage, intersect, isActive, isAncestor, isComposited, isDrawable, isFloating, isFocus, isMaximized, isSensitive, isToplevel, isVisible, keynavFailed, listAccelClosures, listActionPrefixes, listMnemonicLabels, map, maximize, mnemonicActivate, modifyBase, modifyBg, modifyCursor, modifyFg, modifyFont, modifyStyle, modifyText, move, nextPage, notify, notifyByPspec, overrideBackgroundColor, overrideColor, overrideCursor, overrideFont, overrideSymbolicColor, parseGeometry, parserFinished, path, prependPage, present, presentWithTime, previousPage, propagateDraw, propagateKeyEvent, queueAllocate, queueComputeExpand, queueDraw, queueDrawArea, queueDrawRegion, queueResize, queueResizeNoRedraw, realize, ref, refSink, regionIntersect, registerWindow, remove, removeAccelGroup, removeAccelerator, removeActionWidget, removeMnemonic, removeMnemonicLabel, removePage, removeTickCallback, renderIcon, renderIconPixbuf, reparent, resetRcStyles, resetStyle, reshowWithInitialSize, resize, resizeChildren, resizeGripIsVisible, resizeToGeometry, runDispose, sendExpose, sendFocusChange, shapeCombineRegion, show, showAll, showNow, sizeAllocate, sizeAllocateWithBaseline, sizeRequest, stealData, stealQdata, stick, styleAttach, styleGetProperty, thawChildNotify, thawNotify, translateCoordinates, triggerTooltipQuery, unfullscreen, unmap, unmaximize, unparent, unrealize, unref, unregisterWindow, unsetFocusChain, unsetStateFlags, unstick, updateButtonsState, watchClosure.
Getters
getAcceptFocus, getAccessible, getActionGroup, getAllocatedBaseline, getAllocatedHeight, getAllocatedSize, getAllocatedWidth, getAllocation, getAncestor, getAppPaintable, getApplication, getAttachedTo, getBorderWidth, getCanDefault, getCanFocus, getChild, getChildRequisition, getChildVisible, getChildren, getClip, getClipboard, getCompositeName, getCurrentPage, getData, getDecorated, getDefaultSize, getDefaultWidget, getDeletable, getDestroyWithParent, getDeviceEnabled, getDeviceEvents, getDirection, getDisplay, getDoubleBuffered, getEvents, getFocus, getFocusChain, getFocusChild, getFocusHadjustment, getFocusOnClick, getFocusOnMap, getFocusVadjustment, getFocusVisible, getFontMap, getFontOptions, getFrameClock, getGravity, getGroup, getHalign, getHasResizeGrip, getHasTooltip, getHasWindow, getHexpand, getHexpandSet, getHideTitlebarWhenMaximized, getIcon, getIconList, getIconName, getInternalChild, getMapped, getMarginBottom, getMarginEnd, getMarginLeft, getMarginRight, getMarginStart, getMarginTop, getMnemonicModifier, getMnemonicsVisible, getModal, getModifierMask, getModifierStyle, getNPages, getName, getNoShowAll, getNthPage, getOpacity, getPageComplete, getPageHasPadding, getPageHeaderImage, getPageSideImage, getPageTitle, getPageType, getPangoContext, getParent, getParentWindow, getPath, getPathForChild, getPointer, getPosition, getPreferredHeight, getPreferredHeightAndBaselineForWidth, getPreferredHeightForWidth, getPreferredSize, getPreferredWidth, getPreferredWidthForHeight, getProperty, getQdata, getRealized, getReceivesDefault, getRequestMode, getRequisition, getResizable, getResizeGripArea, getResizeMode, getRole, getRootWindow, getScaleFactor, getScreen, getSensitive, getSettings, getSize, getSizeRequest, getSkipPagerHint, getSkipTaskbarHint, getState, getStateFlags, getStyle, getStyleContext, getSupportMultidevice, getTemplateChild, getTitle, getTitlebar, getTooltipMarkup, getTooltipText, getTooltipWindow, getToplevel, getTransientFor, getTypeHint, getUrgencyHint, getValign, getValignWithBaseline, getVexpand, getVexpandSet, getVisible, getVisual, getWindow, getWindowType.
Setters
setAccelPath, setAcceptFocus, setAllocation, setAppPaintable, setApplication, setAttachedTo, setBorderWidth, setBuildableProperty, setCanDefault, setCanFocus, setChildVisible, setClip, setCompositeName, setCurrentPage, setData, setDataFull, setDecorated, setDefault, setDefaultGeometry, setDefaultSize, setDeletable, setDestroyWithParent, setDeviceEnabled, setDeviceEvents, setDirection, setDoubleBuffered, setEvents, setFocus, setFocusChain, setFocusChild, setFocusHadjustment, setFocusOnClick, setFocusOnMap, setFocusVadjustment, setFocusVisible, setFontMap, setFontOptions, setForwardPageFunc, setGeometryHints, setGravity, setHalign, setHasResizeGrip, setHasTooltip, setHasUserRefCount, setHasWindow, setHexpand, setHexpandSet, setHideTitlebarWhenMaximized, setIcon, setIconFromFile, setIconList, setIconName, setKeepAbove, setKeepBelow, setMapped, setMarginBottom, setMarginEnd, setMarginLeft, setMarginRight, setMarginStart, setMarginTop, setMnemonicModifier, setMnemonicsVisible, setModal, setName, setNoShowAll, setOpacity, setPageComplete, setPageHasPadding, setPageHeaderImage, setPageSideImage, setPageTitle, setPageType, setParent, setParentWindow, setPosition, setProperty, setRealized, setReallocateRedraws, setReceivesDefault, setRedrawOnAllocate, setResizable, setResizeMode, setRole, setScreen, setSensitive, setSizeRequest, setSkipPagerHint, setSkipTaskbarHint, setStartupId, setState, setStateFlags, setStyle, setSupportMultidevice, setTitle, setTitlebar, setTooltipMarkup, setTooltipText, setTooltipWindow, setTransientFor, setTypeHint, setUrgencyHint, setValign, setVexpand, setVexpandSet, setVisible, setVisual, setWindow, setWmclass.
addActionWidget
assistantAddActionWidget Source #
:: (HasCallStack, MonadIO m, IsAssistant a, IsWidget b) | |
=> a |
|
-> b |
|
-> m () |
Adds a widget to the action area of a Assistant
.
Since: 2.10
appendPage
:: (HasCallStack, MonadIO m, IsAssistant a, IsWidget b) | |
=> a |
|
-> b |
|
-> m Int32 | Returns: the index (starting at 0) of the inserted page |
Appends a page to the assistant
.
Since: 2.10
commit
:: (HasCallStack, MonadIO m, IsAssistant a) | |
=> a |
|
-> m () |
Erases the visited page history so the back button is not shown on the current page, and removes the cancel button from subsequent pages.
Use this when the information provided up to the current page is hereafter deemed permanent and cannot be modified or undone. For example, showing a progress page to track a long-running, unreversible operation after the user has clicked apply on a confirmation page.
Since: 2.22
getCurrentPage
assistantGetCurrentPage Source #
:: (HasCallStack, MonadIO m, IsAssistant a) | |
=> a |
|
-> m Int32 | Returns: The index (starting from 0) of the current
page in the |
Returns the page number of the current page.
Since: 2.10
getNPages
:: (HasCallStack, MonadIO m, IsAssistant a) | |
=> a |
|
-> m Int32 | Returns: the number of pages in the |
Returns the number of pages in the assistant
Since: 2.10
getNthPage
:: (HasCallStack, MonadIO m, IsAssistant a) | |
=> a |
|
-> Int32 |
|
-> m (Maybe Widget) | Returns: the child widget, or |
Returns the child widget contained in page number pageNum
.
Since: 2.10
getPageComplete
assistantGetPageComplete Source #
:: (HasCallStack, MonadIO m, IsAssistant a, IsWidget b) | |
=> a |
|
-> b |
|
-> m Bool | Returns: |
Gets whether page
is complete.
Since: 2.10
getPageHasPadding
assistantGetPageHasPadding Source #
:: (HasCallStack, MonadIO m, IsAssistant a, IsWidget b) | |
=> a |
|
-> b |
|
-> m Bool | Returns: |
Gets whether page has padding.
Since: 3.18
getPageHeaderImage
assistantGetPageHeaderImage Source #
:: (HasCallStack, MonadIO m, IsAssistant a, IsWidget b) | |
=> a |
|
-> b |
|
-> m Pixbuf | Returns: the header image for |
Deprecated: (Since version 3.2)Since GTK+ 3.2, a header is no longer shown; add your header decoration to the page content instead.
Gets the header image for page
.
Since: 2.10
getPageSideImage
assistantGetPageSideImage Source #
:: (HasCallStack, MonadIO m, IsAssistant a, IsWidget b) | |
=> a |
|
-> b |
|
-> m Pixbuf | Returns: the side image for |
Deprecated: (Since version 3.2)Since GTK+ 3.2, sidebar images are not shown anymore.
Gets the side image for page
.
Since: 2.10
getPageTitle
assistantGetPageTitle Source #
:: (HasCallStack, MonadIO m, IsAssistant a, IsWidget b) | |
=> a |
|
-> b |
|
-> m Text | Returns: the title for |
Gets the title for page
.
Since: 2.10
getPageType
:: (HasCallStack, MonadIO m, IsAssistant a, IsWidget b) | |
=> a |
|
-> b |
|
-> m AssistantPageType | Returns: the page type of |
Gets the page type of page
.
Since: 2.10
insertPage
:: (HasCallStack, MonadIO m, IsAssistant a, IsWidget b) | |
=> a |
|
-> b |
|
-> Int32 |
|
-> m Int32 | Returns: the index (starting from 0) of the inserted page |
Inserts a page in the assistant
at a given position.
Since: 2.10
new
:: (HasCallStack, MonadIO m) | |
=> m Assistant | Returns: a newly created |
Creates a new Assistant
.
Since: 2.10
nextPage
:: (HasCallStack, MonadIO m, IsAssistant a) | |
=> a |
|
-> m () |
Navigate to the next page.
It is a programming error to call this function when there is no next page.
This function is for use when creating pages of the
GTK_ASSISTANT_PAGE_CUSTOM
type.
Since: 3.0
prependPage
:: (HasCallStack, MonadIO m, IsAssistant a, IsWidget b) | |
=> a |
|
-> b |
|
-> m Int32 | Returns: the index (starting at 0) of the inserted page |
Prepends a page to the assistant
.
Since: 2.10
previousPage
assistantPreviousPage Source #
:: (HasCallStack, MonadIO m, IsAssistant a) | |
=> a |
|
-> m () |
Navigate to the previous visited page.
It is a programming error to call this function when no previous page is available.
This function is for use when creating pages of the
GTK_ASSISTANT_PAGE_CUSTOM
type.
Since: 3.0
removeActionWidget
assistantRemoveActionWidget Source #
:: (HasCallStack, MonadIO m, IsAssistant a, IsWidget b) | |
=> a |
|
-> b |
|
-> m () |
Removes a widget from the action area of a Assistant
.
Since: 2.10
removePage
:: (HasCallStack, MonadIO m, IsAssistant a) | |
=> a |
|
-> Int32 |
|
-> m () |
Removes the pageNum
’s page from assistant
.
Since: 3.2
setCurrentPage
assistantSetCurrentPage Source #
:: (HasCallStack, MonadIO m, IsAssistant a) | |
=> a |
|
-> Int32 |
|
-> m () |
Switches the page to pageNum
.
Note that this will only be necessary in custom buttons,
as the assistant
flow can be set with
assistantSetForwardPageFunc
.
Since: 2.10
setForwardPageFunc
assistantSetForwardPageFunc Source #
:: (HasCallStack, MonadIO m, IsAssistant a) | |
=> a |
|
-> Maybe AssistantPageFunc |
|
-> m () |
Sets the page forwarding function to be pageFunc
.
This function will be used to determine what will be
the next page when the user presses the forward button.
Setting pageFunc
to Nothing
will make the assistant to
use the default forward function, which just goes to the
next visible page.
Since: 2.10
setPageComplete
assistantSetPageComplete Source #
:: (HasCallStack, MonadIO m, IsAssistant a, IsWidget b) | |
=> a |
|
-> b |
|
-> Bool |
|
-> m () |
Sets whether page
contents are complete.
This will make assistant
update the buttons state
to be able to continue the task.
Since: 2.10
setPageHasPadding
assistantSetPageHasPadding Source #
:: (HasCallStack, MonadIO m, IsAssistant a, IsWidget b) | |
=> a |
|
-> b |
|
-> Bool |
|
-> m () |
Sets whether the assistant is adding padding around the page.
Since: 3.18
setPageHeaderImage
assistantSetPageHeaderImage Source #
:: (HasCallStack, MonadIO m, IsAssistant a, IsWidget b, IsPixbuf c) | |
=> a |
|
-> b |
|
-> Maybe c |
|
-> m () |
Deprecated: (Since version 3.2)Since GTK+ 3.2, a header is no longer shown; add your header decoration to the page content instead.
Sets a header image for page
.
Since: 2.10
setPageSideImage
assistantSetPageSideImage Source #
:: (HasCallStack, MonadIO m, IsAssistant a, IsWidget b, IsPixbuf c) | |
=> a |
|
-> b |
|
-> Maybe c |
|
-> m () |
Deprecated: (Since version 3.2)Since GTK+ 3.2, sidebar images are not shown anymore.
Sets a side image for page
.
This image used to be displayed in the side area of the assistant
when page
is the current page.
Since: 2.10
setPageTitle
assistantSetPageTitle Source #
:: (HasCallStack, MonadIO m, IsAssistant a, IsWidget b) | |
=> a |
|
-> b |
|
-> Text |
|
-> m () |
Sets a title for page
.
The title is displayed in the header area of the assistant
when page
is the current page.
Since: 2.10
setPageType
:: (HasCallStack, MonadIO m, IsAssistant a, IsWidget b) | |
=> a |
|
-> b |
|
-> AssistantPageType |
|
-> m () |
Sets the page type for page
.
The page type determines the page behavior in the assistant
.
Since: 2.10
updateButtonsState
assistantUpdateButtonsState Source #
:: (HasCallStack, MonadIO m, IsAssistant a) | |
=> a |
|
-> m () |
Forces assistant
to recompute the buttons state.
GTK+ automatically takes care of this in most situations, e.g. when the user goes to a different page, or when the visibility or completeness of a page changes.
One situation where it can be necessary to call this function is when changing a value on the current page affects the future page flow of the assistant.
Since: 2.10
Properties
useHeaderBar
True
if the assistant uses a HeaderBar
for action buttons
instead of the action-area.
For technical reasons, this property is declared as an integer
property, but you should only set it to True
or False
.
Since: 3.12
constructAssistantUseHeaderBar :: (IsAssistant o, MonadIO m) => Int32 -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “use-header-bar
” property. This is rarely needed directly, but it is used by new
.
getAssistantUseHeaderBar :: (MonadIO m, IsAssistant o) => o -> m Int32 Source #
Get the value of the “use-header-bar
” property.
When overloading is enabled, this is equivalent to
get
assistant #useHeaderBar
Signals
apply
type AssistantApplyCallback = IO () Source #
The apply signal is emitted when the apply button is clicked.
The default behavior of the Assistant
is to switch to the page
after the current page, unless the current page is the last one.
A handler for the apply signal should carry out the actions for
which the wizard has collected data. If the action takes a long time
to complete, you might consider putting a page of type
AssistantPageTypeProgress
after the confirmation page and handle
this operation within the prepare signal of the progress
page.
Since: 2.10
type C_AssistantApplyCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
afterAssistantApply :: (IsAssistant a, MonadIO m) => a -> AssistantApplyCallback -> m SignalHandlerId Source #
Connect a signal handler for the apply signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
assistant #apply callback
genClosure_AssistantApply :: MonadIO m => AssistantApplyCallback -> m (GClosure C_AssistantApplyCallback) Source #
Wrap the callback into a GClosure
.
mk_AssistantApplyCallback :: C_AssistantApplyCallback -> IO (FunPtr C_AssistantApplyCallback) Source #
Generate a function pointer callable from C code, from a C_AssistantApplyCallback
.
noAssistantApplyCallback :: Maybe AssistantApplyCallback Source #
A convenience synonym for
.Nothing
:: Maybe
AssistantApplyCallback
onAssistantApply :: (IsAssistant a, MonadIO m) => a -> AssistantApplyCallback -> m SignalHandlerId Source #
Connect a signal handler for the apply signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
assistant #apply callback
wrap_AssistantApplyCallback :: AssistantApplyCallback -> C_AssistantApplyCallback Source #
Wrap a AssistantApplyCallback
into a C_AssistantApplyCallback
.
cancel
type AssistantCancelCallback = IO () Source #
The cancel signal is emitted when then the cancel button is clicked.
Since: 2.10
type C_AssistantCancelCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
afterAssistantCancel :: (IsAssistant a, MonadIO m) => a -> AssistantCancelCallback -> m SignalHandlerId Source #
Connect a signal handler for the cancel signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
assistant #cancel callback
genClosure_AssistantCancel :: MonadIO m => AssistantCancelCallback -> m (GClosure C_AssistantCancelCallback) Source #
Wrap the callback into a GClosure
.
mk_AssistantCancelCallback :: C_AssistantCancelCallback -> IO (FunPtr C_AssistantCancelCallback) Source #
Generate a function pointer callable from C code, from a C_AssistantCancelCallback
.
noAssistantCancelCallback :: Maybe AssistantCancelCallback Source #
A convenience synonym for
.Nothing
:: Maybe
AssistantCancelCallback
onAssistantCancel :: (IsAssistant a, MonadIO m) => a -> AssistantCancelCallback -> m SignalHandlerId Source #
Connect a signal handler for the cancel signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
assistant #cancel callback
wrap_AssistantCancelCallback :: AssistantCancelCallback -> C_AssistantCancelCallback Source #
Wrap a AssistantCancelCallback
into a C_AssistantCancelCallback
.
close
type AssistantCloseCallback = IO () Source #
The close signal is emitted either when the close button of
a summary page is clicked, or when the apply button in the last
page in the flow (of type AssistantPageTypeConfirm
) is clicked.
Since: 2.10
type C_AssistantCloseCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
afterAssistantClose :: (IsAssistant a, MonadIO m) => a -> AssistantCloseCallback -> m SignalHandlerId Source #
Connect a signal handler for the close signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
assistant #close callback
genClosure_AssistantClose :: MonadIO m => AssistantCloseCallback -> m (GClosure C_AssistantCloseCallback) Source #
Wrap the callback into a GClosure
.
mk_AssistantCloseCallback :: C_AssistantCloseCallback -> IO (FunPtr C_AssistantCloseCallback) Source #
Generate a function pointer callable from C code, from a C_AssistantCloseCallback
.
noAssistantCloseCallback :: Maybe AssistantCloseCallback Source #
A convenience synonym for
.Nothing
:: Maybe
AssistantCloseCallback
onAssistantClose :: (IsAssistant a, MonadIO m) => a -> AssistantCloseCallback -> m SignalHandlerId Source #
Connect a signal handler for the close signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
assistant #close callback
wrap_AssistantCloseCallback :: AssistantCloseCallback -> C_AssistantCloseCallback Source #
Wrap a AssistantCloseCallback
into a C_AssistantCloseCallback
.
escape
type AssistantEscapeCallback = IO () Source #
No description available in the introspection data.
type C_AssistantEscapeCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
afterAssistantEscape :: (IsAssistant a, MonadIO m) => a -> AssistantEscapeCallback -> m SignalHandlerId Source #
Connect a signal handler for the escape signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
assistant #escape callback
genClosure_AssistantEscape :: MonadIO m => AssistantEscapeCallback -> m (GClosure C_AssistantEscapeCallback) Source #
Wrap the callback into a GClosure
.
mk_AssistantEscapeCallback :: C_AssistantEscapeCallback -> IO (FunPtr C_AssistantEscapeCallback) Source #
Generate a function pointer callable from C code, from a C_AssistantEscapeCallback
.
noAssistantEscapeCallback :: Maybe AssistantEscapeCallback Source #
A convenience synonym for
.Nothing
:: Maybe
AssistantEscapeCallback
onAssistantEscape :: (IsAssistant a, MonadIO m) => a -> AssistantEscapeCallback -> m SignalHandlerId Source #
Connect a signal handler for the escape signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
assistant #escape callback
wrap_AssistantEscapeCallback :: AssistantEscapeCallback -> C_AssistantEscapeCallback Source #
Wrap a AssistantEscapeCallback
into a C_AssistantEscapeCallback
.
prepare
type AssistantPrepareCallback Source #
The prepare signal is emitted when a new page is set as the assistant's current page, before making the new page visible.
A handler for this signal can do any preparations which are
necessary before showing page
.
Since: 2.10
type C_AssistantPrepareCallback = Ptr () -> Ptr Widget -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
afterAssistantPrepare :: (IsAssistant a, MonadIO m) => a -> AssistantPrepareCallback -> m SignalHandlerId Source #
Connect a signal handler for the prepare signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
assistant #prepare callback
genClosure_AssistantPrepare :: MonadIO m => AssistantPrepareCallback -> m (GClosure C_AssistantPrepareCallback) Source #
Wrap the callback into a GClosure
.
mk_AssistantPrepareCallback :: C_AssistantPrepareCallback -> IO (FunPtr C_AssistantPrepareCallback) Source #
Generate a function pointer callable from C code, from a C_AssistantPrepareCallback
.
noAssistantPrepareCallback :: Maybe AssistantPrepareCallback Source #
A convenience synonym for
.Nothing
:: Maybe
AssistantPrepareCallback
onAssistantPrepare :: (IsAssistant a, MonadIO m) => a -> AssistantPrepareCallback -> m SignalHandlerId Source #
Connect a signal handler for the prepare signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
assistant #prepare callback