refactor: add renderer abstraction layer
This commit is contained in:
parent
9ff63fbed5
commit
b15fa47f30
47 changed files with 1419 additions and 1023 deletions
|
@ -1,5 +1,4 @@
|
|||
const std = @import("std");
|
||||
const nc = @import("notcurses");
|
||||
const tp = @import("thespian");
|
||||
const cbor = @import("cbor");
|
||||
const tracy = @import("tracy");
|
||||
|
@ -7,6 +6,8 @@ const root = @import("root");
|
|||
const location_history = @import("location_history");
|
||||
const project_manager = @import("project_manager");
|
||||
|
||||
const Plane = @import("renderer").Plane;
|
||||
|
||||
const tui = @import("tui.zig");
|
||||
const command = @import("command.zig");
|
||||
const Box = @import("Box.zig");
|
||||
|
@ -21,7 +22,7 @@ const Self = @This();
|
|||
const Commands = command.Collection(cmds);
|
||||
|
||||
a: std.mem.Allocator,
|
||||
plane: nc.Plane,
|
||||
plane: Plane,
|
||||
widgets: *WidgetList,
|
||||
widgets_widget: Widget,
|
||||
floating_views: WidgetStack,
|
||||
|
@ -43,7 +44,7 @@ const NavState = struct {
|
|||
matches: usize = 0,
|
||||
};
|
||||
|
||||
pub fn create(a: std.mem.Allocator, n: nc.Plane) !Widget {
|
||||
pub fn create(a: std.mem.Allocator, n: Plane) !Widget {
|
||||
try project_manager.open_cwd();
|
||||
const self = try a.create(Self);
|
||||
self.* = .{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue