ref(event): split Size into two Points (one for the size and one for the anchor / origin)
All checks were successful
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 39s

This commit is contained in:
2025-03-04 00:04:56 +01:00
parent 91ac6241f4
commit 591b990087
23 changed files with 477 additions and 459 deletions

View File

@@ -6,7 +6,7 @@ const terminal = @import("terminal.zig");
const Key = input.Key;
const Mouse = input.Mouse;
const Size = @import("size.zig").Size;
const Point = @import("point.zig").Point;
/// System events available to every `zterm.App`
pub const SystemEvent = union(enum) {
@@ -21,8 +21,8 @@ pub const SystemEvent = union(enum) {
/// associated error message
msg: []const u8,
},
/// Resize event emitted by the terminal to derive the `Size` of the current terminal the application is rendered in
resize: Size,
/// Size event emitted by the terminal to derive the `Size` of the current terminal the application is rendered in
size: Point,
/// Input key event received from the user
key: Key,
/// Mouse input event