Trait libhandy::prelude::HdyHeaderBarExt
source · pub trait HdyHeaderBarExt: IsA<HeaderBar> + Sealed + 'static {
Show 37 methods
// Provided methods
fn centering_policy(&self) -> CenteringPolicy { ... }
fn custom_title(&self) -> Option<Widget> { ... }
fn decoration_layout(&self) -> Option<GString> { ... }
fn has_subtitle(&self) -> bool { ... }
fn is_interpolate_size(&self) -> bool { ... }
fn shows_close_button(&self) -> bool { ... }
fn subtitle(&self) -> Option<GString> { ... }
fn title(&self) -> Option<GString> { ... }
fn transition_duration(&self) -> u32 { ... }
fn is_transition_running(&self) -> bool { ... }
fn pack_end(&self, child: &impl IsA<Widget>) { ... }
fn pack_start(&self, child: &impl IsA<Widget>) { ... }
fn set_centering_policy(&self, centering_policy: CenteringPolicy) { ... }
fn set_custom_title(&self, title_widget: Option<&impl IsA<Widget>>) { ... }
fn set_decoration_layout(&self, layout: Option<&str>) { ... }
fn set_has_subtitle(&self, setting: bool) { ... }
fn set_interpolate_size(&self, interpolate_size: bool) { ... }
fn set_show_close_button(&self, setting: bool) { ... }
fn set_subtitle(&self, subtitle: Option<&str>) { ... }
fn set_title(&self, title: Option<&str>) { ... }
fn set_transition_duration(&self, duration: u32) { ... }
fn is_decoration_layout_set(&self) -> bool { ... }
fn set_decoration_layout_set(&self, decoration_layout_set: bool) { ... }
fn spacing(&self) -> i32 { ... }
fn set_spacing(&self, spacing: i32) { ... }
fn connect_centering_policy_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_custom_title_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_decoration_layout_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_decoration_layout_set_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_has_subtitle_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_interpolate_size_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_show_close_button_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_spacing_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_subtitle_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_title_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_transition_duration_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_transition_running_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
}
Expand description
Provided Methods§
sourcefn centering_policy(&self) -> CenteringPolicy
fn centering_policy(&self) -> CenteringPolicy
sourcefn custom_title(&self) -> Option<Widget>
fn custom_title(&self) -> Option<Widget>
sourcefn decoration_layout(&self) -> Option<GString>
fn decoration_layout(&self) -> Option<GString>
sourcefn has_subtitle(&self) -> bool
fn has_subtitle(&self) -> bool
Gets whether space is reserved for a subtitle, regardless if one is currently set or not.
Returns
TRUE
if the header bar reserves space for a subtitle
sourcefn is_interpolate_size(&self) -> bool
fn is_interpolate_size(&self) -> bool
Gets whether @self should interpolate its size on visible child change.
Returns
whether @self interpolates its size on visible child change
Gets whether this header bar shows the standard window decorations.
Returns
whether decorations are shown
sourcefn transition_duration(&self) -> u32
fn transition_duration(&self) -> u32
Gets the amount of time that transitions between pages will take.
Returns
the transition duration, in milliseconds
sourcefn is_transition_running(&self) -> bool
fn is_transition_running(&self) -> bool
Gets whether the @self is currently in a transition from one page to another.
Returns
whether the transition is currently running
sourcefn pack_end(&self, child: &impl IsA<Widget>)
fn pack_end(&self, child: &impl IsA<Widget>)
Adds @child to @self, packed with reference to the end of the @self.
child
the widget to be added to @self
sourcefn pack_start(&self, child: &impl IsA<Widget>)
fn pack_start(&self, child: &impl IsA<Widget>)
Adds @child to @self, packed with reference to the start of the @self.
child
the widget to be added to @self
sourcefn set_centering_policy(&self, centering_policy: CenteringPolicy)
fn set_centering_policy(&self, centering_policy: CenteringPolicy)
Sets the policy @self must follow to horizontally align its center widget.
centering_policy
the centering policy
sourcefn set_custom_title(&self, title_widget: Option<&impl IsA<Widget>>)
fn set_custom_title(&self, title_widget: Option<&impl IsA<Widget>>)
Sets a custom title for the header bar.
The title should help a user identify the current view. This supersedes any
title set by set_title()
or set_subtitle()
.
To achieve the same style as the builtin title and subtitle, use the .title
and .subtitle
style classes.
You should set the custom title to NULL
, for the header title label to be
visible again.
title_widget
a custom widget to use for a title
sourcefn set_decoration_layout(&self, layout: Option<&str>)
fn set_decoration_layout(&self, layout: Option<&str>)
sourcefn set_has_subtitle(&self, setting: bool)
fn set_has_subtitle(&self, setting: bool)
Sets whether space is reserved for a subtitle, even if none is currently set.
setting
TRUE
to reserve space for a subtitle
sourcefn set_interpolate_size(&self, interpolate_size: bool)
fn set_interpolate_size(&self, interpolate_size: bool)
Sets whether @self should interpolate its size on visible child change.
interpolate_size
TRUE
to interpolate the size
Sets whether this header bar shows the standard window decorations.
setting
TRUE
to show standard window decorations
sourcefn set_subtitle(&self, subtitle: Option<&str>)
fn set_subtitle(&self, subtitle: Option<&str>)
Sets the subtitle of the header bar.
The title should give a user an additional detail to help them identify the current view.
Note that HeaderBar
by default reserves room for the subtitle, even
if none is currently set. If this is not desired, set the
has-subtitle
property to FALSE
.
subtitle
a subtitle
sourcefn set_transition_duration(&self, duration: u32)
fn set_transition_duration(&self, duration: u32)
Sets the duration that transitions between pages will take.
duration
the new duration, in milliseconds
sourcefn is_decoration_layout_set(&self) -> bool
fn is_decoration_layout_set(&self) -> bool
Whether decoration-layout
is set.
sourcefn set_decoration_layout_set(&self, decoration_layout_set: bool)
fn set_decoration_layout_set(&self, decoration_layout_set: bool)
Whether decoration-layout
is set.
sourcefn set_spacing(&self, spacing: i32)
fn set_spacing(&self, spacing: i32)
The amount of space between children.