pub trait LayerCompositor {
// Required methods
fn begin_frame(&mut self, input: &CompositorInputConfig<'_>) -> bool;
fn bind_layer(&mut self, index: usize, dirty_rects: &[DeviceIntRect]);
fn present_layer(&mut self, index: usize, dirty_rects: &[DeviceIntRect]);
fn add_surface(
&mut self,
index: usize,
transform: CompositorSurfaceTransform,
clip_rect: DeviceIntRect,
image_rendering: ImageRendering,
rounded_clip_rect: DeviceIntRect,
rounded_clip_radii: ClipRadius,
);
fn end_frame(&mut self);
fn get_window_properties(&self) -> WindowProperties;
}Required Methods§
fn begin_frame(&mut self, input: &CompositorInputConfig<'_>) -> bool
fn bind_layer(&mut self, index: usize, dirty_rects: &[DeviceIntRect])
fn present_layer(&mut self, index: usize, dirty_rects: &[DeviceIntRect])
fn add_surface( &mut self, index: usize, transform: CompositorSurfaceTransform, clip_rect: DeviceIntRect, image_rendering: ImageRendering, rounded_clip_rect: DeviceIntRect, rounded_clip_radii: ClipRadius, )
fn end_frame(&mut self)
fn get_window_properties(&self) -> WindowProperties
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".