summaryrefslogtreecommitdiffstats
path: root/src/pure/application.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-07-08 23:38:34 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-07-08 23:38:47 +0200
commit4407385fbe629eb079b0166649492da5f689ea95 (patch)
tree29cf7cf45f43fcd12e553f4b0084e9dc387e3a11 /src/pure/application.rs
parent48bc505cb6fe85b6568715de4c8b4067603f8fb0 (diff)
downloadiced-4407385fbe629eb079b0166649492da5f689ea95.tar.gz
iced-4407385fbe629eb079b0166649492da5f689ea95.tar.bz2
iced-4407385fbe629eb079b0166649492da5f689ea95.zip
Make `Element` aliases in `iced` compatible with `iced_native` and `iced_pure`
Diffstat (limited to 'src/pure/application.rs')
-rw-r--r--src/pure/application.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/pure/application.rs b/src/pure/application.rs
index af9b078b..396854ad 100644
--- a/src/pure/application.rs
+++ b/src/pure/application.rs
@@ -60,7 +60,9 @@ pub trait Application: Sized {
/// Returns the widgets to display in the [`Application`].
///
/// These widgets can produce __messages__ based on user interaction.
- fn view(&self) -> pure::Element<'_, Self::Message, Self::Theme>;
+ fn view(
+ &self,
+ ) -> pure::Element<'_, Self::Message, crate::Renderer<Self::Theme>>;
/// Returns the current [`Theme`] of the [`Application`].
fn theme(&self) -> Self::Theme {
@@ -167,7 +169,9 @@ where
A::subscription(&self.application)
}
- fn view(&mut self) -> crate::Element<'_, Self::Message, Self::Theme> {
+ fn view(
+ &mut self,
+ ) -> crate::Element<'_, Self::Message, crate::Renderer<Self::Theme>> {
let content = A::view(&self.application);
Pure::new(&mut self.state, content).into()