Trait libhelium::prelude::BannerExt

source ·
pub trait BannerExt: IsA<Banner> + Sealed + 'static {
    // Provided methods
    fn add_action_button(&self, widget: &impl IsA<Widget>) { ... }
    fn remove_action(&self, widget: &impl IsA<Widget>) { ... }
    fn set_banner_style(&self, style: BannerStyle) { ... }
    fn title(&self) -> GString { ... }
    fn set_title(&self, value: &str) { ... }
    fn description(&self) -> GString { ... }
    fn set_description(&self, value: &str) { ... }
    fn style(&self) -> BannerStyle { ... }
    fn set_style(&self, value: BannerStyle) { ... }
    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_style_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
}
Expand description

Trait containing all Banner methods.

§Implementors

Banner

Provided Methods§

source

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

Add a button to the banner.

§widget

The button to add to the banner.

source

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

Remove a button from the banner.

§widget

The button to remove.

source

fn set_banner_style(&self, style: BannerStyle)

Set the banner style.

§style

The style to set the banner to.

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 style(&self) -> BannerStyle

source

fn set_style(&self, value: BannerStyle)

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

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<O: IsA<Banner>> BannerExt for O