feat(gui): base project

This commit is contained in:
2025-05-08 10:13:59 +02:00
parent 537e42ef5b
commit 277f87b8bb
7 changed files with 314 additions and 82 deletions

14
src/app_common/Model.zig Normal file
View 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();
}