1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::*;

#[derive(Clone)]
pub struct EmptyView {}

impl View for EmptyView {
    fn draw(&self, _id: ViewId, _args: &mut DrawArgs) {}
    fn layout(&self, _id: ViewId, _args: &mut LayoutArgs) -> LocalSize {
        [0.0, 0.0].into()
    }
}

impl private::Sealed for EmptyView {}