From f049b885ecf0dcf183517039656c57845b1c70ad Mon Sep 17 00:00:00 2001 From: Maan2003 Date: Fri, 20 Aug 2021 10:17:34 +0530 Subject: [PATCH] WindowDesc::with_config --- druid/src/app.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/druid/src/app.rs b/druid/src/app.rs index d688081d1c..b9f79596d0 100644 --- a/druid/src/app.rs +++ b/druid/src/app.rs @@ -582,6 +582,12 @@ impl WindowDesc { self } + /// Set the [`WindowConfig`] of window. + pub fn with_config(mut self, config: WindowConfig) -> Self { + self.config = config; + self + } + /// Attempt to create a platform window from this `WindowDesc`. pub(crate) fn build_native( self,