typed stuff
This commit is contained in:
@@ -125,6 +125,11 @@ widget_trait! {
|
||||
fn to_any(self) -> impl WidgetIdFn<State> {
|
||||
|ui| self.add(ui)
|
||||
}
|
||||
|
||||
fn set_ptr(self, ptr: WidgetRef<State, WidgetPtr<State>>, ui: &mut Ui<State>) {
|
||||
let id = self.add(ui);
|
||||
ui[ptr].inner = Some(id);
|
||||
}
|
||||
}
|
||||
|
||||
pub trait CoreWidgetArr<State, const LEN: usize, Wa: WidgetArrLike<State, LEN, Tag>, Tag> {
|
||||
|
||||
Reference in New Issue
Block a user