WIP: use viewport to allow sizes of scroll to extend further than renderable screen

This commit is contained in:
2025-02-12 22:33:03 +01:00
parent 98031dbd1a
commit bbe6f4741e
9 changed files with 119 additions and 51 deletions

View File

@@ -1,10 +1,10 @@
pub const Size = @This();
pub const Size = packed struct {
anchor: Position = .{},
cols: u16 = 0,
rows: u16 = 0,
};
pub const Position = struct {
pub const Position = packed struct {
col: u16 = 0,
row: u16 = 0,
};
anchor: Position = .{},
cols: u16,
rows: u16,