From cda3e1de792ef10cb5539aad53401240cc557cdb Mon Sep 17 00:00:00 2001 From: Tim Culverhouse Date: Fri, 19 Apr 2024 08:10:36 -0800 Subject: [PATCH] window: mark initChild and wrap as deprecated --- src/Window.zig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Window.zig b/src/Window.zig index 4afbf15..932949f 100644 --- a/src/Window.zig +++ b/src/Window.zig @@ -29,6 +29,8 @@ height: usize, screen: *Screen, +/// Deprecated. Use `child` instead +/// /// Creates a new window with offset relative to parent and size clamped to the /// parent's size. Windows do not retain a reference to their parent and are /// unaware of resizes. @@ -359,7 +361,7 @@ pub fn print(self: Window, segments: []Segment, opts: PrintOptions) !bool { return false; } -/// prints text in the window with simple word wrapping. +/// Deprecated. use print instead pub fn wrap(self: Window, segments: []Segment) !void { _ = try self.print(segments, .{ .wrap = .word }); }