fui_core 0.18.0

Core library of FUI MVVM UI Framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use windowing_api::{CursorShape, Edge};

use crate::ControlObject;
use std::{cell::RefCell, rc::Rc};

pub trait WindowService {
    fn add_layer(&self, control: Rc<RefCell<dyn ControlObject>>);
    fn remove_layer(&self, control: &Rc<RefCell<dyn ControlObject>>);
    fn repaint(&self);

    fn set_cursor(&self, cursor_shape: CursorShape);
    fn start_system_move(&self);
    fn start_system_resize(&self, edges: Edge);
}