Fix Window platform support documentation

This resolves various problems with the documentation about platform
support on the Window struct.

It also completely removes pointless runtime errors in favor of
consistent no-ops on all platforms that do not support a certain
features.
This commit is contained in:
Christian Duerr 2020-07-26 21:13:17 +00:00 • committed by GitHub
parent 6919c2fb2d
commit 55dff53a98
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 35 additions and 43 deletions

View file

@ -49,6 +49,10 @@
- on macOS, fix incorrect ReceivedCharacter events for some key combinations.
- **Breaking:** Use `i32` instead of `u32` for position type in `WindowEvent::Moved`.
- On macOS, a mouse motion event is now generated before every mouse click.
- On Windows, `set_ime_position` is now a no-op instead of a runtime crash.
- On Android, `set_fullscreen` is now a no-op instead of a runtime crash.
- On iOS and Android, `set_inner_size` is now a no-op instead of a runtime crash.
- **Breaking:** On Web, `set_cursor_position` and `set_cursor_grab` will now always return an error.
# 0.21.0 (2020-02-04)