Clear
Clear 会把自己的区域填成空白。
最小示例
let overlay = Box::column()
.child(
Clear::new()
.layout(Layout { width: Length::Fill, height: Length::Fixed(2) })
.build()
)
.child(Pane::new().title("Modal").build())
.build();什么时候用
- 你在做 overlay 或 modal
- 你不想让旧内容透出来
Last updated on
