Trait libhelium::prelude::BottomBarExt

source ·
pub trait BottomBarExt: IsA<BottomBar> + Sealed + 'static {
Show 17 methods // Provided methods fn append_button( &self, icon: &impl IsA<Button>, position: BottomBarPosition, ) { ... } fn prepend_button( &self, icon: &impl IsA<Button>, position: BottomBarPosition, ) { ... } fn remove_button( &self, icon: &impl IsA<Button>, position: BottomBarPosition, ) { ... } fn insert_button_after( &self, icon: &impl IsA<Button>, after: &impl IsA<Button>, position: BottomBarPosition, ) { ... } fn reorder_button_after( &self, icon: &impl IsA<Button>, sibling: &impl IsA<Button>, position: BottomBarPosition, ) { ... } fn title(&self) -> GString { ... } fn set_title(&self, value: &str) { ... } fn description(&self) -> GString { ... } fn set_description(&self, value: &str) { ... } fn menu_model(&self) -> MenuModel { ... } fn set_menu_model(&self, value: &impl IsA<MenuModel>) { ... } fn is_collapse_actions(&self) -> bool { ... } fn set_collapse_actions(&self, value: bool) { ... } fn connect_title_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_description_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_menu_model_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_collapse_actions_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... }
}
Expand description

Trait containing all BottomBar methods.

§Implementors

BottomBar

Provided Methods§

source

fn append_button(&self, icon: &impl IsA<Button>, position: BottomBarPosition)

Add an action to the bottom bar on the end of the bar.

§icon

The iconicbutton of the action.

§position

The position of the action.

source

fn prepend_button(&self, icon: &impl IsA<Button>, position: BottomBarPosition)

Add an action to the bottom bar on the start of the bar.

§icon

The iconicbutton of the action.

§position

The position of the action.

source

fn remove_button(&self, icon: &impl IsA<Button>, position: BottomBarPosition)

Remove an action of the bottom bar.

§icon

The iconicbutton of the action.

§position

The position of the action.

source

fn insert_button_after( &self, icon: &impl IsA<Button>, after: &impl IsA<Button>, position: BottomBarPosition, )

Insert an action after another action.

§icon

The iconicbutton of the action.

§after

The iconicbutton of the action after which the action is.

§position

The position of the action.

source

fn reorder_button_after( &self, icon: &impl IsA<Button>, sibling: &impl IsA<Button>, position: BottomBarPosition, )

Reorder an action based on another action.

Since: 1.0

§icon

The iconicbutton of the action.

§sibling

The iconicbutton of the action after which the action is.

§position

The position of the action.

source

fn title(&self) -> GString

source

fn set_title(&self, value: &str)

source

fn description(&self) -> GString

source

fn set_description(&self, value: &str)

source

fn menu_model(&self) -> MenuModel

source

fn set_menu_model(&self, value: &impl IsA<MenuModel>)

source

fn is_collapse_actions(&self) -> bool

source

fn set_collapse_actions(&self, value: bool)

source

fn connect_title_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

source

fn connect_description_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

source

fn connect_menu_model_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

source

fn connect_collapse_actions_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<O: IsA<BottomBar>> BottomBarExt for O