Struct chrome_remote_interface_model::input::DispatchKeyEventCommandBuilder [−][src]
Implementations
impl DispatchKeyEventCommandBuilder
[src]
pub fn type(&mut self, v: DispatchKeyEventCommandType) -> &mut Self
[src]
Type of the key event.
pub fn modifiers(&mut self, v: u32) -> &mut Self
[src]
Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0).
pub fn timestamp(&mut self, v: TimeSinceEpoch) -> &mut Self
[src]
Time at which the event occurred.
pub fn text(&mut self, v: String) -> &mut Self
[src]
Text as generated by processing a virtual key code with a keyboard layout. Not needed for
for keyUp
and rawKeyDown
events (default: "")
pub fn unmodified_text(&mut self, v: String) -> &mut Self
[src]
Text that would have been generated by the keyboard if no modifiers were pressed (except for shift). Useful for shortcut (accelerator) key handling (default: "").
pub fn key_identifier(&mut self, v: String) -> &mut Self
[src]
Unique key identifier (e.g., 'U+0041') (default: "").
pub fn code(&mut self, v: String) -> &mut Self
[src]
Unique DOM defined string value for each physical key (e.g., 'KeyA') (default: "").
pub fn key(&mut self, v: String) -> &mut Self
[src]
Unique DOM defined string value describing the meaning of the key in the context of active modifiers, keyboard layout, etc (e.g., 'AltGr') (default: "").
pub fn windows_virtual_key_code(&mut self, v: u32) -> &mut Self
[src]
Windows virtual key code (default: 0).
pub fn native_virtual_key_code(&mut self, v: u32) -> &mut Self
[src]
Native virtual key code (default: 0).
pub fn auto_repeat(&mut self, v: bool) -> &mut Self
[src]
Whether the event was generated from auto repeat (default: false).
pub fn is_keypad(&mut self, v: bool) -> &mut Self
[src]
Whether the event was generated from the keypad (default: false).
pub fn is_system_key(&mut self, v: bool) -> &mut Self
[src]
Whether the event was a system key event (default: false).
pub fn location(&mut self, v: u32) -> &mut Self
[src]
Whether the event was from the left or right side of the keyboard. 1=Left, 2=Right (default: 0).
pub fn commands(&mut self, v: Vec<String>) -> &mut Self
[src]
Editing commands to send with the key event (e.g., 'selectAll') (default: []).
These are related to but not equal the command names used in document.execCommand
and NSStandardKeyBindingResponding.
See https://source.chromium.org/chromium/chromium/src/+/master:third_party/blink/renderer/core/editing/commands/editor_command_names.h for valid command names.
pub fn build(&mut self) -> Result<DispatchKeyEventCommand, &'static str>
[src]
Trait Implementations
impl Clone for DispatchKeyEventCommandBuilder
[src]
fn clone(&self) -> DispatchKeyEventCommandBuilder
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for DispatchKeyEventCommandBuilder
[src]
impl Default for DispatchKeyEventCommandBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for DispatchKeyEventCommandBuilder
[src]
impl Send for DispatchKeyEventCommandBuilder
[src]
impl Sync for DispatchKeyEventCommandBuilder
[src]
impl Unpin for DispatchKeyEventCommandBuilder
[src]
impl UnwindSafe for DispatchKeyEventCommandBuilder
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,