src/gui/native.zig
Ref: Size: 1.5 KiB History
//! The native client's workspace and painter. Each pane renders the grid
//! delivered by its own session connection.
//!
//! Folder rules 8 and 9 in build.zig keep this workspace independent of the
//! terminal wall and confine the window API to frame.zig. The
//! remaining painter code stays usable in unit tests that open no window.
//!
//! The window-free model is the separate `native_core` component; this module
//! owns the window and painter files.
const std = @import("std");
const client = @import("client");
const term = @import("term");
pub const core = @import("native_core");
pub const frame = @import("frame.zig");
pub const bench = @import("bench.zig");
pub const atlas = @import("atlas.zig");
pub const font = @import("font.zig");
pub const config = core.config;
pub const quads = @import("quads.zig");
pub const theme = core.theme;
pub const font_options = core.font_options;
pub const gl = @import("gl.zig");
// Compatibility aliases for callers that previously reached these through
// `native`; the source ownership remains with native_core.
pub const interaction = core.interaction;
pub const workspace = core.workspace;
pub const runtime = core.runtime;
pub const picker = core.picker;
pub const persistence = core.persistence;
pub fn run(alloc: std.mem.Allocator, opts: frame.Options) !u8 {
return frame.run(alloc, opts);
}
test {
_ = client;
_ = term;
_ = core;
_ = frame;
_ = bench;
_ = atlas;
_ = font;
_ = quads;
_ = gl;
}