mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-27 23:23:14 -04:00
On Windows, improve support for undecorated windows (#2419)
This commit is contained in:
committed by
GitHub
parent
2e4338bb8d
commit
76f158d310
@@ -36,6 +36,7 @@ pub struct PlatformSpecificWindowBuilderAttributes {
|
||||
pub drag_and_drop: bool,
|
||||
pub preferred_theme: Option<Theme>,
|
||||
pub skip_taskbar: bool,
|
||||
pub decoration_shadow: bool,
|
||||
}
|
||||
|
||||
impl Default for PlatformSpecificWindowBuilderAttributes {
|
||||
@@ -48,6 +49,7 @@ impl Default for PlatformSpecificWindowBuilderAttributes {
|
||||
drag_and_drop: true,
|
||||
preferred_theme: None,
|
||||
skip_taskbar: false,
|
||||
decoration_shadow: false,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -106,6 +108,12 @@ impl From<WindowId> for u64 {
|
||||
}
|
||||
}
|
||||
|
||||
impl From<WindowId> for HWND {
|
||||
fn from(window_id: WindowId) -> Self {
|
||||
window_id.0
|
||||
}
|
||||
}
|
||||
|
||||
impl From<u64> for WindowId {
|
||||
fn from(raw_id: u64) -> Self {
|
||||
Self(raw_id as HWND)
|
||||
|
||||
Reference in New Issue
Block a user