feat(Windows): add with_msg_hook (#2213)

This commit is contained in:
Amr Bashir 2022-03-30 10:30:45 +02:00 committed by GitHub
parent 945a9e3122
commit 08de2b3fc4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 59 additions and 7 deletions

View file

@ -50,7 +50,7 @@ pub struct EventLoopWindowTarget<T: 'static> {
///
/// This is used to make specifying options that affect the whole application
/// easier. But note that constructing multiple event loops is not supported.
#[derive(Debug, Clone, Default)]
#[derive(Default)]
pub struct EventLoopBuilder<T: 'static> {
pub(crate) platform_specific: platform_impl::PlatformSpecificEventLoopAttributes,
_p: PhantomData<T>,
@ -95,7 +95,7 @@ impl<T> EventLoopBuilder<T> {
#[inline]
pub fn build(&mut self) -> EventLoop<T> {
EventLoop {
event_loop: platform_impl::EventLoop::new(&self.platform_specific),
event_loop: platform_impl::EventLoop::new(&mut self.platform_specific),
_marker: PhantomData,
}
}