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.
- animated_
resize - Resizes the window with animation using the COSMIC animated resize protocol.
- animated_
resize_ with_ position - Resizes the window with animation and explicit position using the COSMIC animated resize protocol.
- 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.
- embed_
toplevel_ by_ pid - Embed a toplevel by process ID into this window’s surface.
- 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.
- get_
identity - Gets the complete compositor-authenticated identity for this window.
- is_
halo_ header_ overlay - Gets whether Kora’s Halo has a drag strip over the window’s top edge, so the window must keep its own controls clear of it.
- 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. - register_
special_ action - Registers the window to receive the device’s special key.
- remove_
embed - Remove an embedded surface.
- request_
app_ palette - Asks the shell to open its command palette for the window, as the window’s own shortcut for it. Ignored unless the window has keyboard focus.
- 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_
app_ commands - Publishes the window’s commands and recent items to the shell, replacing what it published before.
- set_
backdrop_ color - Sets a compositor-rendered backdrop color for the window.
- set_
blur - Enable or disable blur behind the window at runtime.
- set_
corner_ radius - Sets the corner radius for the window using the COSMIC corner radius protocol.
- set_
embed_ anchor - Set anchor-based positioning for an embedded surface.
- set_
embed_ corner_ radius - Set corner radius for an embedded surface.
- set_
embed_ geometry - Update the geometry of an embedded surface.
- set_
embed_ interactive - Set interactivity for an embedded surface.
- set_
icon - Changes the
Iconof the window. - set_
keyboard_ shortcuts_ inhibit - Inhibit (or release) the compositor’s global keyboard shortcuts for a 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.
- unregister_
special_ action - Stops the window receiving the device’s special key.