Skip to content

Commit

Permalink
Added RunningWindow::close
Browse files Browse the repository at this point in the history
  • Loading branch information
ecton committed Dec 27, 2023
1 parent 24e148b commit daf7a2d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 5 additions & 0 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Px> {
Expand Down

0 comments on commit daf7a2d

Please sign in to comment.