Expand description
Configure the window of your application in native platforms.
Modules§
- Attach an icon to the window of your application.
- Interoperability library for Rust Windowing applications.
- Take screenshots of a window.
- Configure your windows.
Structs§
- An window icon normally used for the titlebar or taskbar.
- The id of the window.
- Data of a screenshot, captured with
window::screenshot()
. - The window settings of an application.
Enums§
- An operation to be performed on some window.
- A window-related event.
- A window level groups windows with respect to their z-position.
- The mode of a window-based application.
- The position of a window in a given screen.
- A request to redraw a window.
- The type of user attention to request.
Functions§
- Changes the
Icon
of the window. - Changes the window
Level
. - Changes the
Mode
of the window. - Closes the window with
id
. - Subscribes to all
Event::Closed
occurrences in the running application. - Subscribes to all
Event::CloseRequested
occurences in the running application. - Disable mouse passthrough for the given window.
- Begins dragging the window while the left mouse button is held.
- Enables mouse passthrough for the given window.
- Subscribes to all window events of the running application.
- Subscribes to the frames of the window of the running application.
- Brings the window to the front and sets input focus. Has no effect if the window is already in focus, minimized, or not visible.
- Gets the window
Id
of the latest window. - Gets the maximized state of the window with the given
Id
. - Gets the minimized state of the window with the given
Id
. - Gets the current
Mode
of the window. - Gets the window
Id
of the oldest window. - Gets the position in logical coordinates of the window with the given
Id
. - Gets an identifier unique to the window, provided by the underlying windowing system. This is not to be confused with
Id
. - Gets the scale factor of the window with the given
Id
. - Get the window’s size in logical dimensions.
- Maximizes the window.
- Minimizes the window.
- Moves the window to the given logical coordinates.
- Subscribes to all
Event::Closed
occurrences in the running application. - Request user attention to the window. This has no effect if the application is already focused. How requesting for user attention manifests is platform dependent, see
UserAttention
for details. - Resizes the window to the given logical dimensions.
- Subscribes to all
Event::Resized
occurrences in the running application. - Runs the given callback with the native window handle for the window with the given id.
- Captures a
Screenshot
from the window. - Show the system menu at cursor position.
- Toggles the window decorations.
- Toggles the window to maximized or back.