pub struct InputBuffer { /* private fields */ }Implementations§
Source§impl InputBuffer
impl InputBuffer
pub fn new() -> Self
pub fn clear(&mut self)
pub fn push_key_press(&mut self, key_code: u8, shift: bool)
pub fn push_mouse_scroll_up(&mut self, x: i32, y: i32)
pub fn push_mouse_scroll_down(&mut self, x: i32, y: i32)
pub fn push_mouse_scroll_left(&mut self, x: i32, y: i32)
pub fn push_mouse_scroll_right(&mut self, x: i32, y: i32)
pub fn push_mouse_move_none(&mut self, x: i32, y: i32)
pub fn push_mouse_move_left(&mut self, x: i32, y: i32)
pub fn push_mouse_move_right(&mut self, x: i32, y: i32)
pub fn push_mouse_move_middle(&mut self, x: i32, y: i32)
pub fn push_mouse_press_left(&mut self, x: i32, y: i32)
pub fn push_mouse_press_right(&mut self, x: i32, y: i32)
pub fn push_mouse_press_middle(&mut self, x: i32, y: i32)
pub fn push_mouse_release_left(&mut self, x: i32, y: i32)
pub fn push_mouse_release_right(&mut self, x: i32, y: i32)
pub fn push_mouse_release_middle(&mut self, x: i32, y: i32)
Trait Implementations§
Source§impl Default for InputBuffer
impl Default for InputBuffer
Source§fn default() -> InputBuffer
fn default() -> InputBuffer
Returns the “default value” for a type. Read more
Source§impl From<InputBuffer> for JsValue
impl From<InputBuffer> for JsValue
Source§fn from(value: InputBuffer) -> Self
fn from(value: InputBuffer) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for InputBuffer
impl FromWasmAbi for InputBuffer
Source§impl IntoWasmAbi for InputBuffer
impl IntoWasmAbi for InputBuffer
Source§impl LongRefFromWasmAbi for InputBuffer
impl LongRefFromWasmAbi for InputBuffer
Source§impl OptionFromWasmAbi for InputBuffer
impl OptionFromWasmAbi for InputBuffer
Source§impl OptionIntoWasmAbi for InputBuffer
impl OptionIntoWasmAbi for InputBuffer
Source§impl RefFromWasmAbi for InputBuffer
impl RefFromWasmAbi for InputBuffer
Source§type Anchor = RcRef<InputBuffer>
type Anchor = RcRef<InputBuffer>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl RefMutFromWasmAbi for InputBuffer
impl RefMutFromWasmAbi for InputBuffer
Source§impl TryFromJsValue for InputBuffer
impl TryFromJsValue for InputBuffer
Source§impl VectorFromWasmAbi for InputBuffer
impl VectorFromWasmAbi for InputBuffer
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[InputBuffer]>
Source§impl VectorIntoWasmAbi for InputBuffer
impl VectorIntoWasmAbi for InputBuffer
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[InputBuffer]>) -> Self::Abi
Source§impl WasmDescribeVector for InputBuffer
impl WasmDescribeVector for InputBuffer
impl SupportsConstructor for InputBuffer
impl SupportsInstanceProperty for InputBuffer
impl SupportsStaticProperty for InputBuffer
Auto Trait Implementations§
impl Freeze for InputBuffer
impl RefUnwindSafe for InputBuffer
impl Send for InputBuffer
impl Sync for InputBuffer
impl Unpin for InputBuffer
impl UnwindSafe for InputBuffer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.