diff options
Diffstat (limited to 'core/panes.zig')
| -rw-r--r-- | core/panes.zig | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/core/panes.zig b/core/panes.zig index 08d91df5..62814227 100644 --- a/core/panes.zig +++ b/core/panes.zig @@ -36,7 +36,17 @@ pub const Pane = struct { // A picture's memory is its own allocator's (a dump loaded makes // it there). .alloc = .{ .{ "addon", "image" }, .{ "pdf", "image" }, .{ "terminal", "terminal" } }, + // Slots of the session's (walk.zig `.index`): a view's, a pane's, + // each looked at before it is used (one gone since is no error). + .index = .{ .{ "sized_by", Pardes, "views" }, .{ "prompt_view", Pardes, "views" }, .{ "search_pane", Pardes, "panes" } }, + // The tag's prefix as it was placed: one its room holds. + .place = .{.{ "tag_lead", "leadRoom" }}, }; + /// The room a tag's computed prefix is made in, each step (Pardes.sync). + pub const prefix_room = 32 * 1024; + pub fn leadRoom(_: *const Pane) usize { + return prefix_room; + } /// A pane's slot in `Pardes.panes`, as it crosses the core's edge: an /// entry's argument or answer, an event's, an effect's, a host call's. /// A type of its own, so a view's slot (`View.Id`) is not taken for |
