initial global widget store
This commit is contained in:
1 parent
7f4846a2d3
commit
6156c66a20
31 files changed
+536
-352
No files matched your search
@@ -1,15 +1,15 @@
|
||||
use std::any::{Any, TypeId};
|
||||
|
||||
use crate::{
|
||||
layout::WidgetInstance,
|
||||
util::{HashMap, Id},
|
||||
layout::{WidgetId, WidgetInstance},
|
||||
util::HashMap,
|
||||
};
|
||||
|
||||
#[allow(unused_variables)]
|
||||
pub trait UiModule: Any {
|
||||
fn on_draw(&mut self, inst: &WidgetInstance) {}
|
||||
fn on_undraw(&mut self, inst: &WidgetInstance) {}
|
||||
fn on_remove(&mut self, id: &Id) {}
|
||||
fn on_remove(&mut self, id: &WidgetId) {}
|
||||
fn on_move(&mut self, inst: &WidgetInstance) {}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user