glues-tui 0.8.1

TUI and WASM frontends for the Glues note-taking experience
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
mod entry;
mod notebook;

use {
    crate::{Context, context::ContextState},
    ratatui::{Frame, layout::Rect},
};

pub fn draw(frame: &mut Frame, area: Rect, context: &mut Context) {
    match context.state {
        ContextState::Entry => entry::draw(frame, area, &mut context.entry),
        ContextState::Notebook => notebook::draw(frame, area, context),
    }
}