diff --git a/src/renderer/vaxis/renderer.zig b/src/renderer/vaxis/renderer.zig index f00807a..e23ce42 100644 --- a/src/renderer/vaxis/renderer.zig +++ b/src/renderer/vaxis/renderer.zig @@ -13,6 +13,7 @@ pub const Plane = @import("Plane.zig"); pub const Layer = @import("Layer.zig"); pub const Cell = @import("Cell.zig"); pub const CursorShape = vaxis.Cell.CursorShape; +pub const MouseCursorShape = vaxis.Mouse.Shape; pub const style = @import("style.zig").StyleBits; pub const styles = @import("style.zig"); @@ -549,8 +550,6 @@ pub fn request_windows_clipboard(allocator: std.mem.Allocator) ![]u8 { return allocator.dupe(u8, text); } -pub const MouseCursorShape = vaxis.Mouse.Shape; - pub fn request_mouse_cursor(self: *Self, shape: MouseCursorShape, push_or_pop: bool) void { if (push_or_pop) self.vx.setMouseShape(shape) else self.vx.setMouseShape(.default); } diff --git a/src/renderer/win32/renderer.zig b/src/renderer/win32/renderer.zig index 499e1d1..6142b00 100644 --- a/src/renderer/win32/renderer.zig +++ b/src/renderer/win32/renderer.zig @@ -7,8 +7,9 @@ const vaxis = @import("vaxis"); const Style = @import("theme").Style; const Color = @import("theme").Color; pub const CursorShape = vaxis.Cell.CursorShape; -const GraphemeCache = @import("tuirenderer").GraphemeCache; +pub const MouseCursorShape = vaxis.Mouse.Shape; +const GraphemeCache = @import("tuirenderer").GraphemeCache; pub const Plane = @import("tuirenderer").Plane; pub const Layer = @import("tuirenderer").Layer; const input = @import("input"); @@ -458,6 +459,13 @@ pub fn set_terminal_working_directory(self: *Self, absolute_path: []const u8) vo pub const copy_to_windows_clipboard = @import("tuirenderer").copy_to_windows_clipboard; pub const request_windows_clipboard = @import("tuirenderer").request_windows_clipboard; +pub fn request_mouse_cursor(self: *Self, shape: MouseCursorShape, push_or_pop: bool) void { + _ = self; + _ = shape; + _ = push_or_pop; + //@panic("todo"); +} + pub fn request_mouse_cursor_text(self: *Self, push_or_pop: bool) void { _ = self; _ = push_or_pop;