raise window owner
Intrepid/Prometeu/Runtime/pipeline/head This commit looks good

This commit is contained in:
2026-05-15 11:26:41 +01:00
parent 1663ab5413
commit a8e3040d1e
13 changed files with 107 additions and 40 deletions
@@ -1,14 +1,21 @@
use crate::os::SystemOS;
use crate::windows::{Window, WindowId, WindowOwner};
use prometeu_hal::color::Color;
use prometeu_hal::window::{Rect, Window, WindowId};
use prometeu_hal::primitives::Rect;
pub struct WindowFacade<'a> {
pub(in crate::os) os: &'a mut SystemOS,
}
impl<'a> WindowFacade<'a> {
pub fn add_window(&mut self, title: String, viewport: Rect, color: Color) -> WindowId {
self.os.window_manager.add_window(title, viewport, color)
pub fn add_window(
&mut self,
title: String,
owner: WindowOwner,
viewport: Rect,
color: Color,
) -> WindowId {
self.os.window_manager.add_window(title, owner, viewport, color)
}
pub fn set_focus(&mut self, id: WindowId) {