kozan_platform/request.rs
1//! Window configuration — settings for creating new windows.
2//!
3//! Pure data types. No windowing backend dependency.
4
5/// Configuration for creating a new window.
6///
7/// Passed to `App::window()` or sent via `PlatformHost::create_window()`.
8#[derive(Debug, Clone)]
9pub struct WindowConfig {
10 /// Window title.
11 pub title: String,
12 /// Initial width in logical pixels.
13 pub width: u32,
14 /// Initial height in logical pixels.
15 pub height: u32,
16 /// Whether the window can be resized by the user.
17 pub resizable: bool,
18 /// Whether the window has OS decorations (title bar, borders).
19 pub decorations: bool,
20}
21
22impl Default for WindowConfig {
23 fn default() -> Self {
24 Self {
25 title: String::from("Kozan"),
26 width: 800,
27 height: 600,
28 resizable: true,
29 decorations: true,
30 }
31 }
32}