pub struct Handle { /* private fields */ }Expand description
Stable browser control handle returned by start.
See the compiled browser-shell example on crate::wasm::cyd_web.
Implementations§
Source§impl Handle
impl Handle
Sourcepub fn touch_down(&self, position_x: f32, position_y: f32)
pub fn touch_down(&self, position_x: f32, position_y: f32)
Press the simulated touch panel at canvas coordinates.
See the compiled browser-shell example on crate::wasm::cyd_web.
Sourcepub fn touch_move(&self, position_x: f32, position_y: f32)
pub fn touch_move(&self, position_x: f32, position_y: f32)
Move the simulated touch point.
See the compiled browser-shell example on crate::wasm::cyd_web.
Sourcepub fn touch_up(&self)
pub fn touch_up(&self)
Release the simulated touch panel.
See the compiled browser-shell example on crate::wasm::cyd_web.
Sourcepub fn boot_down(&self)
pub fn boot_down(&self)
Press the simulated BOOT button.
See the compiled browser-shell example on crate::wasm::cyd_web.
Sourcepub fn boot_up(&self)
pub fn boot_up(&self)
Release the simulated BOOT button.
See the compiled browser-shell example on crate::wasm::cyd_web.
Sourcepub fn orientation_is_inverted(&self) -> bool
pub fn orientation_is_inverted(&self) -> bool
Return whether the current orientation is inverted.
See the compiled browser-shell example on crate::wasm::cyd_web.
Sourcepub fn take_notice(&self) -> Option<Notice>
pub fn take_notice(&self) -> Option<Notice>
Remove and return the oldest pending framework notice.
See the compiled browser-shell example on crate::wasm::cyd_web.
Sourcepub fn request_restart(&self)
pub fn request_restart(&self)
Request an application restart.
See the compiled browser-shell example on crate::wasm::cyd_web.
Sourcepub fn clear_storage_and_restart(&self)
pub fn clear_storage_and_restart(&self)
Clear framework storage and restart the application.
See the compiled browser-shell example on crate::wasm::cyd_web.
Sourcepub fn clock_control_is_visible(&self) -> bool
pub fn clock_control_is_visible(&self) -> bool
Return whether the application has requested the clock control.
See the compiled browser-shell example on crate::wasm::cyd_web.
Sourcepub fn set_clock_time_of_day(&self, seconds_of_day: u32) -> Result<(), JsValue>
pub fn set_clock_time_of_day(&self, seconds_of_day: u32) -> Result<(), JsValue>
Set the simulated local time, in seconds after midnight.
See the compiled browser-shell example on crate::wasm::cyd_web.
Sourcepub fn use_live_clock(&self)
pub fn use_live_clock(&self)
Restore the browser’s live local clock.
See the compiled browser-shell example on crate::wasm::cyd_web.
Sourcepub fn page_title(&self) -> String
pub fn page_title(&self) -> String
Return the configured page title.
See the compiled browser-shell example on crate::wasm::cyd_web.
Sourcepub fn page_preview(&self) -> String
pub fn page_preview(&self) -> String
Return the configured preview text.
See the compiled browser-shell example on crate::wasm::cyd_web.
Sourcepub fn page_description(&self) -> String
pub fn page_description(&self) -> String
Return the configured page description.
See the compiled browser-shell example on crate::wasm::cyd_web.
Sourcepub fn page_controls(&self) -> String
pub fn page_controls(&self) -> String
Return the configured interaction instructions.
See the compiled browser-shell example on crate::wasm::cyd_web.
Sourcepub fn page_core_code_url(&self) -> String
pub fn page_core_code_url(&self) -> String
Return the configured platform-neutral source URL.
See the compiled browser-shell example on crate::wasm::cyd_web.
Trait Implementations§
Source§impl FromWasmAbi for Handle
impl FromWasmAbi for Handle
Source§impl IntoWasmAbi for Handle
impl IntoWasmAbi for Handle
Source§impl LongRefFromWasmAbi for Handle
impl LongRefFromWasmAbi for Handle
Source§impl OptionFromWasmAbi for Handle
impl OptionFromWasmAbi for Handle
Source§impl OptionIntoWasmAbi for Handle
impl OptionIntoWasmAbi for Handle
Source§impl RefFromWasmAbi for Handle
impl RefFromWasmAbi for Handle
Source§impl RefMutFromWasmAbi for Handle
impl RefMutFromWasmAbi for Handle
impl SupportsConstructor for Handle
impl SupportsInstanceProperty for Handle
impl SupportsStaticProperty for Handle
Source§impl TryFromJsValue for Handle
impl TryFromJsValue for Handle
Source§impl VectorFromWasmAbi for Handle
impl VectorFromWasmAbi for Handle
Source§impl VectorIntoWasmAbi for Handle
impl VectorIntoWasmAbi for Handle
Auto Trait Implementations§
impl !RefUnwindSafe for Handle
impl !Send for Handle
impl !Sync for Handle
impl !UnwindSafe for Handle
impl Freeze for Handle
impl Unpin for Handle
impl UnsafeUnpin for Handle
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> 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.