Skip to main content

CompositorObject

Trait CompositorObject 

Source
pub trait CompositorObject: Send + 'static {
    // Required methods
    fn is_active(&self) -> bool;
    fn initialize(&mut self, ctx: &Context<'_>);
    fn update_state(&mut self, ctx: &Context<'_>);
    fn send_command(&mut self, ctx: &Context<'_>, command: &CompositorCommand);
}

Required Methods§

Source

fn is_active(&self) -> bool

Source

fn initialize(&mut self, ctx: &Context<'_>)

Source

fn update_state(&mut self, ctx: &Context<'_>)

Source

fn send_command(&mut self, ctx: &Context<'_>, command: &CompositorCommand)

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<_ErasedPtr> CompositorObject for CompositorObject_TO<_ErasedPtr>
where Self: Send + 'static, _ErasedPtr: AsMutPtr<PtrTarget = ()>,