1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// SPDX-License-Identifier: MPL-2.0
// SPDX-FileCopyrightText: 2026 FernTech
//! 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.
pub mod command;
pub mod config;
pub mod decorations;
pub mod icon;
pub mod id;
pub mod menubar_dispatcher;
pub mod ops;
pub mod placement;
pub mod state;
pub use command::{UserAttentionKind, WindowCommand};
pub use config::{
CloseBlockedCallback, CloseGuard, CloseResponse, ModalConfig, PostRootBuilder, RootBuilder,
SizeToContent, WindowConfig, WindowRemovedCallback, WindowRemovedEvent,
};
pub use decorations::DecorationsMode;
pub use icon::WindowIcon;
pub use id::TeksiloWindowId;
pub use menubar_dispatcher::{
MenubarAction, MenubarDispatcher, MenubarGuard, MenubarKeyEvent, MenubarReveal,
};
pub use ops::{NoopWindowOps, WindowOps};
pub use placement::WindowPlacement;
pub use state::WindowState;