lib: export Segment, PrintOptions, and ziglyph

Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
This commit is contained in:
Tim Culverhouse 2024-03-01 12:28:48 -06:00
parent e281a67a43
commit c662de4df0
2 changed files with 4 additions and 1 deletions

View file

@ -26,7 +26,7 @@ pub fn build(b: *std.Build) void {
const example = b.addExecutable(.{ const example = b.addExecutable(.{
.name = "vaxis_pathological_example", .name = "vaxis_pathological_example",
// Change this to the example you want to use! // Change this to the example you want to use!
.root_source_file = std.Build.LazyPath.relative("examples/table.zig"), .root_source_file = std.Build.LazyPath.relative("examples/text_input.zig"),
.target = target, .target = target,
.optimize = optimize, .optimize = optimize,
}); });

View file

@ -6,12 +6,15 @@ pub const Options = @import("Options.zig");
pub const Queue = @import("queue.zig").Queue; pub const Queue = @import("queue.zig").Queue;
pub const Key = @import("Key.zig"); pub const Key = @import("Key.zig");
pub const Cell = @import("Cell.zig"); pub const Cell = @import("Cell.zig");
pub const Segment = Cell.Segment;
pub const PrintOptions = Window.PrintOptions;
pub const Style = Cell.Style; pub const Style = Cell.Style;
pub const Image = @import("Image.zig"); pub const Image = @import("Image.zig");
pub const Mouse = @import("Mouse.zig"); pub const Mouse = @import("Mouse.zig");
pub const Winsize = @import("Tty.zig").Winsize; pub const Winsize = @import("Tty.zig").Winsize;
pub const Window = @import("Window.zig"); pub const Window = @import("Window.zig");
pub const ziglyph = @import("ziglyph");
pub const widgets = @import("widgets.zig"); pub const widgets = @import("widgets.zig");
/// Initialize a Vaxis application. /// Initialize a Vaxis application.