ActiveEventLoop

Struct ActiveEventLoop 

Source
pub struct ActiveEventLoop { /* private fields */ }

Trait Implementations§

Source§

impl ActiveEventLoop for ActiveEventLoop

Source§

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 create_window( &self, window_attributes: WindowAttributes, ) -> Result<Box<dyn CoreWindow>, RequestError>

Create the window. Read more
Source§

fn create_custom_cursor( &self, _source: CustomCursorSource, ) -> Result<CustomCursor, RequestError>

Create custom cursor. Read more
Source§

fn available_monitors(&self) -> Box<dyn Iterator<Item = CoreMonitorHandle>>

Returns the list of all the monitors available on the system. Read more
Source§

fn primary_monitor(&self) -> Option<CoreMonitorHandle>

Returns the primary monitor of the system. Read more
Source§

fn system_theme(&self) -> Option<Theme>

Returns the current system theme. Read more
Source§

fn listen_device_events(&self, _allowed: DeviceEvents)

Change if or when DeviceEvents are captured. Read more
Source§

fn set_control_flow(&self, control_flow: ControlFlow)

Sets the ControlFlow.
Source§

fn control_flow(&self) -> ControlFlow

Gets the current ControlFlow.
Source§

fn exit(&self)

Stop the event loop. Read more
Source§

fn exiting(&self) -> bool

Returns whether the ActiveEventLoop is about to stop. Read more
Source§

fn owned_display_handle(&self) -> CoreOwnedDisplayHandle

Gets a persistent reference to the underlying platform display. Read more
Source§

fn rwh_06_handle(&self) -> &dyn HasDisplayHandle

Get the raw-window-handle handle.
Source§

impl Debug for ActiveEventLoop

Source§

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

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

impl HasDisplayHandle for ActiveEventLoop

Source§

fn display_handle(&self) -> Result<DisplayHandle<'_>, HandleError>

Get a handle to the display controller of the windowing system.

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> HasRawDisplayHandle for T
where T: HasDisplayHandle + ?Sized,

Source§

fn raw_display_handle(&self) -> Result<RawDisplayHandle, HandleError>

👎Deprecated: Use HasDisplayHandle instead
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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>,

Source§

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

Source§

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.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more