diff options
Diffstat (limited to 'core/surface.zig')
| -rw-r--r-- | core/surface.zig | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/core/surface.zig b/core/surface.zig index 6e05f25f..653abd82 100644 --- a/core/surface.zig +++ b/core/surface.zig @@ -147,6 +147,10 @@ pub const MAX_REGIONS = 1 + MAX_PANES * (4 + panes.Pane.Notices.max) + pardes.MA /// to a detached session draws them from the frame alone. pub const RailTick = struct { owner: u8, at: u16, current: bool }; pub const max_rail_ticks = 4096; +/// A pinned change's lane on a body row (jj.paint): a pixel shell draws +/// it as a strip in gutter cell `x`, at its `level`'s place (sample A of +/// the ruled design: each a third of a cell wide, half that of air between). +pub const Lane = struct { x: u16, y: u16, level: u8, rgb: [3]u8 }; pub const rail_tick_scale = 1024; pub const Chrome = struct { @@ -256,6 +260,12 @@ pub const Surface = struct { /// rail's track, the pane's current match's marked. rail_ticks: [max_rail_ticks]RailTick = undefined, nrail_ticks: u16 = 0, + /// The lanes of the changes pinned on the bodies, for a pixel shell + /// (in a terminal they are glyphs in the cells): the frame's own + /// surface's, gpa's, as `placements` (a list, not an array: a frame + /// makes many a temporary Surface, and a safe build fills an array's + /// `undefined` in each). + lanes: std.ArrayList(Lane) = .empty, chrome: Chrome = .{}, cells: []Cell = &.{}, /// bar: draw an insert-style thin cursor instead of the block |
