implement text/nex renderer

This commit is contained in:
yggverse 2025-06-26 18:02:52 +03:00
parent 02eb8e4a71
commit 337bf32707
7 changed files with 349 additions and 6 deletions

View file

@ -152,6 +152,14 @@ impl Content {
text
}
/// [text/nex](https://nightfall.city/nex/info/specification.txt)
pub fn to_text_nex(&self, base: &Uri, data: &str) -> Text {
self.clean();
let text = Text::nex((&self.window_action, &self.item_action), base, data);
self.g_box.append(&text.scrolled_window);
text
}
pub fn to_directory(
&self,
file: &File,