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