Class: Handy::ViewSwitcher

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

Instance Method Summary collapse

Constructor Details

#initialize ⇒ Gtk::Widget

Creates a new HdyViewSwitcher.

Instance Method Details

#narrow_ellipsize ⇒ Pango::EllipsizeMode

The preferred place to ellipsize the string.

If the narrow mode label does not have enough room to display the entire
string, specified as a [enumPango.EllipsizeMode].

Note that setting this property to a value other than
PANGO_ELLIPSIZE_NONE has the side-effect that the label requests only
enough space to display the ellipsis.

Returns:

  • (Pango::EllipsizeMode) —

    narrow-ellipsize

#narrow_ellipsize=(narrow_ellipsize) ⇒ Pango::EllipsizeMode

The preferred place to ellipsize the string.

If the narrow mode label does not have enough room to display the entire
string, specified as a [enumPango.EllipsizeMode].

Note that setting this property to a value other than
PANGO_ELLIPSIZE_NONE has the side-effect that the label requests only
enough space to display the ellipsis.

Parameters:

  • narrow_ellipsize (Pango::EllipsizeMode)

Returns:

  • (Pango::EllipsizeMode) —

    narrow-ellipsize

  • (Pango::EllipsizeMode) —

    narrow-ellipsize

#policy ⇒ Handy::ViewSwitcherPolicy

The policy to determine which mode to use.

Returns:

#policy=(policy) ⇒ Handy::ViewSwitcherPolicy

The policy to determine which mode to use.

Parameters:

Returns:

#stack ⇒ Gtk::Stack

The [classGtk.Stack] the view switcher controls.

Returns:

  • (Gtk::Stack) —

    stack

#stack=(stack) ⇒ Gtk::Stack

The [classGtk.Stack] the view switcher controls.

Parameters:

  • stack (Gtk::Stack)

Returns:

  • (Gtk::Stack) —

    stack

  • (Gtk::Stack) —

    stack