Class: Gtk::HeaderBar

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

Instance Method Summary collapse

Instance Method Details

#custom_titleGtk::Widget

Returns custom-title.

Returns:

#custom_title=(custom_title) ⇒ Gtk::Widget

Parameters:

Returns:

#decoration_layoutString

The decoration layout for buttons. If this property is not set, the Gtk::Settings:gtk-decoration-layout setting is used.

See gtk_header_bar_set_decoration_layout() for information about the format of this string.

Returns:

  • (String)

    decoration-layout

#decoration_layout=(decoration_layout) ⇒ String

The decoration layout for buttons. If this property is not set, the Gtk::Settings:gtk-decoration-layout setting is used.

See gtk_header_bar_set_decoration_layout() for information about the format of this string.

Parameters:

  • decoration_layout (String)

Returns:

  • (String)

    decoration-layout

  • (String)

    decoration-layout

#decoration_layout_set=(decoration_layout_set) ⇒ TrueClass

Set to true if Gtk::HeaderBar:decoration-layout is set.

Parameters:

  • decoration_layout_set (TrueClass)

Returns:

  • (TrueClass)

    decoration-layout-set

  • (TrueClass)

    decoration-layout-set

#decoration_layout_set?TrueClass

Set to true if Gtk::HeaderBar:decoration-layout is set.

Returns:

  • (TrueClass)

    decoration-layout-set

#has_subtitleTrueClass

Retrieves whether the header bar reserves space for a subtitle, regardless if one is currently set or not.

Returns:

  • (TrueClass)

    true if the header bar reserves space for a subtitle

#has_subtitle=(has_subtitle) ⇒ TrueClass

If true, reserve space for a subtitle, even if none is currently set.

Parameters:

  • has_subtitle (TrueClass)

Returns:

  • (TrueClass)

    has-subtitle

  • (TrueClass)

    has-subtitle

#has_subtitle?TrueClass

If true, reserve space for a subtitle, even if none is currently set.

Returns:

  • (TrueClass)

    has-subtitle

#newGtk::Widget

Creates a new Gtk::HeaderBar widget.

Returns:

#pack_end(child) ⇒ nil

Adds child to bar, packed with reference to the end of the bar.

Parameters:

  • child (Gtk::Widget)

    the Gtk::Widget to be added to bar

Returns:

  • (nil)

#pack_start(child) ⇒ nil

Adds child to bar, packed with reference to the start of the bar.

Parameters:

  • child (Gtk::Widget)

    the Gtk::Widget to be added to bar

Returns:

  • (nil)

#show_close_buttonTrueClass

Returns whether this header bar shows the standard window decorations.

Returns:

  • (TrueClass)

    true if the decorations are shown

#show_close_button=(show_close_button) ⇒ TrueClass

Whether to show window decorations.

Which buttons are actually shown and where is determined by the Gtk::HeaderBar:decoration-layout property, and by the state of the window (e.g. a close button will not be shown if the window can’t be closed).

Parameters:

  • show_close_button (TrueClass)

Returns:

  • (TrueClass)

    show-close-button

  • (TrueClass)

    show-close-button

#show_close_button?TrueClass

Whether to show window decorations.

Which buttons are actually shown and where is determined by the Gtk::HeaderBar:decoration-layout property, and by the state of the window (e.g. a close button will not be shown if the window can’t be closed).

Returns:

  • (TrueClass)

    show-close-button

#spacingInteger

Returns spacing.

Returns:

  • (Integer)

    spacing

#spacing=(spacing) ⇒ Integer

Parameters:

  • spacing (Integer)

Returns:

  • (Integer)

    spacing

  • (Integer)

    spacing

#subtitleString

Returns subtitle.

Returns:

  • (String)

    subtitle

#subtitle=(subtitle) ⇒ String

Parameters:

  • subtitle (String)

Returns:

  • (String)

    subtitle

  • (String)

    subtitle

#titleString

Returns title.

Returns:

  • (String)

    title

#title=(title) ⇒ String

Parameters:

  • title (String)

Returns:

  • (String)

    title

  • (String)

    title