pub struct Compositor { /* private fields */ }Expand description
Compositor state
Implementations§
Source§impl Compositor
impl Compositor
Source§impl Compositor
impl Compositor
Sourcepub fn create_window(&mut self, rect: Rect, title: &'static str) -> WindowId
pub fn create_window(&mut self, rect: Rect, title: &'static str) -> WindowId
Create a new window
Sourcepub fn destroy_window(&mut self, id: WindowId)
pub fn destroy_window(&mut self, id: WindowId)
Destroy a window
Sourcepub fn get_window(&self, id: WindowId) -> Option<&Window>
pub fn get_window(&self, id: WindowId) -> Option<&Window>
Get window
Sourcepub fn focus_window(&mut self, id: WindowId)
pub fn focus_window(&mut self, id: WindowId)
Focus window
Sourcepub fn focused_window(&self) -> Option<WindowId>
pub fn focused_window(&self) -> Option<WindowId>
Get the currently focused window ID.
Sourcepub fn window_count(&self) -> usize
pub fn window_count(&self) -> usize
Number of windows.