From bdc6179046602b8252a2f506fee0fb2a9c56b2e7 Mon Sep 17 00:00:00 2001 From: nanoqsh Date: Mon, 8 Jul 2024 18:47:29 +0500 Subject: [PATCH] Notifier constructor --- dunge/src/window.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dunge/src/window.rs b/dunge/src/window.rs index 6a79ce4..4417672 100644 --- a/dunge/src/window.rs +++ b/dunge/src/window.rs @@ -78,6 +78,11 @@ impl WindowState { } } + /// Creates a new [notifier](Notifier). + pub fn notifier(&self) -> Notifier { + Notifier(self.lu.create_proxy()) + } + /// Runs an event loop. pub fn run(self, cx: Context, upd: U) -> Result<(), LoopError> where