[][src]Struct sixtyfps_corelib::eventloop::EventLoop

pub struct EventLoop { /* fields omitted */ }

This is the main structure to hold the event loop responsible for delegating events from the windowing system to the individual windows managed by the run-time, and then subsequently to the items. These are typically rendering and input events.

Implementations

impl EventLoop[src]

pub fn new() -> Self[src]

Returns a new instance of the event loop, backed by a winit eventloop.

pub fn run(self)[src]

Runs the event loop and renders the items in the provided component in its own window.

pub fn get_winit_event_loop(&self) -> &EventLoop<CustomEvent>[src]

Returns a reference to the backing winit event loop.

Auto Trait Implementations

impl !RefUnwindSafe for EventLoop

impl !Send for EventLoop

impl !Sync for EventLoop

impl Unpin for EventLoop

impl !UnwindSafe for EventLoop

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, 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.