Struct prototty_wasm_input::InputBuffer
source · pub struct InputBuffer { /* private fields */ }
Implementations
sourceimpl 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(&mut self, x: i32, y: i32)
pub fn push_mouse_press(&mut self, x: i32, y: i32)
pub fn push_mouse_release(&mut self, x: i32, y: i32)
sourceimpl InputBuffer
impl InputBuffer
Trait Implementations
sourceimpl Default for InputBuffer
impl Default for InputBuffer
sourcefn default() -> InputBuffer
fn default() -> InputBuffer
Returns the “default value” for a type. Read more
sourceimpl From<InputBuffer> for JsValue
impl From<InputBuffer> for JsValue
sourcefn from(value: InputBuffer) -> Self
fn from(value: InputBuffer) -> Self
Converts to this type from the input type.
sourceimpl FromWasmAbi for InputBuffer
impl FromWasmAbi for InputBuffer
sourceimpl IntoWasmAbi for InputBuffer
impl IntoWasmAbi for InputBuffer
sourceimpl OptionFromWasmAbi for InputBuffer
impl OptionFromWasmAbi for InputBuffer
sourceimpl OptionIntoWasmAbi for InputBuffer
impl OptionIntoWasmAbi for InputBuffer
sourceimpl RefFromWasmAbi for InputBuffer
impl RefFromWasmAbi for InputBuffer
type Anchor = Ref<'static, InputBuffer>
type Anchor = Ref<'static, 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. Read moresourceunsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor
sourceimpl RefMutFromWasmAbi for InputBuffer
impl RefMutFromWasmAbi for InputBuffer
type Anchor = RefMut<'static, InputBuffer>
type Anchor = RefMut<'static, InputBuffer>
Same as
RefFromWasmAbi::Anchor
sourceunsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
Same as
RefFromWasmAbi::ref_from_abi
sourceimpl WasmDescribe for InputBuffer
impl WasmDescribe for InputBuffer
Auto Trait Implementations
impl RefUnwindSafe for InputBuffer
impl Send for InputBuffer
impl Sync for InputBuffer
impl Unpin for InputBuffer
impl UnwindSafe for InputBuffer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
sourcefn 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
. Read more