1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-01 22:30:03 -04:00

Deprecated RawInput::screen_size and replaced with screen_rect

This commit is contained in:
Emil Ernerfeldt
2020-12-16 21:48:02 +01:00
parent 2c766aa540
commit 709e711364
7 changed files with 74 additions and 28 deletions

View File

@@ -14,6 +14,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
* `ImageButton` - `ui.add(ImageButton::new(...))`.
* `ui.vertical_centered` and `ui.vertical_centered_justified`.
* Mouse-over explanation to duplicate ID warning
* You can now easily constrain Egui to a portion of the screen using `RawInput::screen_rect`.
### Changed 🔧
@@ -21,6 +22,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
* `ui.image` now takes `impl Into<Vec2>` as a `size` argument.
* Made some more fields of `RawInput` optional.
### Deprecated
* Deprecated `RawInput::screen_size` - use `RawInput::screen_rect` instead.
## 0.5.0 - 2020-12-13