feat(gui): base project
This commit is contained in:
14
src/app_common/Model.zig
Normal file
14
src/app_common/Model.zig
Normal file
@@ -0,0 +1,14 @@
|
||||
const std = @import("std");
|
||||
const models = @import("../core/models.zig");
|
||||
const Tab = @import("../core/tab/tab.zig").Tab;
|
||||
const locked = @import("../core/sync.zig").locked;
|
||||
|
||||
running: bool = true,
|
||||
usage_number: locked(u16) = .{ .data = 0 },
|
||||
current_items: locked(?[]*models.Item) = .{ .data = null },
|
||||
current_items_allocator: std.heap.ArenaAllocator,
|
||||
tab: *Tab,
|
||||
|
||||
pub fn deinit(self: *@This()) void {
|
||||
self.current_items_allocator.deinit();
|
||||
}
|
||||
Reference in New Issue
Block a user