summaryrefslogtreecommitdiffstats
path: root/native
diff options
context:
space:
mode:
authorLibravatar Ryan Scheidter <ryan.scheidter@gmail.com>2022-11-13 15:41:47 -0600
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-11-14 00:30:28 +0100
commitcfdfec97707c492568096684309f79dc20c94262 (patch)
tree877fbca25e644f5fb4df28e8d187524585246279 /native
parentf5c9f63329ec420757c81ef73ab76e7a8cb2cd2e (diff)
downloadiced-cfdfec97707c492568096684309f79dc20c94262.tar.gz
iced-cfdfec97707c492568096684309f79dc20c94262.tar.bz2
iced-cfdfec97707c492568096684309f79dc20c94262.zip
Partially Fixed Mapped Operations
Diffstat (limited to '')
-rw-r--r--native/src/widget/action.rs10
1 files changed, 9 insertions, 1 deletions
diff --git a/native/src/widget/action.rs b/native/src/widget/action.rs
index 593d6f63..c78c5776 100644
--- a/native/src/widget/action.rs
+++ b/native/src/widget/action.rs
@@ -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;