Expand description
Window identity and per-window state.
TeksiloWindowId is the opaque, Copy id allocated by the app-level
window manager and threaded through every public API that needs to
refer to a specific window (modal parents, cross-window focus,
close requests, …).
WindowState carries the reactive, signal-bound surface for a
single window — placement, title, size, position, focus, etc. App
code writes to these signals to push state to the OS; OS-originated
changes write back into the same signals via *_from_os setters
guarded by WindowStateInner::applying_from_os, so observers that
propagate writes to the OS do not re-loop.
WindowCommand is the private queue element produced by those
observers; the app-level window manager drains it once per tick and
translates each command into a winit call.
Re-exports§
pub use command::UserAttentionKind;pub use command::WindowCommand;pub use config::CloseBlockedCallback;pub use config::CloseGuard;pub use config::CloseResponse;pub use config::ModalConfig;pub use config::PostRootBuilder;pub use config::RootBuilder;pub use config::SizeToContent;pub use config::WindowConfig;pub use config::WindowRemovedCallback;pub use config::WindowRemovedEvent;pub use decorations::DecorationsMode;pub use icon::WindowIcon;pub use id::TeksiloWindowId;pub use menubar_dispatcher::MenubarAction;pub use menubar_dispatcher::MenubarDispatcher;pub use menubar_dispatcher::MenubarGuard;pub use menubar_dispatcher::MenubarKeyEvent;pub use menubar_dispatcher::MenubarReveal;pub use ops::NoopWindowOps;pub use ops::WindowOps;pub use placement::WindowPlacement;pub use state::WindowState;
Modules§
- command
- Private queue element produced by
WindowStateobservers. - config
- Configuration for creating a new window.
- decorations
- Window decoration mode.
- icon
- Window icon.
- id
- Opaque per-window identifier.
- menubar_
dispatcher - Window-level menubar key dispatcher.
- ops
- App-level window-operation sink.
- placement
- Window placement enum.
- state
- Per-window reactive state.