Clear
Clear fills its area with blank cells.
Smallest example
let overlay = Box::column()
.child(
Clear::new()
.layout(Layout { width: Length::Fill, height: Length::Fixed(2) })
.build()
)
.child(Pane::new().title("Modal").build())
.build();Use Clear when
- you are drawing overlays or modal-like layers
- you want to avoid old content showing through
Key builder methods
Clear::new().layout(...).style(...)
Last updated on
