diff options
author | 2019-12-01 14:55:05 +0900 | |
---|---|---|
committer | 2019-12-01 14:55:05 +0900 | |
commit | a33f49ff4b1c11e467ec492a96e1e05e4d32d6aa (patch) | |
tree | 74b63593e76ebf2171365b7cdc39cd6c00921c45 /src/settings/windows.rs | |
parent | 5077f1dc6a6aca5ab84dd89296fb70489393cf57 (diff) | |
download | iced-a33f49ff4b1c11e467ec492a96e1e05e4d32d6aa.tar.gz iced-a33f49ff4b1c11e467ec492a96e1e05e4d32d6aa.tar.bz2 iced-a33f49ff4b1c11e467ec492a96e1e05e4d32d6aa.zip |
Remove platform-specific logic from iced
Make Window.platform_specific use iced_winit::settings::PlatformSpecific
Diffstat (limited to 'src/settings/windows.rs')
-rw-r--r-- | src/settings/windows.rs | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/settings/windows.rs b/src/settings/windows.rs deleted file mode 100644 index 0372111f..00000000 --- a/src/settings/windows.rs +++ /dev/null @@ -1,21 +0,0 @@ -#![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, - } - } -} |