[][src]Struct riddle_platform_winit::PlatformSystemHandle

pub struct PlatformSystemHandle { /* fields omitted */ }

Implementations

impl PlatformSystemHandle[src]

pub fn downgrade(this: &PlatformSystemHandle) -> PlatformSystemWeak[src]

Downgrade this handle to a weak handle

pub fn eq(a: &PlatformSystemHandle, b: &PlatformSystemHandle) -> bool[src]

Test whether two handles point to the same location in memory

Methods from Deref<Target = PlatformSystem>

pub fn event_pub(&self) -> &EventPub<PlatformEvent>[src]

Get the PlatformEvent publisher, so that other systems can consume events.

Example

let rdl =  RiddleLib::new()?;
let subscriber: EventSub<PlatformEvent> = EventSub::new();

// Attach subscriber to the platform event stream
rdl.state().platform().event_pub().attach(&subscriber);

pub fn lookup_window(&self, window_id: WindowId) -> Option<WindowHandle>[src]

Get a WindowHandle associated with a WindowId, if one exists.

Example

let rdl =  RiddleLib::new()?;
let window = WindowBuilder::new().build(rdl.context())?;
let window_id = window.id();
assert!(WindowHandle::eq(&window,
       &rdl.state().platform().lookup_window(window_id).unwrap()));

Trait Implementations

impl Clone for PlatformSystemHandle[src]

impl Deref for PlatformSystemHandle[src]

type Target = PlatformSystem

The resulting type after dereferencing.

Auto Trait Implementations

impl RefUnwindSafe for PlatformSystemHandle

impl Send for PlatformSystemHandle

impl Sync for PlatformSystemHandle

impl Unpin for PlatformSystemHandle

impl UnwindSafe for PlatformSystemHandle

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.