fix widgets in tui
This commit is contained in:
1 parent
f6feb3f3f0
commit
db04550fc8
5 files changed
+73
-51
No files matched your search
@@ -1,12 +1,9 @@
|
||||
use std::any::Any;
|
||||
use std::future::Future;
|
||||
use std::hash::BuildHasherDefault;
|
||||
use std::pin::Pin;
|
||||
|
||||
pub use node_ref::NodeMask;
|
||||
pub use passes::AnyMapLike;
|
||||
pub use passes::{Dependancy, Pass, TypeErasedPass};
|
||||
use prelude::FromAnyValue;
|
||||
pub use real_dom::{NodeMut, NodeRef, RealDom};
|
||||
use rustc_hash::FxHasher;
|
||||
pub use tree::NodeId;
|
||||
@@ -34,9 +31,3 @@ pub mod prelude {
|
||||
pub type FxDashMap<K, V> = dashmap::DashMap<K, V, BuildHasherDefault<FxHasher>>;
|
||||
pub type FxDashSet<K> = dashmap::DashSet<K, BuildHasherDefault<FxHasher>>;
|
||||
pub type SendAnyMap = anymap::Map<dyn Any + Send + Sync + 'static>;
|
||||
|
||||
pub trait Renderer<E, V: FromAnyValue + Send + Sync = ()> {
|
||||
fn render(&mut self, root: NodeMut<V>);
|
||||
fn handle_event(&mut self, node: NodeMut<V>, event: &str, value: E, bubbles: bool);
|
||||
fn poll_async(&mut self) -> Pin<Box<dyn Future<Output = ()> + '_>>;
|
||||
}
|
||||
Reference in new issue
Block a user