Trait webkit2gtk_webextension::prelude::DOMEventExt
source · [−]pub trait DOMEventExt: 'static {
Show 26 methods
fn is_bubbles(&self) -> bool;
fn is_cancel_bubble(&self) -> bool;
fn is_cancelable(&self) -> bool;
fn current_target(&self) -> Option<DOMEventTarget>;
fn event_phase(&self) -> c_ushort;
fn event_type(&self) -> Option<GString>;
fn is_return_value(&self) -> bool;
fn src_element(&self) -> Option<DOMEventTarget>;
fn target(&self) -> Option<DOMEventTarget>;
fn time_stamp(&self) -> u32;
fn init_event(
&self,
eventTypeArg: &str,
canBubbleArg: bool,
cancelableArg: bool
);
fn prevent_default(&self);
fn set_cancel_bubble(&self, value: bool);
fn set_return_value(&self, value: bool);
fn stop_propagation(&self);
fn type_(&self) -> Option<GString>;
fn connect_bubbles_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_cancel_bubble_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_cancelable_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_current_target_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_event_phase_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_return_value_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_src_element_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_target_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_time_stamp_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_type_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
}
Expand description
Required Methods
sourcefn is_bubbles(&self) -> bool
fn is_bubbles(&self) -> bool
sourcefn is_cancel_bubble(&self) -> bool
fn is_cancel_bubble(&self) -> bool
sourcefn is_cancelable(&self) -> bool
fn is_cancelable(&self) -> bool
sourcefn current_target(&self) -> Option<DOMEventTarget>
fn current_target(&self) -> Option<DOMEventTarget>
sourcefn event_phase(&self) -> c_ushort
fn event_phase(&self) -> c_ushort
sourcefn event_type(&self) -> Option<GString>
fn event_type(&self) -> Option<GString>
sourcefn is_return_value(&self) -> bool
fn is_return_value(&self) -> bool
sourcefn src_element(&self) -> Option<DOMEventTarget>
fn src_element(&self) -> Option<DOMEventTarget>
sourcefn target(&self) -> Option<DOMEventTarget>
fn target(&self) -> Option<DOMEventTarget>
sourcefn time_stamp(&self) -> u32
fn time_stamp(&self) -> u32
sourcefn init_event(&self, eventTypeArg: &str, canBubbleArg: bool, cancelableArg: bool)
fn init_event(&self, eventTypeArg: &str, canBubbleArg: bool, cancelableArg: bool)
Deprecated since 2.22
Use JavaScriptCore API instead
eventTypeArg
A gchar
canBubbleArg
A gboolean
cancelableArg
A gboolean
sourcefn prevent_default(&self)
fn prevent_default(&self)
Deprecated since 2.22
Use JavaScriptCore API instead
sourcefn set_cancel_bubble(&self, value: bool)
fn set_cancel_bubble(&self, value: bool)
sourcefn set_return_value(&self, value: bool)
fn set_return_value(&self, value: bool)
sourcefn stop_propagation(&self)
fn stop_propagation(&self)
Deprecated since 2.22
Use JavaScriptCore API instead