# glfw-ext
[](https://crates.io/crates/glfw-ext)
[](https://docs.rs/glfw-ext)
[](https://github.com/vallentin/glfw-ext)
Utilities and extension methods for [`glfw`].
*The version of [`glfw-ext`] follows the version of [`glfw`].*
Center window on the dominant monitor.
```rust
use glfw_ext::WindowExt;
// Center the window on the dominant monitor, i.e. if
// the window is 20% on monitor A and 80% on monitor B,
// then the window is centered onto monitor B
wnd.try_center();
```
Center window on primary monitor:
```rust
use glfw_ext::WindowExt;
// Center the window on the primary monitor