Trait libhelium::prelude::ToastExt

source ·
pub trait ToastExt: IsA<Toast> + Sealed + 'static {
    // Provided methods
    fn send_notification(&self) { ... }
    fn label(&self) -> GString { ... }
    fn set_label(&self, value: &str) { ... }
    fn default_action(&self) -> GString { ... }
    fn set_default_action(&self, value: &str) { ... }
    fn connect_closed<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { ... }
    fn connect_action<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { ... }
    fn connect_label_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId { ... }
    fn connect_default_action_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId { ... }
}
Expand description

Trait containing all Toast methods.

§Implementors

Toast

Provided Methods§

source

fn send_notification(&self)

Shows the Toast.

Since: 1.0

source

fn label(&self) -> GString

source

fn set_label(&self, value: &str)

source

fn default_action(&self) -> GString

source

fn set_default_action(&self, value: &str)

source

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

Emitted when the Toast is closed by activating the close button

source

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

Emitted when the default action button is activated

source

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

source

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

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<O: IsA<Toast>> ToastExt for O