diff --git a/CHANGELOG.md b/CHANGELOG.md index 39d06cc80..7f20ecfb9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -41,6 +41,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 given graphics context. - `ShareableTexture` is a texture type that can resolve to a `SharedTexture`. Currently this is either a `SharedTexture` or a `LazyTexture`. +- `RunningWindow::close` is allows closing a window. ## Fixed diff --git a/src/app.rs b/src/app.rs index 724e6a2d6..dc4601801 100644 --- a/src/app.rs +++ b/src/app.rs @@ -142,6 +142,11 @@ where self.window.app() } + /// Closes this window as soon as control returns to `Kludgine`. + pub fn close(&mut self) { + self.window.close(); + } + /// Returns the current position of the window. #[must_use] pub fn position(&self) -> Point {