pub trait DOMKeyboardEventExt: 'static {
Show 16 methods
fn is_alt_graph_key(&self) -> bool;
fn is_alt_key(&self) -> bool;
fn is_ctrl_key(&self) -> bool;
fn key_identifier(&self) -> Option<GString>;
fn key_location(&self) -> c_ulong;
fn is_meta_key(&self) -> bool;
fn is_modifier_state(&self, keyIdentifierArg: &str) -> bool;
fn is_shift_key(&self) -> bool;
fn init_keyboard_event(
&self,
type_: &str,
canBubble: bool,
cancelable: bool,
view: &impl IsA<DOMDOMWindow>,
keyIdentifier: &str,
location: c_ulong,
ctrlKey: bool,
altKey: bool,
shiftKey: bool,
metaKey: bool,
altGraphKey: bool
);
fn connect_alt_graph_key_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_alt_key_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_ctrl_key_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_key_identifier_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_key_location_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_meta_key_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_shift_key_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
}
Expand description
Required Methods
sourcefn is_alt_graph_key(&self) -> bool
fn is_alt_graph_key(&self) -> bool
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 key_identifier(&self) -> Option<GString>
fn key_identifier(&self) -> Option<GString>
sourcefn key_location(&self) -> c_ulong
fn key_location(&self) -> c_ulong
sourcefn is_meta_key(&self) -> bool
fn is_meta_key(&self) -> bool
sourcefn is_modifier_state(&self, keyIdentifierArg: &str) -> bool
fn is_modifier_state(&self, keyIdentifierArg: &str) -> bool
sourcefn is_shift_key(&self) -> bool
fn is_shift_key(&self) -> bool
sourcefn init_keyboard_event(
&self,
type_: &str,
canBubble: bool,
cancelable: bool,
view: &impl IsA<DOMDOMWindow>,
keyIdentifier: &str,
location: c_ulong,
ctrlKey: bool,
altKey: bool,
shiftKey: bool,
metaKey: bool,
altGraphKey: bool
)
fn init_keyboard_event(
&self,
type_: &str,
canBubble: bool,
cancelable: bool,
view: &impl IsA<DOMDOMWindow>,
keyIdentifier: &str,
location: c_ulong,
ctrlKey: bool,
altKey: bool,
shiftKey: bool,
metaKey: bool,
altGraphKey: bool
)
Deprecated since 2.22
Use JavaScriptCore API instead
type_
A gchar
canBubble
A gboolean
cancelable
A gboolean
view
keyIdentifier
A gchar
location
A gulong
ctrlKey
A gboolean
altKey
A gboolean
shiftKey
A gboolean
metaKey
A gboolean
altGraphKey
A gboolean