mirror of
https://github.com/danbulant/cushy
synced 2026-06-18 22:11:34 +00:00
Add clear to WidgetList
This commit is contained in:
parent
5adb37d2f1
commit
e88b0d4027
1 changed files with 5 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue