Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions src/window/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,21 @@ impl Window {
Window::do_new(title, true, DEFAULT_WIDTH, DEFAULT_HEIGHT, None).await
}

/// Creates a new hidden window with custom dimensions.
///
/// The window is created but not displayed. Use [`show()`](Self::show) to make it visible.
///
/// # Arguments
/// * `title` - The window title
/// * `width` - The window width in pixels
/// * `height` - The window height in pixels
///
/// # Returns
/// A new `Window` instance
pub async fn new_hidden_with_size(title: &str, width: u32, height: u32) -> Window {
Window::do_new(title, true, width, height, None).await
}

/// Creates a new visible window with default settings.
///
/// The window is created and immediately visible with a default size of 800x600 pixels.
Expand Down