Expand description
Build window-based GUI applications.
Re-exports§
pub use raw_window_handle;
Enums§
- Action
- An operation to be performed on some window.
Traits§
- Window
- A window managed by iced.
Functions§
- allow_
automatic_ tabbing - Sets whether the system can automatically organize windows into tabs.
- close
- Closes the window with
id. - close_
events - Subscribes to all
Event::Closedoccurrences in the running application. - close_
requests - Subscribes to all
Event::CloseRequestedoccurrences in the running application. - disable_
mouse_ passthrough - Disables mouse passthrough for the given window.
- drag
- Begins dragging the window while the left mouse button is held.
- drag_
resize - Begins resizing the window while the left mouse button is held.
- enable_
mouse_ passthrough - Enables mouse passthrough for the given window.
- events
- Subscribes to all window events of the running application.
- frames
- Subscribes to the frames of the window of the running application.
- gain_
focus - Brings the window to the front and sets input focus. Has no effect if the window is already in focus, minimized, or not visible.
- is_
maximized - Gets the maximized state of the window with the given
Id. - is_
minimized - Gets the minimized state of the window with the given
Id. - latest
- Gets the window
Idof the latest window. - maximize
- Maximizes the window.
- minimize
- Minimizes the window.
- mode
- Gets the current
Modeof the window. - monitor_
size - Gets the logical dimensions of the monitor containing the window with the given
Id. - move_to
- Moves the window to the given logical coordinates.
- oldest
- Gets the window
Idof the oldest window. - open
- Opens a new window with the given
Settings; producing theIdof the new window on completion. - open_
events - Subscribes to all
Event::Openedoccurrences in the running application. - position
- Gets the position in logical coordinates of the window with the given
Id. - raw_id
- Gets an identifier unique to the window, provided by the underlying windowing system. This is
not to be confused with
Id. - request_
user_ attention - Requests 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
UserAttentionfor details. - resize
- Resizes the window to the given logical dimensions.
- resize_
events - Subscribes to all
Event::Resizedoccurrences in the running application. - run
- Runs the given callback with a reference to the
Windowwith the givenId. - scale_
factor - Gets the scale factor of the window with the given
Id. - screenshot
- Captures a
Screenshotfrom the window. - set_
icon - Changes the
Iconof the window. - set_
level - Changes the window
Level. - set_
max_ size - Set the inner maximum size of the window.
- set_
min_ size - Set the inner minimum size of the window.
- set_
mode - Changes the
Modeof the window. - set_
resizable - Set the window to be resizable or not.
- set_
resize_ increments - Set the window size increment.
- show_
system_ menu - Shows the system menu at cursor position.
- size
- Gets the window size in logical dimensions.
- toggle_
decorations - Toggles the window decorations.
- toggle_
maximize - Toggles the window to maximized or back.