draft Titan widget features

This commit is contained in:
yggverse 2025-01-22 07:38:51 +02:00
parent 133d0f39f2
commit c72da12c26
12 changed files with 343 additions and 2 deletions

View file

@ -1,5 +1,6 @@
mod response;
mod sensitive;
mod titan;
mod widget;
use super::TabAction;
@ -7,6 +8,7 @@ use gtk::glib::Uri;
use response::Response;
use sensitive::Sensitive;
use std::rc::Rc;
use titan::Titan;
use widget::Widget;
pub struct Input {
@ -62,4 +64,9 @@ impl Input {
.g_box,
));
}
pub fn set_new_titan(&self, on_send: impl Fn(&[u8]) + 'static) {
self.widget
.update(Some(&Titan::build(on_send).widget.g_box));
}
}