# Struct `kurogane::WindowPlacement`

```rust
pub struct WindowPlacement {
    pub x: i32,
    pub y: i32,
    pub width: u32,
    pub height: u32,
    pub state: WindowState,
}
```

Where a window's content is on the screen in density-independent pixels
and how the window shows. A window maximized, minimized or fullscreen is
placed where it restores to.

[`WindowClosing::placement`](https://kurogane-rs.org/docs/api/windows/windowclosing.md#method.placement) gives one
as a window closes. [`WindowOptions::placement`] opens a window as one
says. Serialized with serde it is
`{"x":200,"y":150,"width":900,"height":600,"state":"Maximized"}` in JSON,
to keep with the application's settings.

[`WindowOptions::placement`]: https://kurogane-rs.org/docs/api/windows/windowoptions.md#method.placement
[crate::WindowClosing::placement]: https://kurogane-rs.org/docs/api/windows/windowclosing.md#method.placement

## Fields

### `x`

```rust
pub x: i32
```

The content's left edge, from the primary display's top-left corner.

### `y`

```rust
pub y: i32
```

The content's top edge.

### `width`

```rust
pub width: u32
```

The content's width.

### `height`

```rust
pub height: u32
```

The content's height.

### `state`

```rust
pub state: WindowState
```

How it shows.

## Trait implementations

- `impl Clone for WindowPlacement`
- `impl Copy for WindowPlacement`
- `impl Debug for WindowPlacement`
- `impl Eq for WindowPlacement`
- `impl PartialEq for WindowPlacement`
- `impl Serialize for WindowPlacement`
- `impl<'de> Deserialize<'de> for WindowPlacement`

Source: https://github.com/0x48piraj/kurogane/blob/584c586118ee53cc04604007ee038557bd859092/kurogane/src/window_options.rs#L194
