pub struct Window<UserEventType = ()> where
    UserEventType: 'static, 
{ /* private fields */ }
Expand description

Struct representing a window.

Implementations

Create a new window, centered in the middle of the primary monitor.

Create a new window, in fullscreen borderless mode on the primary monitor.

Create a new window with the specified options.

Create a new window with the specified options, with support for user events. See window::UserEventSender.

Creates a window::UserEventSender, which can be used to post custom events to this event loop from another thread.

If calling this, specify the type of the event data using Window::<YourTypeHere>::new_with_user_events().

See UserEventSender::send_event, WindowHandler::on_user_event.

Run the window event loop, with the specified callback handler.

Once the event loop finishes running, the entire app will terminate, even if other threads are still running. See window::WindowHelper::terminate_loop().

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.