pub struct CydSimulatorControlWasm { /* private fields */ }Expand description
Browser input and lifecycle control shared by an application launcher.
See the compiled crate::wasm::simulator example.
Implementations§
Source§impl CydSimulatorControlWasm
impl CydSimulatorControlWasm
Sourcepub const fn orientation(&self) -> Orientation
pub const fn orientation(&self) -> Orientation
Return the display orientation used by this simulator instance.
See the compiled crate::wasm::simulator example.
Source§impl CydSimulatorControlWasm
impl CydSimulatorControlWasm
Sourcepub fn orientation_is_inverted(&self) -> bool
pub fn orientation_is_inverted(&self) -> bool
Return whether the simulated display is presented upside down.
See the compiled crate::wasm::simulator example.
Sourcepub fn touch_down(&self, x: f32, y: f32)
pub fn touch_down(&self, x: f32, y: f32)
Forward a browser pointer-down position in logical canvas coordinates.
See the compiled crate::wasm::simulator example.
Sourcepub fn touch_move(&self, x: f32, y: f32)
pub fn touch_move(&self, x: f32, y: f32)
Forward a browser pointer-move position in logical canvas coordinates.
See the compiled crate::wasm::simulator example.
Sourcepub fn touch_up(&self)
pub fn touch_up(&self)
Forward a browser pointer-up or pointer-cancel event.
See the compiled crate::wasm::simulator example.
Sourcepub fn boot_down(&self)
pub fn boot_down(&self)
Forward a physical BOOT-button press.
See the compiled crate::wasm::simulator example.
Sourcepub fn boot_up(&self)
pub fn boot_up(&self)
Forward a physical BOOT-button release.
See the compiled crate::wasm::simulator example.
Sourcepub fn reset_transient_state(&self)
pub fn reset_transient_state(&self)
Clear transient browser input after a simulated reset.
See the compiled crate::wasm::simulator example.
Trait Implementations§
Source§impl Clone for CydSimulatorControlWasm
impl Clone for CydSimulatorControlWasm
Source§fn clone(&self) -> CydSimulatorControlWasm
fn clone(&self) -> CydSimulatorControlWasm
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl From<CydSimulatorControlWasm> for JsValue
impl From<CydSimulatorControlWasm> for JsValue
Source§fn from(value: CydSimulatorControlWasm) -> Self
fn from(value: CydSimulatorControlWasm) -> Self
Source§impl RefFromWasmAbi for CydSimulatorControlWasm
impl RefFromWasmAbi for CydSimulatorControlWasm
Source§type Anchor = RcRef<CydSimulatorControlWasm>
type Anchor = RcRef<CydSimulatorControlWasm>
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.impl SupportsConstructor for CydSimulatorControlWasm
impl SupportsInstanceProperty for CydSimulatorControlWasm
impl SupportsStaticProperty for CydSimulatorControlWasm
Source§impl VectorFromWasmAbi for CydSimulatorControlWasm
impl VectorFromWasmAbi for CydSimulatorControlWasm
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[CydSimulatorControlWasm]>
Source§impl VectorIntoWasmAbi for CydSimulatorControlWasm
impl VectorIntoWasmAbi for CydSimulatorControlWasm
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[CydSimulatorControlWasm]>) -> Self::Abi
Source§impl WasmDescribeVector for CydSimulatorControlWasm
impl WasmDescribeVector for CydSimulatorControlWasm
Auto Trait Implementations§
impl !RefUnwindSafe for CydSimulatorControlWasm
impl !Send for CydSimulatorControlWasm
impl !Sync for CydSimulatorControlWasm
impl !UnwindSafe for CydSimulatorControlWasm
impl Freeze for CydSimulatorControlWasm
impl Unpin for CydSimulatorControlWasm
impl UnsafeUnpin for CydSimulatorControlWasm
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
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
Source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
Source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
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
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.