Class StackPage

All Implemented Interfaces:
Accessible, Proxy

@Generated("org.javagi.JavaGI") public class StackPage extends GObject implements Accessible
An auxiliary class used by GtkStack.
  • Constructor Details

    • StackPage

      public StackPage(MemorySegment address)
      Create a StackPage instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
    • StackPage

      public StackPage()
      Create a new StackPage.
  • Method Details

    • getType

      public static @Nullable Type getType()
      Get the GType of the StackPage class.
      Returns:
      the GType
    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      The memory layout of the native struct.
      Returns:
      the memory layout
    • asParent

      protected StackPage asParent()
      Return this instance as if it were its parent type. Comparable to the Java super keyword, but ensures the parent typeclass is also used in native code.
      Overrides:
      asParent in class GObject
      Returns:
      the instance as if it were its parent type
    • getChild

      public Widget getChild()
      Returns the stack child to which this StackPage belongs.
      Returns:
      the child to which this StackPage belongs
    • getIconName

      public @Nullable String getIconName()
      Returns the icon name of the page.
      Returns:
      The value of the Gtk.StackPage:icon-name property
    • getName

      public @Nullable String getName()
      Returns the name of the page.
      Returns:
      The value of the Gtk.StackPage:name property
    • getNeedsAttention

      public boolean getNeedsAttention()
      Returns whether the page is marked as “needs attention”.
      Returns:
      The value of the Gtk.StackPage:needs-attention property.
    • getTitle

      public @Nullable String getTitle()
      Gets the page title.
      Returns:
      The value of the Gtk.StackPage:title property
    • getUseUnderline

      public boolean getUseUnderline()
      Gets whether underlines in the page title indicate mnemonics.
      Returns:
      The value of the Gtk.StackPage:use-underline property
    • getVisible

      public boolean getVisible()

      Returns whether page is visible in its GtkStack.

      This is independent from the Gtk.Widget:visible property of its widget.

      Returns:
      true if page is visible
    • setIconName

      public void setIconName(String setting)
      Sets the icon name of the page.
      Parameters:
      setting - the new value to set
    • setName

      public void setName(String setting)
      Sets the name of the page.
      Parameters:
      setting - the new value to set
    • setNeedsAttention

      public void setNeedsAttention(boolean setting)
      Sets whether the page is marked as “needs attention”.
      Parameters:
      setting - the new value to set
    • setTitle

      public void setTitle(String setting)
      Sets the page title.
      Parameters:
      setting - the new value to set
    • setUseUnderline

      public void setUseUnderline(boolean setting)
      Sets whether underlines in the page title indicate mnemonics.
      Parameters:
      setting - the new value to set
    • setVisible

      public void setVisible(boolean visible)
      Sets whether page is visible in its GtkStack.
      Parameters:
      visible - The new property value
    • builder

      public static StackPage.Builder<? extends StackPage.Builder> builder()
      A StackPage.Builder object constructs a StackPage with the specified properties. Use the various set...() methods to set properties, and finish construction with StackPage.Builder.build().
      Returns:
      the builder object