From 2cf4abf25bb5702635c19a22353399db8cef7be3 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Sat, 14 Dec 2024 03:49:24 +0100 Subject: Support custom renderers in `iced_test` through `renderer::Headless` trait --- winit/src/settings.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'winit') diff --git a/winit/src/settings.rs b/winit/src/settings.rs index 78368a04..e2bf8abf 100644 --- a/winit/src/settings.rs +++ b/winit/src/settings.rs @@ -1,4 +1,6 @@ //! Configure your application. +use crate::core; + use std::borrow::Cow; /// The settings of an application. @@ -13,3 +15,12 @@ pub struct Settings { /// The fonts to load on boot. pub fonts: Vec>, } + +impl From for Settings { + fn from(settings: core::Settings) -> Self { + Self { + id: settings.id, + fonts: settings.fonts, + } + } +} -- cgit