Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: StackPageMeta

[342:14] static extends: object

Generated metadata helpers for StackPage class surfaces.

Methods

  • properties ()

    Returns property metadata for StackPage.

    • @r A list.

class: StackPage

[12:7] extends: object

An auxiliary class used by GtkStack.

Members

  • handleObj
  • lib
  • retainedCallbacks
  • signalHandlerNames
  • signalSetterHandlers

Methods

  • StackPage (Handle = null)

    Creates a new StackPage by wrapping a native handle or another wrapper.

    • @p 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 exposing handle(), or null. Returns null when the argument carries no pointer.

    • @p Source is the raw handle, raw buffer, wrapper, or null.
    • @r A raw pointer carrier or null when no pointer is present.
  • getLib ()

    Returns the opened native library for this generated wrapper.

    • @r The opened native library.
  • handle ()

    Returns the wrapped NativeHandle.

    • @r The wrapped NativeHandle.
  • isNull ()

    Returns true when the wrapped handle is null.

    • @r A bool.
  • describe ()

    Returns a small string for debugging generated wrappers.

    • @r A string.
  • asObject ()

    Wraps this handle as Object.

    • @r A Object object.
  • asAccessible ()

    Wraps this handle as Accessible.

    • @r 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.

    • @p Value is the new property value.
    • @r None.
  • setName (string Value)

    The name of the child page.

    • @p Value is the new property value.
    • @r 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.

    • @p Value is the new property value.
    • @r None.
  • setTitle (string Value)

    The title of the child page.

    • @p Value is the new property value.
    • @r None.
  • setUseunderline (bool Value)

    If set, an underline in the title indicates a mnemonic.

    • @p Value is the new property value.
    • @r None.
  • setVisible (bool Value)

    Whether this page is visible.

    • @p Value is the new property value.
    • @r 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.

    • @p setting is the new value to set.
    • @r None.
  • set_name (string setting)

    Sets the name of the page.

    • @p setting is the new value to set.
    • @r None.
  • set_needs_attention (bool setting)

    Sets whether the page is marked as “needs attention”.

    • @p setting is the new value to set.
    • @r None.
  • set_title (string setting)

    Sets the page title.

    • @p setting is the new value to set.
    • @r None.
  • set_use_underline (bool setting)

    Sets whether underlines in the page title indicate mnemonics.

    • @p setting is the new value to set.
    • @r None.
  • set_visible (bool visible)

    Sets whether @page is visible in its GtkStack.

    • @p visible is The new property value.
    • @r None.