Partially Fixed Mapped Operations

This commit is contained in:
Ryan Scheidter 2022-11-13 15:41:47 -06:00 committed by Héctor Ramón Jiménez
parent f5c9f63329
commit cfdfec9770
No known key found for this signature in database
GPG key ID: 140CC052C94F138E

View file

@ -1,4 +1,4 @@
use crate::widget::operation::{self, Operation};
use crate::widget::operation::{self, Focusable, Operation, Scrollable};
use crate::widget::Id;
use iced_futures::MaybeSend;
@ -67,6 +67,14 @@ where
operate_on_children(&mut MapRef { operation, f });
});
}
fn scrollable(&mut self, state: &mut dyn Scrollable, id: Option<&Id>) {
self.operation.scrollable(state, id);
}
fn focusable(&mut self, state: &mut dyn Focusable, id: Option<&Id>) {
self.operation.focusable(state, id);
}
}
let Self { operation, f } = self;