Struct xloop_wasm::Platform

source ·
pub struct Platform;

Trait Implementations§

source§

impl AppHandle<Platform> for AppHandle

source§

fn singleton() -> Option<Self>

source§

fn with(&self, fun: impl FnMut(<Platform as Platform>::AppRef<'_>))

source§

impl<'a> AppRef<Platform> for AppRef<'a>

source§

impl Debug for Platform

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'a> IntoEvt<Platform, EvtKey> for WinKey<'a>

source§

fn to_evt(&self, _win: WinRef<'_>) -> Option<EvtKey>

source§

impl<'a> IntoEvt<Platform, EvtMouse> for WinMouse<'a>

source§

fn to_evt(&self, _win: WinRef<'_>) -> Option<EvtMouse>

source§

impl<'a> IntoEvt<Platform, EvtTouch> for WinTouch<'a>

source§

fn to_evt(&self, _win: WinRef<'_>) -> Option<EvtTouch>

source§

impl<'a> IntoEvt<Platform, EvtWheel> for WinWheel<'a>

source§

fn to_evt(&self, _win: WinRef<'_>) -> Option<EvtWheel>

source§

impl Platform for Platform

§

type Error = Error

§

type AppRef<'a> = AppRef<'a>

§

type AppHandle = AppHandle

§

type AppProxy = AppProxy

§

type WinRef<'a> = WinRef<'a>

§

type WinHandle = WinHandle

§

type WinRaw = WinRaw

§

type EvtMouse<'a> = WinMouse<'a>

§

type EvtWheel<'a> = WinWheel<'a>

§

type EvtKey<'a> = WinKey<'a>

§

type EvtTouch<'a> = WinTouch<'a>

§

type EvtCommit<'a> = &'a EvtCommit

source§

fn run( delegate: impl AppDelegate<Self> + 'static, ) -> Result<Option<Self::AppHandle>, Self::Error>

source§

fn win( _key: impl AsRef<str>, delegate: impl WinDelegate<Self> + 'static, ) -> Result<Self::WinHandle, Self::Error>

source§

fn log(level: LevelFilter)

source§

fn read(_path: impl AsRef<Path>) -> Option<Vec<u8>>

source§

impl WinHandle<Platform> for WinHandle

source§

fn with(&self, fun: impl FnMut(WinRef<'_>))

source§

impl<'a> WinRef<Platform> for WinRef<'a>

source§

fn raw(&self) -> Option<WinRaw>

source§

fn show(&self)

source§

fn close(&self)

source§

fn fresh(&self, reason: &str)

source§

fn size(&self) -> (u32, u32)

source§

fn density(&self) -> f32

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.