Trait libpanel::prelude::OmniBarExt
source · pub trait OmniBarExt: IsA<OmniBar> + Sealed + 'static {
Show 20 methods
// Provided 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 { ... }
}
Provided Methods§
sourcefn add_prefix(&self, priority: i32, widget: &impl IsA<Widget>)
fn add_prefix(&self, priority: i32, widget: &impl IsA<Widget>)
sourcefn add_suffix(&self, priority: i32, widget: &impl IsA<Widget>)
fn add_suffix(&self, priority: i32, widget: &impl IsA<Widget>)
sourcefn remove(&self, widget: &impl IsA<Widget>)
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.
sourcefn set_popover(&self, popover: Option<&impl IsA<Popover>>)
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
sourcefn set_progress(&self, progress: f64)
fn set_progress(&self, progress: f64)
sourcefn start_pulsing(&self)
fn start_pulsing(&self)
Starts pulsing the omni bar. Use
stop_pulsing()
to stop.
sourcefn stop_pulsing(&self)
fn stop_pulsing(&self)
Stops pulsing the omni bar, that was started with
start_pulsing()
.
sourcefn action_tooltip(&self) -> Option<GString>
fn action_tooltip(&self) -> Option<GString>
The tooltip for the action.
sourcefn set_action_tooltip(&self, action_tooltip: Option<&str>)
fn set_action_tooltip(&self, action_tooltip: Option<&str>)
The tooltip for the action.
sourcefn set_icon_name(&self, icon_name: Option<&str>)
fn set_icon_name(&self, icon_name: Option<&str>)
The name of the icon to use.
The menu model of the omni bar menu.
The menu model of the omni bar menu.
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_popover_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_progress_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
Object Safety§
This trait is not object safe.