mirror of
https://github.com/danbulant/cushy
synced 2026-07-06 11:40:37 +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);
|
self.ordered.truncate(length);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Clear the list
|
||||||
|
pub fn clear(&mut self) {
|
||||||
|
self.ordered.clear();
|
||||||
|
}
|
||||||
|
|
||||||
/// Returns `self` as a vertical [`Stack`] of rows.
|
/// Returns `self` as a vertical [`Stack`] of rows.
|
||||||
#[must_use]
|
#[must_use]
|
||||||
pub fn into_rows(self) -> Stack {
|
pub fn into_rows(self) -> Stack {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue