pub trait DOMMouseEventExt: 'static {
Show 33 methods
fn is_alt_key(&self) -> bool;
fn button(&self) -> c_ushort;
fn client_x(&self) -> c_long;
fn client_y(&self) -> c_long;
fn is_ctrl_key(&self) -> bool;
fn from_element(&self) -> Option<DOMNode>;
fn is_meta_key(&self) -> bool;
fn offset_x(&self) -> c_long;
fn offset_y(&self) -> c_long;
fn related_target(&self) -> Option<DOMEventTarget>;
fn screen_x(&self) -> c_long;
fn screen_y(&self) -> c_long;
fn is_shift_key(&self) -> bool;
fn to_element(&self) -> Option<DOMNode>;
fn x(&self) -> c_long;
fn y(&self) -> c_long;
fn init_mouse_event(
&self,
type_: &str,
canBubble: bool,
cancelable: bool,
view: &impl IsA<DOMDOMWindow>,
detail: c_long,
screenX: c_long,
screenY: c_long,
clientX: c_long,
clientY: c_long,
ctrlKey: bool,
altKey: bool,
shiftKey: bool,
metaKey: bool,
button: c_ushort,
relatedTarget: &impl IsA<DOMEventTarget>
);
fn connect_alt_key_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_button_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_client_x_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_client_y_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_ctrl_key_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_from_element_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_meta_key_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_offset_x_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_offset_y_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_related_target_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_screen_x_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_screen_y_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_shift_key_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_to_element_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_x_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_y_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
}
Expand description
Required Methods
sourcefn is_alt_key(&self) -> bool
fn is_alt_key(&self) -> bool
sourcefn is_ctrl_key(&self) -> bool
fn is_ctrl_key(&self) -> bool
sourcefn from_element(&self) -> Option<DOMNode>
fn from_element(&self) -> Option<DOMNode>
sourcefn is_meta_key(&self) -> bool
fn is_meta_key(&self) -> bool
sourcefn is_shift_key(&self) -> bool
fn is_shift_key(&self) -> bool
sourcefn to_element(&self) -> Option<DOMNode>
fn to_element(&self) -> Option<DOMNode>
sourcefn init_mouse_event(
&self,
type_: &str,
canBubble: bool,
cancelable: bool,
view: &impl IsA<DOMDOMWindow>,
detail: c_long,
screenX: c_long,
screenY: c_long,
clientX: c_long,
clientY: c_long,
ctrlKey: bool,
altKey: bool,
shiftKey: bool,
metaKey: bool,
button: c_ushort,
relatedTarget: &impl IsA<DOMEventTarget>
)
fn init_mouse_event(
&self,
type_: &str,
canBubble: bool,
cancelable: bool,
view: &impl IsA<DOMDOMWindow>,
detail: c_long,
screenX: c_long,
screenY: c_long,
clientX: c_long,
clientY: c_long,
ctrlKey: bool,
altKey: bool,
shiftKey: bool,
metaKey: bool,
button: c_ushort,
relatedTarget: &impl IsA<DOMEventTarget>
)
Deprecated since 2.22
Use JavaScriptCore API instead
type_
A gchar
canBubble
A gboolean
cancelable
A gboolean
view
detail
A glong
screenX
A glong
screenY
A glong
clientX
A glong
clientY
A glong
ctrlKey
A gboolean
altKey
A gboolean
shiftKey
A gboolean
metaKey
A gboolean
button
A gushort