diff options
Diffstat (limited to 'core/Core.zig')
| -rw-r--r-- | core/Core.zig | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/core/Core.zig b/core/Core.zig index 1894247d..ff0a84ac 100644 --- a/core/Core.zig +++ b/core/Core.zig @@ -87,7 +87,13 @@ const Pardes = @This(); /// One client's view of the session (views.zig): its screen and layout, /// its focus, its pointer and gestures, its jumps, its key prefixes. pub const View = struct { - pub const replica = .{ .len = .{ .{ "leader_keys", "leader_n" }, .{ "col_x", "ncol" }, .{ "col_w", "ncol" } } }; + /// Its geometry (`rects`, `col_x`, `col_w`) is the layout pass's over + /// its columns and screen: never dumped, laid out again at a load + /// (dump.afterLoad), as a resize lays it out. + pub const replica = .{ + .len = .{ .{ "leader_keys", "leader_n" }, .{ "cols", "ncol" }, .{ "col_x", "ncol" }, .{ "col_w", "ncol" } }, + .derived = .{ "rects", "col_x", "col_w" }, + }; /// A view's slot in `Pardes.views`, as it crosses the core's edge: an /// entry's argument or answer, the wire's welcome. A type of its own, /// so a pane's slot (`Pane.Id`) is not taken for it; the core's own |
