Module cosmic::iced_runtime::window
source · Expand description
Build window-based GUI applications.
Modules§
- Interoperability library for Rust Windowing applications.
- Take screenshots of a window.
Structs§
- Data of a screenshot, captured with
window::screenshot()
.
Enums§
- An operation to be performed on some window.
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
occurrences in the running application. - Disable the blur effect for a window.
- Disable mouse passthrough for the given window.
- Begins dragging the window while the left mouse button is held.
- Enable the blur effect for a window.
- 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::Opened
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.