Properly implement Debug for Window and EventLoop types (#3297)
For EventLoop, EventLoopBuilder, EventLoopProxy and by requiring it as a supertrait of Window and ActiveEventLoop. It is especially useful for user to be able to know that Window is Debug.
This commit is contained in:
parent
39c0862198
commit
be1baf164c
43 changed files with 152 additions and 42 deletions
|
|
@ -76,7 +76,7 @@ use crate::window::{
|
|||
WindowLevel,
|
||||
};
|
||||
|
||||
#[derive(Clone, Copy)]
|
||||
#[derive(Clone, Copy, Debug)]
|
||||
#[repr(transparent)]
|
||||
/// We need to pass the window handle to the event loop thread, which means it needs to be
|
||||
/// Send+Sync.
|
||||
|
|
@ -92,6 +92,7 @@ impl SyncWindowHandle {
|
|||
}
|
||||
|
||||
/// The Win32 implementation of the main `Window` object.
|
||||
#[derive(Debug)]
|
||||
pub(crate) struct Window {
|
||||
/// Main handle for the window.
|
||||
window: SyncWindowHandle,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue