Skip to main content

WindowService

Trait WindowService 

Source
pub trait WindowService {
    // Required methods
    fn add_layer(&self, control: Rc<dyn ControlObject>);
    fn remove_layer(&self, control: &Rc<dyn ControlObject>);
    fn repaint(&self);
    fn set_cursor(&self, cursor_shape: CursorShape);
    fn start_system_move(&self);
    fn start_system_resize(&self, edges: Edge);
}

Required Methods§

Source

fn add_layer(&self, control: Rc<dyn ControlObject>)

Source

fn remove_layer(&self, control: &Rc<dyn ControlObject>)

Source

fn repaint(&self)

Source

fn set_cursor(&self, cursor_shape: CursorShape)

Source

fn start_system_move(&self)

Source

fn start_system_resize(&self, edges: Edge)

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§