pub trait OmniBarExt: 'static {
Show 20 methods // Required methods fn add_prefix(&self, priority: i32, widget: &impl IsA<Widget>); fn add_suffix(&self, priority: i32, widget: &impl IsA<Widget>); fn popover(&self) -> Option<Popover>; fn progress(&self) -> f64; fn remove(&self, widget: &impl IsA<Widget>); fn set_popover(&self, popover: Option<&impl IsA<Popover>>); fn set_progress(&self, progress: f64); fn start_pulsing(&self); fn stop_pulsing(&self); fn action_tooltip(&self) -> Option<GString>; fn set_action_tooltip(&self, action_tooltip: Option<&str>); fn icon_name(&self) -> Option<GString>; fn set_icon_name(&self, icon_name: Option<&str>); fn menu_model(&self) -> Option<MenuModel>; fn set_menu_model<P: IsA<MenuModel>>(&self, menu_model: Option<&P>); fn connect_action_tooltip_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_icon_name_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_menu_model_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_popover_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_progress_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId;
}
Expand description

Trait containing all OmniBar methods.

Implementors

OmniBar

Required Methods§

source

fn add_prefix(&self, priority: i32, widget: &impl IsA<Widget>)

Add a widget at the start of the container, ordered by priority. The highest the priority, the closest to the start.

priority

the priority

widget

the widget to add at the start.

source

fn add_suffix(&self, priority: i32, widget: &impl IsA<Widget>)

Add a widget towards the end of the container, ordered by priority. The highest the priority, the closest to the start.

priority

the priority

widget

the widget to add toward the end.

source

fn popover(&self) -> Option<Popover>

Gets the current popover or None if none is setup.

Returns

a gtk::Popover or None

source

fn progress(&self) -> f64

Gets the progress value displayed in the omni bar.

Returns

the progress value.

source

fn remove(&self, widget: &impl IsA<Widget>)

Removes a widget from the omni bar. Currently only prefix or suffix widgets are supported.

widget

The widget to remove.

source

fn set_popover(&self, popover: Option<&impl IsA<Popover>>)

Sets the omnibar popover, that will appear when clicking on the omni bar.

popover

a gtk::Popover or None

source

fn set_progress(&self, progress: f64)

Sets the progress value displayed in the omni bar.

progress

the progress value

source

fn start_pulsing(&self)

Starts pulsing the omni bar. Use stop_pulsing() to stop.

source

fn stop_pulsing(&self)

Stops pulsing the omni bar, that was started with start_pulsing().

source

fn action_tooltip(&self) -> Option<GString>

The tooltip for the action.

source

fn set_action_tooltip(&self, action_tooltip: Option<&str>)

The tooltip for the action.

source

fn icon_name(&self) -> Option<GString>

The name of the icon to use.

source

fn set_icon_name(&self, icon_name: Option<&str>)

The name of the icon to use.

source

fn menu_model(&self) -> Option<MenuModel>

The menu model of the omni bar menu.

source

fn set_menu_model<P: IsA<MenuModel>>(&self, menu_model: Option<&P>)

The menu model of the omni bar menu.

source

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

source

fn connect_icon_name_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_popover_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

source

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

Implementors§