Skip to main content

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

Create the window. Read more
Source§

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

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§

fn fetch_data_transfer( &self, id: DataTransferId, type_: &(dyn TransferType + 'static), ) -> Result<AsyncRequestSerial, TransferError>

Request to fetch a type from a data transfer. Read more
Source§

fn data_transfer( &self, id: DataTransferId, ) -> Result<Box<dyn DataTransfer>, TransferError>

Get a data transfer by its ID. Read more
Source§

fn set_valid_dnd_actions( &self, id: DataTransferId, actions: &[DndAction], ) -> Result<(), TransferError>

Set a given set of DndActions as the valid actions for the given DataTransferId, if the transfer ID is from an incoming drag-and-drop operation. Read more
Source§

fn start_drag( &self, source: WindowId, send_data: Box<dyn DataTransferSend>, actions: &[DndAction], icon: Option<DragIcon>, ) -> Result<DataTransferId, TransferError>

Initiate a new drag-and-drop operation. Read more
Source§

fn clipboard(&self) -> Result<Option<DataTransferId>, TransferError>

Get the current clipboard contents as a data transfer, or None if the clipboard is empty. Read more
Source§

fn set_clipboard( &self, send_data: Box<dyn DataTransferSend>, ) -> Result<(), TransferError>

Set the clipboard contents. Read more
Source§

fn primary_selection_ext(&self) -> Option<&dyn PrimarySelectionExt>

Access the primary selection platform extension, where available. Read more
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 = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

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