Class: Handy::HeaderBar
- Inherits:
-
Gtk::Container
- Object
- Gtk::Container
- Handy::HeaderBar
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#centering_policy ⇒ Handy::CenteringPolicy
The policy for aligning the center widget.
-
#centering_policy=(centering_policy) ⇒ Handy::CenteringPolicy
The policy for aligning the center widget.
-
#custom_title ⇒ Gtk::Widget
Custom title widget to display.
-
#custom_title=(custom_title) ⇒ Gtk::Widget
Custom title widget to display.
-
#decoration_layout ⇒ String
The decoration layout for buttons.
-
#decoration_layout=(decoration_layout) ⇒ String
The decoration layout for buttons.
-
#decoration_layout_set=(decoration_layout_set) ⇒ Boolean
Whether [propertyHeaderBar:decoration-layout] is set.
-
#decoration_layout_set? ⇒ Boolean
Whether [propertyHeaderBar:decoration-layout] is set.
-
#has_subtitle ⇒ Boolean
Gets whether space is reserved for a subtitle, regardless if one is currently set or not.
-
#has_subtitle=(has_subtitle) ⇒ Boolean
Whether to reserve space for a subtitle, even if none is currently set.
-
#has_subtitle? ⇒ Boolean
Whether to reserve space for a subtitle, even if none is currently set.
-
#initialize ⇒ Gtk::Widget
constructor
Creates a new
HdyHeaderBar. -
#interpolate_size ⇒ Boolean
Gets whether self should interpolate its size on visible child change.
-
#interpolate_size=(interpolate_size) ⇒ Boolean
Whether the size should smoothly change when changing between children.
-
#interpolate_size? ⇒ Boolean
Whether the size should smoothly change when changing between children.
-
#pack_end(child) ⇒ nil
Adds child to self, packed with reference to the end of the self.
-
#pack_start(child) ⇒ nil
Adds child to self, packed with reference to the start of the self.
-
#show_close_button ⇒ Boolean
Gets whether this header bar shows the standard window decorations.
-
#show_close_button=(show_close_button) ⇒ Boolean
Whether to show window decorations.
-
#show_close_button? ⇒ Boolean
Whether to show window decorations.
-
#spacing ⇒ Integer
The amount of space between children.
-
#spacing=(spacing) ⇒ Integer
The amount of space between children.
-
#subtitle ⇒ String
The subtitle to display.
-
#subtitle=(subtitle) ⇒ String
The subtitle to display.
-
#title ⇒ String
The title to display.
-
#title=(title) ⇒ String
The title to display.
-
#transition_duration ⇒ Integer
The transition duration, in milliseconds.
-
#transition_duration=(transition_duration) ⇒ Integer
The transition duration, in milliseconds.
-
#transition_running ⇒ Boolean
Gets whether the self is currently in a transition from one page to another.
-
#transition_running=(transition_running) ⇒ Boolean
Whether or not the transition is currently running.
-
#transition_running? ⇒ Boolean
Whether or not the transition is currently running.
Constructor Details
#initialize ⇒ Gtk::Widget
Creates a new HdyHeaderBar.
Instance Method Details
#centering_policy ⇒ Handy::CenteringPolicy
The policy for aligning the center widget.
#centering_policy=(centering_policy) ⇒ Handy::CenteringPolicy
The policy for aligning the center widget.
#custom_title ⇒ Gtk::Widget
Custom title widget to display.
#custom_title=(custom_title) ⇒ Gtk::Widget
Custom title widget to display.
#decoration_layout ⇒ String
The decoration layout for buttons.
If this property is not set, the [propertyGtk.Settings:gtk-decoration-layout] setting is used.
There can be valid reasons for overriding the setting, such as a header bar design that does not allow for buttons to take room on the right, or only offers room for a single close button. Split header bars are another example for overriding the setting.
The format of the string is button names, separated by commas. A colon separates the buttons that should appear on the start from those on the end. Recognized button names are minimize, maximize, close, icon (the window icon) and menu (a menu button for the fallback app menu).
For example, “menu:minimize,maximize,close” specifies a menu on the left, and minimize, maximize and close buttons on the right.
#decoration_layout=(decoration_layout) ⇒ String
The decoration layout for buttons.
If this property is not set, the [propertyGtk.Settings:gtk-decoration-layout] setting is used.
There can be valid reasons for overriding the setting, such as a header bar design that does not allow for buttons to take room on the right, or only offers room for a single close button. Split header bars are another example for overriding the setting.
The format of the string is button names, separated by commas. A colon separates the buttons that should appear on the start from those on the end. Recognized button names are minimize, maximize, close, icon (the window icon) and menu (a menu button for the fallback app menu).
For example, “menu:minimize,maximize,close” specifies a menu on the left, and minimize, maximize and close buttons on the right.
#decoration_layout_set=(decoration_layout_set) ⇒ Boolean
Whether [propertyHeaderBar:decoration-layout] is set.
#decoration_layout_set? ⇒ Boolean
Whether [propertyHeaderBar:decoration-layout] is set.
#has_subtitle ⇒ Boolean
Gets whether space is reserved for a subtitle, regardless if one is currently set or not.
#has_subtitle=(has_subtitle) ⇒ Boolean
Whether to reserve space for a subtitle, even if none is currently set.
#has_subtitle? ⇒ Boolean
Whether to reserve space for a subtitle, even if none is currently set.
#interpolate_size ⇒ Boolean
Gets whether self should interpolate its size on visible child change.
#interpolate_size=(interpolate_size) ⇒ Boolean
Whether the size should smoothly change when changing between children.
If TRUE, the header bar will interpolate its size between the one of the
previous visible child and the one of the new visible child, according to
the set transition duration and the orientation, e.g. if the orientation is
horizontal, it will interpolate the its height.
#interpolate_size? ⇒ Boolean
Whether the size should smoothly change when changing between children.
If TRUE, the header bar will interpolate its size between the one of the
previous visible child and the one of the new visible child, according to
the set transition duration and the orientation, e.g. if the orientation is
horizontal, it will interpolate the its height.
#pack_end(child) ⇒ nil
Adds child to self, packed with reference to the end of the self.
#pack_start(child) ⇒ nil
Adds child to self, packed with reference to the start of the self.
#show_close_button ⇒ Boolean
Gets whether this header bar shows the standard window decorations.
#show_close_button=(show_close_button) ⇒ Boolean
Whether to show window decorations.
Which buttons are actually shown and where is determined by the [propertyHeaderBar: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).
#show_close_button? ⇒ Boolean
Whether to show window decorations.
Which buttons are actually shown and where is determined by the [propertyHeaderBar: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).
#spacing ⇒ Integer
The amount of space between children.
#spacing=(spacing) ⇒ Integer
The amount of space between children.
#subtitle ⇒ String
The subtitle to display.
#subtitle=(subtitle) ⇒ String
The subtitle to display.
#title ⇒ String
The title to display.
#title=(title) ⇒ String
The title to display.
#transition_duration ⇒ Integer
The transition duration, in milliseconds.
#transition_duration=(transition_duration) ⇒ Integer
The transition duration, in milliseconds.
#transition_running ⇒ Boolean
Gets whether the self is currently in a transition from one page to another.
#transition_running=(transition_running) ⇒ Boolean
Whether or not the transition is currently running.
#transition_running? ⇒ Boolean
Whether or not the transition is currently running.