Skip to main content

fui_core/services/
window_service.rs

1use windowing_api::{CursorShape, Edge};
2
3use crate::ControlObject;
4use std::rc::Rc;
5
6pub trait WindowService {
7    fn add_layer(&self, control: Rc<dyn ControlObject>);
8    fn remove_layer(&self, control: &Rc<dyn ControlObject>);
9    fn repaint(&self);
10
11    fn set_cursor(&self, cursor_shape: CursorShape);
12    fn start_system_move(&self);
13    fn start_system_resize(&self, edges: Edge);
14}