summaryrefslogtreecommitdiffstats
path: root/native/src/element.rs
diff options
context:
space:
mode:
authorLibravatar Bingus <shankern@protonmail.com>2023-01-18 15:01:17 -0800
committerLibravatar Bingus <shankern@protonmail.com>2023-01-18 15:01:17 -0800
commit70d487ba20a50c06c73f0ffcd8198f1a7eac7f37 (patch)
treeafb8e161b18236d4440cba8bb0e0ce896858d653 /native/src/element.rs
parent790fa3e7a01a790aa3f07083fe9abf6b68fa7ba1 (diff)
parent5ef0648bf447aaca8b96782643401e54a2bf7759 (diff)
downloadiced-70d487ba20a50c06c73f0ffcd8198f1a7eac7f37.tar.gz
iced-70d487ba20a50c06c73f0ffcd8198f1a7eac7f37.tar.bz2
iced-70d487ba20a50c06c73f0ffcd8198f1a7eac7f37.zip
Merge remote-tracking branch 'origin/master' into feat/multi-window-support
# Conflicts: # examples/events/src/main.rs # glutin/src/application.rs # native/src/window.rs # winit/src/window.rs
Diffstat (limited to '')
-rw-r--r--native/src/element.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/native/src/element.rs b/native/src/element.rs
index 2409b1c9..0a677d20 100644
--- a/native/src/element.rs
+++ b/native/src/element.rs
@@ -9,6 +9,7 @@ use crate::{
Clipboard, Color, Layout, Length, Point, Rectangle, Shell, Widget,
};
+use std::any::Any;
use std::borrow::Borrow;
/// A generic [`Widget`].
@@ -333,6 +334,10 @@ where
) {
self.operation.text_input(state, id);
}
+
+ fn custom(&mut self, state: &mut dyn Any, id: Option<&widget::Id>) {
+ self.operation.custom(state, id);
+ }
}
self.widget.operate(