Trait cosmic::iced_winit::graphics::Layer
source · pub trait Layer: Default {
// Required methods
fn with_bounds(bounds: Rectangle) -> Self;
fn flush(&mut self);
fn resize(&mut self, bounds: Rectangle);
fn reset(&mut self);
}
Expand description
A layer of graphical primitives.
Layers normally dictate a set of primitives that are rendered in a specific order.
Required Methods§
sourcefn with_bounds(bounds: Rectangle) -> Self
fn with_bounds(bounds: Rectangle) -> Self
Creates a new Layer
with the given bounds.
Object Safety§
This trait is not object safe.