Basics
Guides
API Reference
Basics
Guides
API Reference
[342:14] static extends: object
Generated metadata helpers for StackPage class surfaces.
properties ()
Returns property metadata for
StackPage.
A list.[12:7] extends: object
An auxiliary class used by GtkStack.
StackPage (Handle = null)
Creates a new
StackPageby wrapping a native handle or another wrapper.
Handle is the native handle or another wrapper whose handle to adopt.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.asObject ()
Wraps this handle as
Object.
A Object object.asAccessible ()
Wraps this handle as
Accessible.
A Accessible object.getProperty (string Name)
Reads one generated property by name.
setProperty (string Name, Value)
Writes one generated property by name.
setIconname (string Value)
The icon name of the child page.
Value is the new property value.None.setName (string Value)
The name of the child page.
Value is the new property value.None.setNeedsattention (bool Value)
Whether the page requires the user attention. This is used by the [class@Gtk.StackSwitcher] to change the appearance of the corresponding button when a page needs attention and it is not the current one.
Value is the new property value.None.setTitle (string Value)
The title of the child page.
Value is the new property value.None.setUseunderline (bool Value)
If set, an underline in the title indicates a mnemonic.
Value is the new property value.None.setVisible (bool Value)
Whether this page is visible.
Value is the new property value.None.get_child ()
Returns the stack child to which @self belongs.
get_icon_name ()
Returns the icon name of the page.
get_name ()
Returns the name of the page.
get_needs_attention ()
Returns whether the page is marked as “needs attention”.
get_title ()
Gets the page title.
get_use_underline ()
Gets whether underlines in the page title indicate mnemonics.
get_visible ()
Returns whether @page is visible in its
GtkStack. This is independent from the [property@Gtk.Widget:visible] property of its widget.
set_icon_name (string setting)
Sets the icon name of the page.
setting is the new value to set.None.set_name (string setting)
Sets the name of the page.
setting is the new value to set.None.set_needs_attention (bool setting)
Sets whether the page is marked as “needs attention”.
setting is the new value to set.None.set_title (string setting)
Sets the page title.
setting is the new value to set.None.set_use_underline (bool setting)
Sets whether underlines in the page title indicate mnemonics.
setting is the new value to set.None.set_visible (bool visible)
Sets whether @page is visible in its
GtkStack.
visible is The new property value.None.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.