[33:7] extends: object
GtkAssistant is used to represent a complex as a series of steps.
GtkAssistant guides the user through the
pages, and controls the page flow to collect the data needed for the
operation. GtkAssistant handles which buttons to show and to make sensitive
based on page sequence knowledge and the [enum@Gtk.AssistantPageType] of each
page in addition to state information like the completed and committed
page statuses. 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 maintains a GtkAssistantPage
object for each added child, which holds additional per-child properties. You
obtain the GtkAssistantPage for a child with
[method@Gtk.Assistant.get_page]. # GtkAssistant as GtkBuildable The
GtkAssistant implementation of the GtkBuildable interface exposes the
@action_area as internal children with the name “action_area”. To add pages
to an assistant in GtkBuilder, simply add it as a child to the
GtkAssistant object. If you need to set per-object properties, create a
GtkAssistantPage object explicitly, and set the child widget as a property
on it. # CSS nodes GtkAssistant has a single CSS node with the name window
and style class .assistant.
Assistant ()
Creates a new
GtkAssistant.
toNativeHandle (Source)
Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from
fn.call(...), another generated wrapper exposinghandle(), or null. Returns null when the argument carries no pointer.
Source is the raw handle, raw buffer, wrapper, or null.A raw pointer carrier or null when no pointer is present.getLib ()
Returns the opened native library for this generated wrapper.
The opened native library.handle ()
Returns the wrapped NativeHandle.
The wrapped NativeHandle.isNull ()
Returns true when the wrapped handle is null.
A bool.describe ()
Returns a small string for debugging generated wrappers.
A string.asWindow ()
Wraps this handle as
Window.
A Window object.asAccessible ()
Wraps this handle as
Accessible.
A Accessible object.asBuildable ()
Wraps this handle as
Buildable.
A Buildable object.asConstraintTarget ()
Wraps this handle as
ConstraintTarget.
A ConstraintTarget object.asNative ()
Wraps this handle as
Native.
A Native object.asRoot ()
Wraps this handle as
Root.
A Root object.asShortcutManager ()
Wraps this handle as
ShortcutManager.
A ShortcutManager object.connectSignal (string Name, CallbackObj)
Connects one generated callback wrapper to a named signal.
Name is the signal name.CallbackObj is the generated callback wrapper to connect.The connected handler id.disconnectSignalHandler (int HandlerId)
Disconnects one retained signal handler id.
HandlerId is the signal handler id to disconnect.None.setOnApply (callback Fn, UserData = null)
Emitted when the apply button is clicked. The default behavior of the
GtkAssistantis 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 %GTK_ASSISTANT_PAGE_PROGRESS after the confirmation page and handle this operation within the [signal@Gtk.Assistant::prepare] signal of the progress page.
Fn is the Aussom callback.Fn is called with (Assistant Self).UserData is retained and passed through to the generated callback wrapper when provided.The connected handler id.setOnCancel (callback Fn, UserData = null)
Emitted when then the cancel button is clicked.
Fn is the Aussom callback.Fn is called with (Assistant Self).UserData is retained and passed through to the generated callback wrapper when provided.The connected handler id.setOnClose (callback Fn, UserData = null)
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 %GTK_ASSISTANT_PAGE_CONFIRM) is clicked.
Fn is the Aussom callback.Fn is called with (Assistant Self).UserData is retained and passed through to the generated callback wrapper when provided.The connected handler id.setOnEscape (callback Fn, UserData = null)
The action signal for the Escape binding.
Fn is the Aussom callback.Fn is called with (Assistant Self).UserData is retained and passed through to the generated callback wrapper when provided.The connected handler id.setOnPrepare (callback Fn, UserData = null)
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.
Fn is the Aussom callback.Fn is called with (Assistant Self, Widget Page).UserData is retained and passed through to the generated callback wrapper when provided.The connected handler id.add_action_widget (object child)
Adds a widget to the action area of a
GtkAssistant.
child is a GtkWidget.None.append_page (object page)
Appends a page to the @assistant.
page is a GtkWidget.commit ()
Erases the visited page history. GTK will then hide the back button 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.
None.get_current_page ()
Returns the page number of the current page.
get_n_pages ()
Returns the number of pages in the @assistant
get_nth_page (int page_num)
Returns the child widget contained in page number @page_num.
page_num is the index of a page in the @assistant, or -1 to get the last page.get_page (object child)
Returns the
GtkAssistantPageobject for @child.
child is a child of @assistant.get_page_complete (object page)
Gets whether @page is complete.
page is a page of @assistant.get_page_title (object page)
Gets the title for @page.
page is a page of @assistant.get_page_type (object page)
Gets the page type of @page.
page is a page of @assistant.get_pages ()
Gets a list model of the assistant pages.
insert_page (object page, int position)
Inserts a page in the @assistant at a given position.
page is a GtkWidget.position is the index (starting at 0) at which to insert the page, or -1 to append the page to the @assistant.next_page ()
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.
None.prepend_page (object page)
Prepends a page to the @assistant.
page is a GtkWidget.previous_page ()
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.
None.remove_action_widget (object child)
Removes a widget from the action area of a
GtkAssistant.
child is a GtkWidget.None.remove_page (int page_num)
Removes the @page_num’s page from @assistant.
page_num is the index of a page in the @assistant, or -1 to remove the last page.None.set_current_page (int page_num)
Switches the page to @page_num. Note that this will only be necessary in custom buttons, as the @assistant flow can be set with gtk_assistant_set_forward_page_func().
page_num is index of the page to switch to, starting from 0. If negative, the last page will be used. If greater than the number of pages in the @assistant, nothing will be done..None.set_page_complete (object page, bool complete)
Sets whether @page contents are complete. This will make @assistant update the buttons state to be able to continue the task.
page is a page of @assistant.complete is the completeness status of the page.None.set_page_title (object page, string title)
Sets a title for @page. The title is displayed in the header area of the assistant when @page is the current page.
page is a page of @assistant.title is the new title for @page.None.set_page_type (object page, string type)
Sets the page type for @page. The page type determines the page behavior in the @assistant.
page is a page of @assistant.type is the new type for @page.None.update_buttons_state ()
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.
None.pages ()
Returns
get_pagesas an Aussom list of wrapper objects. This companion method materializes the full collection up front; useget_pages()when lazy or change-notify access is required.
An Aussom list of elements.[842:7] extends: object
Generated low-level callback wrapper for GIR callback prepare.
AssistantPrepareCallback (callback Fn, UserData = null)
Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking
Fn.
Fn is the Aussom callback implementation.UserData is retained and passed through to Fn on each invocation when provided.trampoline (nativeSelf, page, nativeUserData)
Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.
callback ()
Returns the wrapped NativeCallback.
handle ()
Returns the callback as a NativeHandle.
close ()
Closes the underlying NativeCallback.
isClosed ()
Returns true when the callback has been closed.
[913:14] static extends: object
Generated metadata helpers for Assistant class surfaces.
properties ()
Returns property metadata for
Assistant.
A list.signals ()
Returns signal metadata for
Assistant.
A list.[702:7] extends: object
Generated low-level callback wrapper for GIR callback close.
AssistantCloseCallback (callback Fn, UserData = null)
Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking
Fn.
Fn is the Aussom callback implementation.UserData is retained and passed through to Fn on each invocation when provided.trampoline (nativeSelf, nativeUserData)
Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.
callback ()
Returns the wrapped NativeCallback.
handle ()
Returns the callback as a NativeHandle.
close ()
Closes the underlying NativeCallback.
isClosed ()
Returns true when the callback has been closed.
[632:7] extends: object
Generated low-level callback wrapper for GIR callback cancel.
AssistantCancelCallback (callback Fn, UserData = null)
Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking
Fn.
Fn is the Aussom callback implementation.UserData is retained and passed through to Fn on each invocation when provided.trampoline (nativeSelf, nativeUserData)
Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.
callback ()
Returns the wrapped NativeCallback.
handle ()
Returns the callback as a NativeHandle.
close ()
Closes the underlying NativeCallback.
isClosed ()
Returns true when the callback has been closed.
[562:7] extends: object
Generated low-level callback wrapper for GIR callback apply.
AssistantApplyCallback (callback Fn, UserData = null)
Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking
Fn.
Fn is the Aussom callback implementation.UserData is retained and passed through to Fn on each invocation when provided.trampoline (nativeSelf, nativeUserData)
Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.
callback ()
Returns the wrapped NativeCallback.
handle ()
Returns the callback as a NativeHandle.
close ()
Closes the underlying NativeCallback.
isClosed ()
Returns true when the callback has been closed.
[772:7] extends: object
Generated low-level callback wrapper for GIR callback escape.
AssistantEscapeCallback (callback Fn, UserData = null)
Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking
Fn.
Fn is the Aussom callback implementation.UserData is retained and passed through to Fn on each invocation when provided.trampoline (nativeSelf, nativeUserData)
Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.
callback ()
Returns the wrapped NativeCallback.
handle ()
Returns the callback as a NativeHandle.
close ()
Closes the underlying NativeCallback.
isClosed ()
Returns true when the callback has been closed.