pub struct EventLoop { /* private fields */ }Implementations§
Source§impl EventLoop
impl EventLoop
pub fn new( attributes: &PlatformSpecificEventLoopAttributes, ) -> Result<Self, EventLoopError>
pub fn window_target(&self) -> &dyn RootActiveEventLoop
pub fn run_app_on_demand<A: ApplicationHandler>( &mut self, app: A, ) -> Result<(), EventLoopError>
pub fn pump_app_events<A: ApplicationHandler>( &mut self, timeout: Option<Duration>, app: A, ) -> PumpStatus
Trait Implementations§
Source§impl EventLoopProvider for EventLoop
impl EventLoopProvider for EventLoop
Source§fn run_app<A: ApplicationHandler + 'static>(
self,
app: A,
) -> Result<(), EventLoopError>
fn run_app<A: ApplicationHandler + 'static>( self, app: A, ) -> Result<(), EventLoopError>
Run the event loop with the given application on the calling thread. Read more
Source§fn create_proxy(&self) -> CoreEventLoopProxy
fn create_proxy(&self) -> CoreEventLoopProxy
Creates an
EventLoopProxy that can be used to dispatch user events
to the main event loop, possibly from another thread.Source§fn owned_display_handle(&self) -> CoreOwnedDisplayHandle
fn owned_display_handle(&self) -> CoreOwnedDisplayHandle
Gets a persistent reference to the underlying platform display. Read more
Source§fn listen_device_events(&self, allowed: DeviceEvents)
fn listen_device_events(&self, allowed: DeviceEvents)
Change if or when
DeviceEvents are captured. Read moreSource§fn set_control_flow(&self, control_flow: ControlFlow)
fn set_control_flow(&self, control_flow: ControlFlow)
Sets the
ControlFlow.Source§fn create_custom_cursor(
&self,
custom_cursor: CustomCursorSource,
) -> Result<CoreCustomCursor, RequestError>
fn create_custom_cursor( &self, custom_cursor: CustomCursorSource, ) -> Result<CoreCustomCursor, RequestError>
Create custom cursor.
Auto Trait Implementations§
impl !RefUnwindSafe for EventLoop
impl !Send for EventLoop
impl !Sync for EventLoop
impl !UnwindSafe for EventLoop
impl Freeze for EventLoop
impl Unpin for EventLoop
impl UnsafeUnpin for EventLoop
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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
Mutably borrows from an owned value. Read more