mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 01:25:27 +00:00
draft Titan widget features
This commit is contained in:
parent
133d0f39f2
commit
c72da12c26
12 changed files with 343 additions and 2 deletions
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue