Skip to main content

Module window

Module window 

Source
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::Closed occurrences in the running application.
close_requests
Subscribes to all Event::CloseRequested occurrences 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 Id of the latest window.
maximize
Maximizes the window.
minimize
Minimizes the window.
mode
Gets the current Mode of 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 Id of the oldest window.
open
Opens a new window with the given Settings; producing the Id of the new window on completion.
open_events
Subscribes to all Event::Opened occurrences 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 UserAttention for details.
resize
Resizes the window to the given logical dimensions.
resize_events
Subscribes to all Event::Resized occurrences in the running application.
run
Runs the given callback with a reference to the Window with the given Id.
scale_factor
Gets the scale factor of the window with the given Id.
screenshot
Captures a Screenshot from 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 Icon of 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 Mode of 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.