Add missing operations for component

This commit is contained in:
Cory Forsstrom 2023-04-12 22:45:43 -07:00
parent ded88d79c8
commit 4297d1a04a
No known key found for this signature in database
GPG key ID: 1DFE170A4415C9F5

View file

@ -361,6 +361,22 @@ where
) {
self.operation.text_input(state, id);
}
fn scrollable(
&mut self,
state: &mut dyn widget::operation::Scrollable,
id: Option<&widget::Id>,
) {
self.operation.scrollable(state, id);
}
fn custom(
&mut self,
state: &mut dyn std::any::Any,
id: Option<&widget::Id>,
) {
self.operation.custom(state, id);
}
}
let tree = tree.state.downcast_mut::<Rc<RefCell<Option<Tree>>>>();