summaryrefslogtreecommitdiff
path: root/src/fs.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-09-27 22:16:35 -0300
committerGabriel Schneider <[email protected]>2026-10-01 00:12:14 -0300
commit9660151c94e988620c79b40a0326057b9854c081 (patch)
tree521248762c58ac4187b6a7e1179d963577c2680d /src/fs.zig
parentf1025c18a78c02ebf157f0e3a5d9552605c082e8 (diff)
downloadpardes-9660151c94e988620c79b40a0326057b9854c081.tar.gz
pardes-9660151c94e988620c79b40a0326057b9854c081.zip
Move the mouse out of pardes.zig into mouse.zig
Pure move, no behaviour change: handleMouse with dragUpdate, dragRelease, seamIdxAt, reportGesture, gestureRange, dispatchPointerBuiltin, mirrorTtySelection and chordCutPaste, the pointer hit helpers (bodyHitForPane, sameTagCell, tagColumn, sameBodyCell), chromeTarget with ChromeTarget, paneAt, the Drag state type with clampBorderCol/Row, the seam test fixtures and thirteen pointer and drag tests go verbatim to mouse.zig. The methods become free functions taking `p: *Pardes`; their 36 call sites change from `p.handleMouse(..)` to `mouse.handleMouse(p, ..)`, including web.zig's chromeTarget and macos.zig's paneAt. The Mouse event type stays in pardes.zig with the rest of the event vocabulary. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/fs.zig')
-rw-r--r--src/fs.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fs.zig b/src/fs.zig
index 5fbd3cd8..13fce858 100644
--- a/src/fs.zig
+++ b/src/fs.zig
@@ -42,6 +42,7 @@ const source_files = [_]Source{
.{ .path = "src/body_layer.zig", .contents = @embedFile("body_layer.zig") },
.{ .path = "src/edit.zig", .contents = @embedFile("edit.zig") },
.{ .path = "src/normal.zig", .contents = @embedFile("normal.zig") },
+ .{ .path = "src/mouse.zig", .contents = @embedFile("mouse.zig") },
.{ .path = "src/File.zig", .contents = @embedFile("File.zig") },
.{ .path = "src/Output.zig", .contents = @embedFile("Output.zig") },
.{ .path = "src/Mini.zig", .contents = @embedFile("Mini.zig") },