Partially Fixed Mapped Operations
This commit is contained in:
parent
f5c9f63329
commit
cfdfec9770
1 changed files with 9 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue