window: mark initChild and wrap as deprecated

This commit is contained in:
Tim Culverhouse 2024-04-19 08:10:36 -08:00
parent bc206f8716
commit cda3e1de79

View file

@ -29,6 +29,8 @@ height: usize,
screen: *Screen, screen: *Screen,
/// Deprecated. Use `child` instead
///
/// Creates a new window with offset relative to parent and size clamped to the /// 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 /// parent's size. Windows do not retain a reference to their parent and are
/// unaware of resizes. /// unaware of resizes.
@ -359,7 +361,7 @@ pub fn print(self: Window, segments: []Segment, opts: PrintOptions) !bool {
return false; return false;
} }
/// prints text in the window with simple word wrapping. /// Deprecated. use print instead
pub fn wrap(self: Window, segments: []Segment) !void { pub fn wrap(self: Window, segments: []Segment) !void {
_ = try self.print(segments, .{ .wrap = .word }); _ = try self.print(segments, .{ .wrap = .word });
} }