Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: StackSidebarMeta

[177:14] static extends: object

Generated metadata helpers for StackSidebar class surfaces.

Methods

  • properties ()

    Returns property metadata for StackSidebar.

    • @r A list.

class: StackSidebar

[21:7] extends: object

Uses a sidebar to switch between GtkStack pages. An
example GtkStackSidebar In order to use a GtkStackSidebar, you simply use a GtkStack to organize your UI flow, and add the sidebar to your sidebar area. You can use [method@Gtk.StackSidebar.set_stack] to connect the GtkStackSidebar to the GtkStack. # CSS nodes GtkStackSidebar has a single CSS node with name stacksidebar and style class .sidebar. When circumstances require it, GtkStackSidebar adds the .needs-attention style class to the widgets representing the stack pages.

Members

  • handleObj
  • lib
  • retainedCallbacks
  • signalHandlerNames
  • signalSetterHandlers

Methods

  • StackSidebar ()

    Creates a new GtkStackSidebar.

  • 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.
  • asWidget ()

    Wraps this handle as Widget.

    • @r A Widget object.
  • asAccessible ()

    Wraps this handle as Accessible.

    • @r A Accessible object.
  • asBuildable ()

    Wraps this handle as Buildable.

    • @r A Buildable object.
  • asConstraintTarget ()

    Wraps this handle as ConstraintTarget.

    • @r A ConstraintTarget object.
  • getProperty (string Name)

    Reads one generated property by name.

  • setProperty (string Name, Value)

    Writes one generated property by name.

  • setStack (object Value)

    The stack.

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

    Retrieves the stack.

  • set_stack (object stack)

    Set the GtkStack associated with this GtkStackSidebar. The sidebar widget will automatically update according to the order and items within the given GtkStack.

    • @p stack is a GtkStack.
    • @r None.