[−][src]Struct riddle_platform_winit::PlatformSystemHandle
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]
fn clone(&self) -> PlatformSystemHandle[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Deref for PlatformSystemHandle[src]
type Target = PlatformSystem
The resulting type after dereferencing.
fn deref(&self) -> &PlatformSystem[src]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
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, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,