2019-11-30 21:32:46 +09:00
|
|
|
#![cfg(target_os = "windows")]
|
|
|
|
|
//! Platform specific settings for Windows.
|
|
|
|
|
|
|
|
|
|
/// The platform specific window settings of an application.
|
2021-05-27 14:22:11 +02:00
|
|
|
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
2019-11-30 21:32:46 +09:00
|
|
|
pub struct PlatformSpecific {
|
2021-06-01 18:57:36 +07:00
|
|
|
/// Parent window
|
2019-11-30 21:32:46 +09:00
|
|
|
pub parent: Option<winapi::shared::windef::HWND>,
|
2021-06-01 18:57:36 +07:00
|
|
|
|
|
|
|
|
/// Drag and drop support
|
2021-05-27 14:22:11 +02:00
|
|
|
pub drag_and_drop: bool,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
impl Default for PlatformSpecific {
|
|
|
|
|
fn default() -> Self {
|
|
|
|
|
Self {
|
|
|
|
|
parent: None,
|
|
|
|
|
drag_and_drop: true,
|
|
|
|
|
}
|
|
|
|
|
}
|
2019-11-30 21:32:46 +09:00
|
|
|
}
|