blob: 0372111f9ec8e1e2eaa4a6b46f17d7a251f20117 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#![cfg(target_os = "windows")]
//! Platform specific settings for Windows.
/// The platform specific window settings of an application.
#[cfg(target_os = "windows")]
#[derive(Debug, Clone, Copy, PartialEq, Eq, Default)]
pub struct PlatformSpecific {
/// Parent Window
pub parent: Option<winapi::shared::windef::HWND>,
}
#[cfg(target_os = "windows")]
impl From<PlatformSpecific> for iced_winit::settings::PlatformSpecific {
fn from(
platform_specific: PlatformSpecific,
) -> iced_winit::settings::PlatformSpecific {
iced_winit::settings::PlatformSpecific {
parent: platform_specific.parent,
}
}
}
|