Trait webkit2gtk::prelude::NotificationExt
source · [−]pub trait NotificationExt: 'static {
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.Expand description
Required Methods
sourcefn clicked(&self)
fn clicked(&self)
Available on crate feature
v2_12
only.Tells WebKit the notification has been clicked.
This will emit the
signal::Notification::clicked
signal.
sourcefn connect_clicked<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_clicked<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
Available on crate feature
v2_12
only.Emitted when a notification has been clicked. See clicked()
.
sourcefn connect_closed<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_closed<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
Emitted when a notification has been withdrawn.
The default handler will close the notification using libnotify, if built with support for it.
fn connect_body_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_id_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
sourcefn connect_tag_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_tag_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
Available on crate feature
v2_16
only.