summaryrefslogtreecommitdiff
path: root/src/surface.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/surface.zig')
-rw-r--r--src/surface.zig12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/surface.zig b/src/surface.zig
index 7256ecc1..22a71a27 100644
--- a/src/surface.zig
+++ b/src/surface.zig
@@ -370,6 +370,10 @@ pub const Region = struct {
/// focus (Lift, on a spring), a notice's while Lift is on. A pixel shell
/// casts a soft shadow from it; the tier it is drawn in never changes.
lift: f32 = 0,
+ /// A body's view: the first line it shows (a file's scroll, a
+ /// terminal's grid offset), for what a pixel shell moves with the text
+ /// (G13's parallax).
+ line: i32 = 0,
/// Cells the column-move rail takes off the right edge while it runs
/// there: layers and pixel shells stop short of them, the grid does not.
clip: u16 = 0,
@@ -448,8 +452,12 @@ pub const Chrome = struct {
decor_title_px: u8 = 2,
name_ink: [3]u8 = .{ 0, 0, 0 },
active_name_ink: [3]u8 = .{ 0, 0, 0 },
- /// G9: a pixel shell glows round the body's selection (SelectionGlow).
- selection_glow: u8 = 0,
+ /// A pixel shell's small effects: bit 0 a glow round the body's
+ /// selection (G9, SelectionGlow), bit 1 one under the word a look-hover
+ /// would open (G11, HoverGlow), bit 2 the bodies' edge shade (G12,
+ /// Occlusion), bit 3 the page pattern's parallax (G13, Parallax), bit 4
+ /// changed text's afterglow (G14, Afterglow).
+ fx: u8 = 0,
};
/// The canonical interface: what a frame of pardes IS. The tty shell writes