1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
use crate::*;
pub struct EmptyView {}
impl View for EmptyView {
fn print(&self, _id: ViewId, _cx: &mut Context) {
println!("EmptyView");
}
fn draw(&self, _id: ViewId, _cx: &mut Context, _vger: &mut VGER) {}
fn layout(
&self,
_id: ViewId,
_sz: LocalSize,
_cx: &mut Context,
_vger: &mut VGER,
) -> LocalSize {
[0.0, 0.0].into()
}
fn hittest(
&self,
_id: ViewId,
_pt: LocalPoint,
_cx: &mut Context,
_vger: &mut VGER,
) -> Option<ViewId> {
None
}
}
impl private::Sealed for EmptyView {}