Trait NotificationExt

Source
pub trait NotificationExt:
    IsA<Notification>
    + Sealed
    + 'static {
    // Provided methods
    fn clicked(&self) { ... }
    fn close(&self) { ... }
    fn body(&self) -> Option<GString> { ... }
    fn id(&self) -> u64 { ... }
    fn tag(&self) -> Option<GString> { ... }
    fn title(&self) -> Option<GString> { ... }
    fn connect_clicked<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { ... }
    fn connect_closed<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { ... }
    fn connect_body_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
    fn connect_id_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { ... }
    fn connect_tag_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
    fn connect_title_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
}
Available on crate feature v2_8 only.

Provided Methods§

Source

fn clicked(&self)

Available on crate feature v2_12 only.
Source

fn close(&self)

Source

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

Source

fn id(&self) -> u64

Source

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

Available on crate feature v2_16 only.
Source

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

Source

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

Available on crate feature v2_12 only.
Source

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

Source

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

Source

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

Source

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

Available on crate feature v2_16 only.
Source

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§