Class: Handy::ViewSwitcherTitle

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

Instance Method Summary collapse

Constructor Details

#initializeHandy::ViewSwitcherTitle

Creates a new HdyViewSwitcherTitle.

Instance Method Details

#policyHandy::ViewSwitcherPolicy

The policy used to determine which mode to use.

Returns:

#policy=(policy) ⇒ Handy::ViewSwitcherPolicy

The policy used to determine which mode to use.

Parameters:

Returns:

#stackGtk::Stack

The [classGtk.Stack] the [classViewSwitcher] controls.

Returns:

  • (Gtk::Stack)

    stack

#stack=(stack) ⇒ Gtk::Stack

The [classGtk.Stack] the [classViewSwitcher] controls.

Parameters:

  • stack (Gtk::Stack)

Returns:

  • (Gtk::Stack)

    stack

  • (Gtk::Stack)

    stack

#subtitleString

The subtitle of the [classViewSwitcher].

The subtitle should give a user additional details.

Returns:

  • (String)

    subtitle

#subtitle=(subtitle) ⇒ String

The subtitle of the [classViewSwitcher].

The subtitle should give a user additional details.

Parameters:

  • subtitle (String)

Returns:

  • (String)

    subtitle

  • (String)

    subtitle

#titleString

The title of the [classViewSwitcher].

The title should give a user additional details. A good title should not include the application name.

Returns:

  • (String)

    title

#title=(title) ⇒ String

The title of the [classViewSwitcher].

The title should give a user additional details. A good title should not include the application name.

Parameters:

  • title (String)

Returns:

  • (String)

    title

  • (String)

    title

#title_visibleBoolean

Gets whether the title of self is currently visible.

Returns:

  • (Boolean)

    whether the title of self is currently visible

#title_visible=(title_visible) ⇒ Boolean

Whether the bar should be revealed or hidden.

Parameters:

  • title_visible (Boolean)

Returns:

  • (Boolean)

    title-visible

  • (Boolean)

    title-visible

#title_visible?Boolean

Whether the bar should be revealed or hidden.

Returns:

  • (Boolean)

    title-visible

#view_switcher_enabledBoolean

Gets whether self's view switcher is enabled.

Returns:

  • (Boolean)

    whether the view switcher is enabled

#view_switcher_enabled=(view_switcher_enabled) ⇒ Boolean

Whether the bar should be revealed or hidden.

If it is disabled, the title will be displayed instead. This allows to programmatically hide the view switcher even if it fits in the available space.

This can be used e.g. to ensure the view switcher is hidden below a certain window width, or any other constraint you find suitable.

Parameters:

  • view_switcher_enabled (Boolean)

Returns:

  • (Boolean)

    view-switcher-enabled

  • (Boolean)

    view-switcher-enabled

#view_switcher_enabled?Boolean

Whether the bar should be revealed or hidden.

If it is disabled, the title will be displayed instead. This allows to programmatically hide the view switcher even if it fits in the available space.

This can be used e.g. to ensure the view switcher is hidden below a certain window width, or any other constraint you find suitable.

Returns:

  • (Boolean)

    view-switcher-enabled