[−][src]Struct prototty_wasm::InputBuffer
Methods
impl InputBuffer
[src]
impl InputBuffer
[src]
pub fn new() -> InputBuffer
[src]
pub fn clear(&mut self)
[src]
pub fn push_key_press(&mut self, key_code: u8, shift: bool)
[src]
pub fn push_mouse_scroll_up(&mut self, x: i32, y: i32)
[src]
pub fn push_mouse_scroll_down(&mut self, x: i32, y: i32)
[src]
pub fn push_mouse_scroll_left(&mut self, x: i32, y: i32)
[src]
pub fn push_mouse_scroll_right(&mut self, x: i32, y: i32)
[src]
pub fn push_mouse_move_none(&mut self, x: i32, y: i32)
[src]
pub fn push_mouse_move_left(&mut self, x: i32, y: i32)
[src]
pub fn push_mouse_move_right(&mut self, x: i32, y: i32)
[src]
pub fn push_mouse_move_middle(&mut self, x: i32, y: i32)
[src]
pub fn push_mouse_press_left(&mut self, x: i32, y: i32)
[src]
pub fn push_mouse_press_right(&mut self, x: i32, y: i32)
[src]
pub fn push_mouse_press_middle(&mut self, x: i32, y: i32)
[src]
pub fn push_mouse_release_left(&mut self, x: i32, y: i32)
[src]
pub fn push_mouse_release_right(&mut self, x: i32, y: i32)
[src]
pub fn push_mouse_release_middle(&mut self, x: i32, y: i32)
[src]
Trait Implementations
impl RefMutFromWasmAbi for InputBuffer
[src]
type Abi = u32
Same as RefFromWasmAbi::Abi
type Anchor = RefMut<'static, InputBuffer>
Same as RefFromWasmAbi::Anchor
unsafe fn ref_mut_from_abi(
js: <InputBuffer as RefMutFromWasmAbi>::Abi,
_extra: &mut dyn Stack
) -> <InputBuffer as RefMutFromWasmAbi>::Anchor
[src]
js: <InputBuffer as RefMutFromWasmAbi>::Abi,
_extra: &mut dyn Stack
) -> <InputBuffer as RefMutFromWasmAbi>::Anchor
impl FromWasmAbi for InputBuffer
[src]
type Abi = u32
The wasm ABI type that this converts from when coming back out from the ABI boundary. Read more
unsafe fn from_abi(js: u32, _extra: &mut dyn Stack) -> InputBuffer
[src]
impl IntoWasmAbi for InputBuffer
[src]
type Abi = u32
The wasm ABI type that this converts into when crossing the ABI boundary. Read more
fn into_abi(self, _extra: &mut dyn Stack) -> u32
[src]
impl Default for InputBuffer
[src]
fn default() -> InputBuffer
[src]
impl From<InputBuffer> for JsValue
[src]
fn from(_value: InputBuffer) -> JsValue
[src]
impl RefFromWasmAbi for InputBuffer
[src]
type Abi = u32
The wasm ABI type references to Self
are recovered from.
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 more
unsafe fn ref_from_abi(
js: <InputBuffer as RefFromWasmAbi>::Abi,
_extra: &mut dyn Stack
) -> <InputBuffer as RefFromWasmAbi>::Anchor
[src]
js: <InputBuffer as RefFromWasmAbi>::Abi,
_extra: &mut dyn Stack
) -> <InputBuffer as RefFromWasmAbi>::Anchor
Auto Trait Implementations
impl Send for InputBuffer
impl Sync for InputBuffer
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> ReturnWasmAbi for T where
T: IntoWasmAbi,
[src]
T: IntoWasmAbi,
type Abi = <T as IntoWasmAbi>::Abi
Same as IntoWasmAbi::Abi