Add clear to WidgetList

This commit is contained in:
Dominic Clifton 2024-10-19 22:41:12 +02:00
parent 5adb37d2f1
commit e88b0d4027

View file

@ -2160,6 +2160,11 @@ impl WidgetList {
self.ordered.truncate(length);
}
/// Clear the list
pub fn clear(&mut self) {
self.ordered.clear();
}
/// Returns `self` as a vertical [`Stack`] of rows.
#[must_use]
pub fn into_rows(self) -> Stack {