logo

Module bevy::window[][src]

Expand description

Configuration, creation, and management of one or more windows.

Modules

Structs

An event that indicates a window should be closed.

An event that indicates that a new window should be created.

This wrapper exist to enable safely passing a [RawWindowHandle] across threads. Extracting the handle is still an unsafe operation, so the caller must still validate that using the raw handle is safe for a given context.

An event that is sent whenever a window receives a character from the OS or underlying system.

An operating system window that can present content and receive user input.

An event that indicates a window’s OS-reported scale factor has changed.

An event that is sent whenever a close was requested for a window. For example: when the “close” button is pressed on a window.

An event that is sent whenever a new window is created.

An event that indicates a window has received or lost focus.

An event that is sent when a window is repositioned in physical pixels.

The size limits on a window. These values are measured in logical pixels, so the user’s scale factor does affect the size limits on the window. Please note that if the window is resizable, then when the window is maximized it may have a size outside of these limits. The functionality required to disable maximizing is not yet exposed by winit.

A window event that is sent whenever a windows logical size has changed

An event that indicates a window’s scale factor has changed.

Enums

The icon to display for a window’s cursor

Events related to files being dragged and dropped on a window.

Defines the way a window is displayed

Functions