Class ViewStackPage

All Implemented Interfaces:
PointerInterface

public class ViewStackPage extends Object
  • Constructor Details

  • Method Details

    • getClassHandler

      public static ClassHandler getClassHandler()
    • getBadgeNumber

      public int getBadgeNumber()
      Gets the badge number for this page.
      Returns:
      the badge number for this page
    • getChild

      public Widget getChild()
      Gets the stack child to which @self belongs.
      Returns:
      the child to which @self belongs
    • getIconName

      public Str getIconName()
      Gets the icon name of the page.
      Returns:
      the icon name of the page
    • getName

      public Str getName()
      Gets the name of the page.
      Returns:
      the name of the page
    • getNeedsAttention

      public boolean getNeedsAttention()
      Gets whether the page requires the user attention.
      Returns:
      whether the page needs attention
    • getTitle

      public Str getTitle()
      Gets the page title.
      Returns:
      the page title
    • getUseUnderline

      public boolean getUseUnderline()
      Gets whether underlines in the page title indicate mnemonics.
      Returns:
      whether underlines in the page title indicate mnemonics
    • getVisible

      public boolean getVisible()
      Gets whether @self is visible in its `AdwViewStack`.

      This is independent from the [property@Gtk.Widget:visible]
      property of its widget.
      Returns:
      whether @self is visible
    • setBadgeNumber

      public void setBadgeNumber(int badge_number)
      Sets the badge number for this page.

      [class@ViewSwitcher] can display it as a badge next to the page icon. It is
      commonly used to display a number of unread items within the page.

      It can be used together with [property@ViewStack{age}:needs-attention].
      Parameters:
      badge_number - the new value to set
    • setIconName

      public void setIconName(@Nullable Str icon_name)
      Sets the icon name of the page.
      Parameters:
      icon_name - the icon name
    • setIconName

      public void setIconName(String icon_name)
      Sets the icon name of the page.
      Parameters:
      icon_name - the icon name
    • setName

      public void setName(@Nullable Str name)
      Sets the name of the page.
      Parameters:
      name - the page name
    • setName

      public void setName(String name)
      Sets the name of the page.
      Parameters:
      name - the page name
    • setNeedsAttention

      public void setNeedsAttention(boolean needs_attention)
      Sets whether the page requires the user attention.

      [class@ViewSwitcher] will display it as a dot next to the page icon.
      Parameters:
      needs_attention - the new value to set
    • setTitle

      public void setTitle(@Nullable Str title)
      Sets the page title.
      Parameters:
      title - the page title
    • setTitle

      public void setTitle(String title)
      Sets the page title.
      Parameters:
      title - the page title
    • setUseUnderline

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

      public void setVisible(boolean visible)
      Sets whether @page is visible in its `AdwViewStack`.

      This is independent from the [property@Gtk.Widget:visible] property of
      [property@ViewStackPage:child].
      Parameters:
      visible - whether @self is visible
    • getTypeID

      public static long getTypeID()
    • getParentTypeID

      public static long getParentTypeID()
    • getTypeSize

      public static TypeSystem.TypeSize getTypeSize()
    • getParentTypeSize

      public static TypeSystem.TypeSize getParentTypeSize()
    • getInstanceSize

      public static int getInstanceSize()