Trait webkit2gtk_webextension::prelude::DOMUIEventExt
source · [−]pub trait DOMUIEventExt: 'static {
Show 17 methods
fn char_code(&self) -> c_long;
fn detail(&self) -> c_long;
fn key_code(&self) -> c_long;
fn layer_x(&self) -> c_long;
fn layer_y(&self) -> c_long;
fn page_x(&self) -> c_long;
fn page_y(&self) -> c_long;
fn view(&self) -> Option<DOMDOMWindow>;
fn init_ui_event(
&self,
type_: &str,
canBubble: bool,
cancelable: bool,
view: &impl IsA<DOMDOMWindow>,
detail: c_long
);
fn connect_char_code_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_detail_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_key_code_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_layer_x_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_layer_y_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_page_x_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_page_y_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_view_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
}
Expand description
Required Methods
sourcefn view(&self) -> Option<DOMDOMWindow>
fn view(&self) -> Option<DOMDOMWindow>
sourcefn init_ui_event(
&self,
type_: &str,
canBubble: bool,
cancelable: bool,
view: &impl IsA<DOMDOMWindow>,
detail: c_long
)
fn init_ui_event(
&self,
type_: &str,
canBubble: bool,
cancelable: bool,
view: &impl IsA<DOMDOMWindow>,
detail: c_long
)
Deprecated since 2.22
Use JavaScriptCore API instead
type_
A gchar
canBubble
A gboolean
cancelable
A gboolean
view
detail
A glong