diff options
author | 2022-10-19 22:56:00 -0300 | |
---|---|---|
committer | 2023-01-09 11:27:04 -0800 | |
commit | 1bc0c480f9747826b244c30e92d8c4a29b576e4a (patch) | |
tree | cfe793f0ad7977c334fb729bdb989dc6a88b4496 /src/window/position.rs | |
parent | a386788b67bf4e008916e79a8c7dd7289a3ab3cd (diff) | |
download | iced-1bc0c480f9747826b244c30e92d8c4a29b576e4a.tar.gz iced-1bc0c480f9747826b244c30e92d8c4a29b576e4a.tar.bz2 iced-1bc0c480f9747826b244c30e92d8c4a29b576e4a.zip |
move window settings to `iced_native`
Diffstat (limited to 'src/window/position.rs')
-rw-r--r-- | src/window/position.rs | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/src/window/position.rs b/src/window/position.rs deleted file mode 100644 index 6b9fac41..00000000 --- a/src/window/position.rs +++ /dev/null @@ -1,32 +0,0 @@ -/// The position of a window in a given screen. -#[derive(Debug, Clone, Copy, PartialEq, Eq)] -pub enum Position { - /// The platform-specific default position for a new window. - Default, - /// The window is completely centered on the screen. - Centered, - /// The window is positioned with specific coordinates: `(X, Y)`. - /// - /// When the decorations of the window are enabled, Windows 10 will add some - /// invisible padding to the window. This padding gets included in the - /// position. So if you have decorations enabled and want the window to be - /// at (0, 0) you would have to set the position to - /// `(PADDING_X, PADDING_Y)`. - Specific(i32, i32), -} - -impl Default for Position { - fn default() -> Self { - Self::Default - } -} - -impl From<Position> for iced_winit::Position { - fn from(position: Position) -> Self { - match position { - Position::Default => Self::Default, - Position::Centered => Self::Centered, - Position::Specific(x, y) => Self::Specific(x, y), - } - } -} |