Expand description
Configure the window of your application in native platforms.
Modules§
- icon
 - Attach an icon to the window of your application.
 - raw_
window_ handle  - Interoperability library for Rust Windowing applications.
 - screenshot
 - Take screenshots of a window.
 - settings
 - Configure your windows.
 
Structs§
- Icon
 - An window icon normally used for the titlebar or taskbar.
 - Id
 - The id of the window.
 - Platform
Specific  - The platform specific window settings of an application.
 - Screenshot
 - Data of a screenshot, captured with 
window::screenshot(). - Settings
 - The window settings of an application.
 
Enums§
- Action
 - An operation to be performed on some window.
 - Event
 - A window-related event.
 - Level
 - A window level groups windows with respect to their z-position.
 - Mode
 - The mode of a window-based application.
 - Position
 - The position of a window in a given screen.
 - Redraw
Request  - A request to redraw a window.
 - User
Attention  - The type of user attention to request.
 
Functions§
- change_
icon  - Changes the 
Iconof the window. - change_
level  - Changes the window 
Level. - change_
mode  - Changes the 
Modeof the window. - 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_
blur  - Disable the blur effect for a window.
 - disable_
mouse_ passthrough  - Disable mouse passthrough for the given window.
 - drag
 - Begins dragging the window while the left mouse button is held.
 - enable_
blur  - Enable the blur effect for a window.
 - 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_
latest  - Gets the window 
Idof the latest window. - get_
maximized  - Gets the maximized state of the window with the given 
Id. - get_
minimized  - Gets the minimized state of the window with the given 
Id. - get_
mode  - Gets the current 
Modeof the window. - get_
oldest  - Gets the window 
Idof the oldest window. - get_
position  - Gets the position in logical coordinates of the window with the given 
Id. - get_
raw_ id  - Gets an identifier unique to the window, provided by the underlying windowing system. This is
not to be confused with 
Id. - get_
scale_ factor  - Gets the scale factor of the window with the given 
Id. - get_
size  - Get the window’s size in logical dimensions.
 - maximize
 - Maximizes the window.
 - minimize
 - Minimizes the window.
 - move_to
 - Moves the window to the given logical coordinates.
 - 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. - request_
user_ attention  - 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 
UserAttentionfor details. - resize
 - Resizes the window to the given logical dimensions.
 - resize_
events  - Subscribes to all 
Event::Resizedoccurrences in the running application. - run_
with_ handle  - Runs the given callback with the native window handle for the window with the given id.
 - screenshot
 - Captures a 
Screenshotfrom the window. - show_
system_ menu  - Show the system menu at cursor position.
 - toggle_
decorations  - Toggles the window decorations.
 - toggle_
maximize  - Toggles the window to maximized or back.