feat(tabs): start work on a tabbar widget
This commit is contained in:
parent
1d947ab499
commit
d7b48b40f1
7 changed files with 196 additions and 2 deletions
|
|
@ -97,6 +97,12 @@ pub fn remove(self: *Self, w: Widget) void {
|
|||
self.widgets.orderedRemove(i).widget.deinit(self.allocator);
|
||||
}
|
||||
|
||||
pub fn remove_all(self: *Self) void {
|
||||
for (self.widgets.items) |*w|
|
||||
w.widget.deinit(self.allocator);
|
||||
self.widgets.clearRetainingCapacity();
|
||||
}
|
||||
|
||||
pub fn empty(self: *const Self) bool {
|
||||
return self.widgets.items.len == 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue