fix: windows build
This commit is contained in:
parent
6c478a97a0
commit
ee37dc8730
2 changed files with 10 additions and 3 deletions
|
|
@ -13,6 +13,7 @@ pub const Plane = @import("Plane.zig");
|
||||||
pub const Layer = @import("Layer.zig");
|
pub const Layer = @import("Layer.zig");
|
||||||
pub const Cell = @import("Cell.zig");
|
pub const Cell = @import("Cell.zig");
|
||||||
pub const CursorShape = vaxis.Cell.CursorShape;
|
pub const CursorShape = vaxis.Cell.CursorShape;
|
||||||
|
pub const MouseCursorShape = vaxis.Mouse.Shape;
|
||||||
|
|
||||||
pub const style = @import("style.zig").StyleBits;
|
pub const style = @import("style.zig").StyleBits;
|
||||||
pub const styles = @import("style.zig");
|
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);
|
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 {
|
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);
|
if (push_or_pop) self.vx.setMouseShape(shape) else self.vx.setMouseShape(.default);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,9 @@ const vaxis = @import("vaxis");
|
||||||
const Style = @import("theme").Style;
|
const Style = @import("theme").Style;
|
||||||
const Color = @import("theme").Color;
|
const Color = @import("theme").Color;
|
||||||
pub const CursorShape = vaxis.Cell.CursorShape;
|
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 Plane = @import("tuirenderer").Plane;
|
||||||
pub const Layer = @import("tuirenderer").Layer;
|
pub const Layer = @import("tuirenderer").Layer;
|
||||||
const input = @import("input");
|
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 copy_to_windows_clipboard = @import("tuirenderer").copy_to_windows_clipboard;
|
||||||
pub const request_windows_clipboard = @import("tuirenderer").request_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 {
|
pub fn request_mouse_cursor_text(self: *Self, push_or_pop: bool) void {
|
||||||
_ = self;
|
_ = self;
|
||||||
_ = push_or_pop;
|
_ = push_or_pop;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue