core: send mouse hover point

This commit is contained in:
Mitchell Hashimoto
2023-11-29 14:39:50 -08:00
parent 3a599ec7df
commit 8fcf3f08dd
3 changed files with 27 additions and 11 deletions

View File

@@ -29,7 +29,12 @@ preedit: ?Preedit = null,
/// need about the mouse.
mouse: Mouse = .{},
pub const Mouse = struct {};
pub const Mouse = struct {
/// The point on the viewport where the mouse currently is. We use
/// viewport points to avoid the complexity of mapping the mouse to
/// the renderer state.
point: ?terminal.point.Viewport = null,
};
/// The pre-edit state. See Surface.preeditCallback for more information.
pub const Preedit = struct {