Class: Handy::TabBar

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

Instance Method Summary collapse

Constructor Details

#initializeHandy::TabBar

Creates a new HdyTabBar widget.

Instance Method Details

#autohideBoolean

Gets whether the tabs automatically hide.

Returns:

  • (Boolean)

    whether the tabs automatically hide

#autohide=(autohide) ⇒ Boolean

Whether tabs automatically hide.

If set to TRUE, the tab bar disappears when the associated [classTabView] has 0 or 1 tab, no pinned tabs, and no tab is being transferred.

See [propertyTabBar:tabs-revealed].

Parameters:

  • autohide (Boolean)

Returns:

  • (Boolean)

    autohide

  • (Boolean)

    autohide

#autohide?Boolean

Whether tabs automatically hide.

If set to TRUE, the tab bar disappears when the associated [classTabView] has 0 or 1 tab, no pinned tabs, and no tab is being transferred.

See [propertyTabBar:tabs-revealed].

Returns:

  • (Boolean)

    autohide

#end_action_widgetGtk::Widget

The widget shown after the tabs.

Returns:

  • (Gtk::Widget)

    end-action-widget

#end_action_widget=(end_action_widget) ⇒ Gtk::Widget

The widget shown after the tabs.

Parameters:

  • end_action_widget (Gtk::Widget)

Returns:

  • (Gtk::Widget)

    end-action-widget

  • (Gtk::Widget)

    end-action-widget

#expand_tabsBoolean

Gets whether tabs should expand.

Returns:

  • (Boolean)

    whether tabs should expand

#expand_tabs=(expand_tabs) ⇒ Boolean

Whether tabs should expand.

If set to TRUE, the tabs will always vary width filling the whole width when possible, otherwise tabs will always have the minimum possible size.

Parameters:

  • expand_tabs (Boolean)

Returns:

  • (Boolean)

    expand-tabs

  • (Boolean)

    expand-tabs

#expand_tabs?Boolean

Whether tabs should expand.

If set to TRUE, the tabs will always vary width filling the whole width when possible, otherwise tabs will always have the minimum possible size.

Returns:

  • (Boolean)

    expand-tabs

#extra_drag_dest_targetsGtk::TargetList

Extra drag destination targets.

Allows to drag arbitrary content onto tabs, for example URLs in a web browser.

If a tab is hovered for a certain period of time while dragging the content, it will be automatically selected.

After content is dropped, the [signalTabBar::extra-drag-data-received] signal can be used to retrieve and process the drag data.

Returns:

  • (Gtk::TargetList)

    extra-drag-dest-targets

#extra_drag_dest_targets=(extra_drag_dest_targets) ⇒ Gtk::TargetList

Extra drag destination targets.

Allows to drag arbitrary content onto tabs, for example URLs in a web browser.

If a tab is hovered for a certain period of time while dragging the content, it will be automatically selected.

After content is dropped, the [signalTabBar::extra-drag-data-received] signal can be used to retrieve and process the drag data.

Parameters:

  • extra_drag_dest_targets (Gtk::TargetList)

Returns:

  • (Gtk::TargetList)

    extra-drag-dest-targets

  • (Gtk::TargetList)

    extra-drag-dest-targets

#invertedBoolean

Gets whether tabs use inverted layout.

Returns:

  • (Boolean)

    whether tabs use inverted layout

#inverted=(inverted) ⇒ Boolean

Whether tabs use inverted layout.

If set to TRUE, non-pinned tabs will have the close button at the beginning and the indicator at the end rather than the opposite.

Parameters:

  • inverted (Boolean)

Returns:

  • (Boolean)

    inverted

  • (Boolean)

    inverted

#inverted?Boolean

Whether tabs use inverted layout.

If set to TRUE, non-pinned tabs will have the close button at the beginning and the indicator at the end rather than the opposite.

Returns:

  • (Boolean)

    inverted

#is_overflowingBoolean

Gets whether self is overflowing.

Returns:

  • (Boolean)

    whether self is overflowing

#is_overflowing=(is_overflowing) ⇒ Boolean

Whether the tab bar is overflowing.

If set to TRUE, all tabs cannot be displayed at once and require scrolling.

Parameters:

  • is_overflowing (Boolean)

Returns:

  • (Boolean)

    is-overflowing

  • (Boolean)

    is-overflowing

#is_overflowing?Boolean

Whether the tab bar is overflowing.

If set to TRUE, all tabs cannot be displayed at once and require scrolling.

Returns:

  • (Boolean)

    is-overflowing

#start_action_widgetGtk::Widget

The widget shown before the tabs.

Returns:

  • (Gtk::Widget)

    start-action-widget

#start_action_widget=(start_action_widget) ⇒ Gtk::Widget

The widget shown before the tabs.

Parameters:

  • start_action_widget (Gtk::Widget)

Returns:

  • (Gtk::Widget)

    start-action-widget

  • (Gtk::Widget)

    start-action-widget

#tabs_revealedBoolean

Gets the value of the [propertyTabBar:tabs-revealed] property.

Returns:

  • (Boolean)

    whether the tabs are current revealed

#tabs_revealed=(tabs_revealed) ⇒ Boolean

Whether tabs are currently revealed.

See [propertyTabBar:autohide].

Parameters:

  • tabs_revealed (Boolean)

Returns:

  • (Boolean)

    tabs-revealed

  • (Boolean)

    tabs-revealed

#tabs_revealed?Boolean

Whether tabs are currently revealed.

See [propertyTabBar:autohide].

Returns:

  • (Boolean)

    tabs-revealed

#viewHandy::TabView

The [classTabView] the tab bar controls.

Returns:

#view=(view) ⇒ Handy::TabView

The [classTabView] the tab bar controls.

Parameters:

Returns: