Class: Gtk::StackPage

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Overview

GtkStackPage is an auxiliary class used by GtkStack.

Instance Method Summary collapse

Instance Method Details

#childGtk::Widget

The child that this page is for.

Returns:

#child=(child) ⇒ Gtk::Widget

The child that this page is for.

Parameters:

Returns:

#icon_nameString

The icon name of the child page.

Returns:

  • (String)

    icon-name

#icon_name=(icon_name) ⇒ String

The icon name of the child page.

Parameters:

  • icon_name (String)

Returns:

  • (String)

    icon-name

  • (String)

    icon-name

#nameString

The name of the child page.

Returns:

  • (String)

    name

#name=(name) ⇒ String

The name of the child page.

Parameters:

  • name (String)

Returns:

  • (String)

    name

  • (String)

    name

#needs_attentionBoolean

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

Returns:

  • (Boolean)

    The value of the [propertyGtk.StackPage:needs-attention] property.

#needs_attention=(needs_attention) ⇒ Boolean

Whether the page requires the user attention.

This is used by the [classGtk.StackSwitcher] to change the appearance of the corresponding button when a page needs attention and it is not the current one.

Parameters:

  • needs_attention (Boolean)

Returns:

  • (Boolean)

    needs-attention

  • (Boolean)

    needs-attention

#needs_attention?Boolean

Whether the page requires the user attention.

This is used by the [classGtk.StackSwitcher] to change the appearance of the corresponding button when a page needs attention and it is not the current one.

Returns:

  • (Boolean)

    needs-attention

#titleString

The title of the child page.

Returns:

  • (String)

    title

#title=(title) ⇒ String

The title of the child page.

Parameters:

  • title (String)

Returns:

  • (String)

    title

  • (String)

    title

#use_underlineBoolean

Gets whether underlines in the page title indicate mnemonics.

Returns:

  • (Boolean)

    The value of the [propertyGtk.StackPage:use-underline] property

#use_underline=(use_underline) ⇒ Boolean

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

Parameters:

  • use_underline (Boolean)

Returns:

  • (Boolean)

    use-underline

  • (Boolean)

    use-underline

#use_underline?Boolean

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

Returns:

  • (Boolean)

    use-underline

#visibleBoolean

Returns whether page is visible in its GtkStack.

This is independent from the [propertyGtk.Widget:visible] property of its widget.

Returns:

  • (Boolean)

    true if page is visible

#visible=(visible) ⇒ Boolean

Whether this page is visible.

Parameters:

  • visible (Boolean)

Returns:

  • (Boolean)

    visible

  • (Boolean)

    visible

#visible?Boolean

Whether this page is visible.

Returns:

  • (Boolean)

    visible