Skip to content

Commit

Permalink
Notifier constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
nanoqsh committed Jul 8, 2024
1 parent 578e1c0 commit bdc6179
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dunge/src/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ impl<V> WindowState<V> {
}
}

/// Creates a new [notifier](Notifier).
pub fn notifier(&self) -> Notifier<V> {
Notifier(self.lu.create_proxy())
}

/// Runs an event loop.
pub fn run<U>(self, cx: Context, upd: U) -> Result<(), LoopError>
where
Expand Down

0 comments on commit bdc6179

Please sign in to comment.