[][src]Struct libhandy4::HeaderBar

pub struct HeaderBar(_);

Implementations

impl HeaderBar[src]

pub fn new() -> HeaderBar[src]

Creates a new HeaderBar widget.

Returns

a new HeaderBar

pub fn get_centering_policy(&self) -> CenteringPolicy[src]

Gets the policy self follows to horizontally align its center widget.

Returns

the centering policy

pub fn get_decoration_layout(&self) -> Option<GString>[src]

Gets the decoration layout set with HeaderBar::set_decoration_layout.

Returns

the decoration layout

pub fn get_show_title_buttons(&self) -> bool[src]

Returns whether this header bar shows the standard window title buttons.

Returns

true if title buttons are shown

pub fn get_title_widget(&self) -> Option<Widget>[src]

Retrieves the title widget widget of the header. See HeaderBar::set_title_widget.

Returns

the title widget of the header, or None if none has been set explicitly.

pub fn pack_end<P: IsA<Widget>>(&self, child: &P)[src]

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

child

the gtk::Widget to be added to self

pub fn pack_start<P: IsA<Widget>>(&self, child: &P)[src]

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

child

the gtk::Widget to be added to self

pub fn remove<P: IsA<Widget>>(&self, child: &P)[src]

Removes a child from self, after it has been added with HeaderBar::pack_start, HeaderBar::pack_end or HeaderBar::set_title_widget.

child

the child to remove

pub fn set_centering_policy(&self, centering_policy: CenteringPolicy)[src]

Sets the policy self must follow to horizontally align its center widget.

centering_policy

the centering policy

pub fn set_decoration_layout(&self, layout: Option<&str>)[src]

Sets the decoration layout for this header bar, overriding the gtk::Settings:gtk-decoration-layout setting.

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 left from those on the right. Recognized button names are minimize, maximize, close and icon (the window icon).

For example, “icon:minimize,maximize,close” specifies an icon on the left, and minimize, maximize and close buttons on the right.

layout

a decoration layout, or None to unset the layout

pub fn set_show_title_buttons(&self, setting: bool)[src]

Sets whether this header bar shows the standard window title buttons including close, maximize, and minimize.

setting

true to show standard title buttons

pub fn set_title_widget<P: IsA<Widget>>(&self, title_widget: Option<&P>)[src]

Sets the title for the HeaderBar.

When set to None, the headerbar will display the title of the window it is contained in.

The title should help a user identify the current view. To achieve the same style as the builtin title, use the “title” style class.

You should set the title widget to None, for the window title label to be visible again.

title_widget

a widget to use for a title

pub fn connect_property_centering_policy_notify<F: Fn(&HeaderBar) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

pub fn connect_property_decoration_layout_notify<F: Fn(&HeaderBar) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

pub fn connect_property_show_title_buttons_notify<F: Fn(&HeaderBar) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

pub fn connect_property_title_widget_notify<F: Fn(&HeaderBar) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

Trait Implementations

impl Clone for HeaderBar[src]

impl Debug for HeaderBar[src]

impl Default for HeaderBar[src]

impl Display for HeaderBar[src]

impl Eq for HeaderBar[src]

impl Hash for HeaderBar[src]

impl IsA<Accessible> for HeaderBar[src]

impl IsA<Buildable> for HeaderBar[src]

impl IsA<ConstraintTarget> for HeaderBar[src]

impl IsA<Widget> for HeaderBar[src]

impl Ord for HeaderBar[src]

impl ParentClassIs for HeaderBar[src]

type Parent = Widget

impl<T: ObjectType> PartialEq<T> for HeaderBar[src]

impl<T: ObjectType> PartialOrd<T> for HeaderBar[src]

impl StaticType for HeaderBar[src]

impl StructuralEq for HeaderBar[src]

Auto Trait Implementations

impl RefUnwindSafe for HeaderBar[src]

impl !Send for HeaderBar[src]

impl !Sync for HeaderBar[src]

impl Unpin for HeaderBar[src]

impl UnwindSafe for HeaderBar[src]

Blanket Implementations

impl<O> AccessibleExt for O where
    O: IsA<Accessible>, 

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<O> BuildableExt for O where
    O: IsA<Buildable>, 

impl<Super, Sub> CanDowncast<Sub> for Super where
    Sub: IsA<Super>,
    Super: IsA<Super>, 

impl<T> Cast for T where
    T: ObjectType, 

impl<O> ConstraintTargetExt for O where
    O: IsA<ConstraintTarget>, 

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ObjectExt for T where
    T: ObjectType, 

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToSendValue for T where
    T: ToValue + SetValue + Send + ?Sized

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<O> WidgetExt for O where
    O: IsA<Widget>, 

impl<O> WidgetExtManual for O where
    O: IsA<Widget>,