use crate::drawing::path_for_corner_knockouts;
use crate::render::{BlendMode, Context as RenderContext, FillRule, Layer, Raster};
use crate::{Coord, Rect, Size};
pub use crate::scene::scene::SceneOrder;
pub mod facets;
pub mod group;
pub mod layout;
pub mod scene;
struct Rendering {
size: Size,
}
impl Rendering {
fn new() -> Rendering {
Rendering { size: Size::zero() }
}
}
fn raster_for_corner_knockouts(
bounds: &Rect,
corner_radius: Coord,
render_context: &mut RenderContext,
) -> Raster {
let path = path_for_corner_knockouts(bounds, corner_radius, render_context);
let mut raster_builder = render_context.raster_builder().expect("raster_builder");
raster_builder.add(&path, None);
raster_builder.build()
}
pub trait LayerGroup {
fn clear(&mut self);
fn insert(&mut self, order: SceneOrder, layer: Layer);
fn remove(&mut self, order: SceneOrder);
}