1 2 3 4 5 6 7
use std::{cell::RefCell, rc::Rc}; use crate::ControlObject; pub trait WindowService { fn add_layer(&mut self, control: Rc<RefCell<dyn ControlObject>>); fn remove_layer(&mut self, control: &Rc<RefCell<dyn ControlObject>>); }