stuff
This commit is contained in:
@@ -70,10 +70,6 @@ macro_rules! WidgetFnRet {
|
||||
}
|
||||
pub(crate) use WidgetFnRet;
|
||||
|
||||
pub trait _WidgetFn<W: Widget> {
|
||||
fn call(ui: &mut Ui) -> W;
|
||||
}
|
||||
|
||||
pub trait Idable {
|
||||
type Widget: Widget;
|
||||
fn set(self, ui: &mut Ui, id: &WidgetId<Self::Widget>);
|
||||
|
||||
@@ -4,12 +4,12 @@
|
||||
/// point to something valid, although duplicate
|
||||
/// gets around this if needed
|
||||
#[derive(Eq, Hash, PartialEq, Debug)]
|
||||
pub struct ID(usize);
|
||||
pub struct ID(u64);
|
||||
|
||||
#[derive(Default)]
|
||||
pub struct IDTracker {
|
||||
free: Vec<ID>,
|
||||
cur: usize,
|
||||
cur: u64,
|
||||
}
|
||||
|
||||
impl IDTracker {
|
||||
|
||||
Reference in New Issue
Block a user