add comment on App
This commit is contained in:
parent
c5c7f13400
commit
21a45d5309
1 changed files with 10 additions and 0 deletions
10
src/tui.zig
10
src/tui.zig
|
|
@ -192,6 +192,16 @@ pub const OptionsRow = struct {
|
||||||
contract: ?zfin.OptionContract = null,
|
contract: ?zfin.OptionContract = null,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/// Root widget for the interactive TUI. Implements the vaxis `vxfw.Widget`
|
||||||
|
/// interface via `widget()`, which wires `typeErasedEventHandler` and
|
||||||
|
/// `typeErasedDrawFn` as callbacks. Passed to `vxfw.App.run()` as the
|
||||||
|
/// top-level widget; vaxis drives the event loop, calling back into App
|
||||||
|
/// for key/mouse/init events and for each frame's draw.
|
||||||
|
///
|
||||||
|
/// Owns all application state: the active tab, cached data for each tab,
|
||||||
|
/// navigation/scroll positions, input mode, and a reference to the
|
||||||
|
/// `DataService` for fetching financial data. Tab-specific rendering and
|
||||||
|
/// data loading are delegated to the `tui/*_tab.zig` modules.
|
||||||
pub const App = struct {
|
pub const App = struct {
|
||||||
allocator: std.mem.Allocator,
|
allocator: std.mem.Allocator,
|
||||||
config: zfin.Config,
|
config: zfin.Config,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue