This project follows semantic versioning.
- [added]
get_unscaled_mouse_pos
Can be used the get actual mouse pos on a scaled window
- [fixed] Mac: Fixed crash on large window sizes
- [fixed] Mac: "Plonk sound" when pressing keys
- [fixed] Mac: incorrect size for
get_size()
- [fixed] Fixed so keypad keys works on Linux
- [fixed] Character callback wouldn't get called on Mac and Linux
- [fixed] Resize cursors on Windows was swapped
- [added]
window.set_title
Can now change title after creation - [added]
window.set_cursor_style
Can now change the style of the cursor with a number of (OS supported types) - [added] Added cursor_title example code to show the newly added features
- [fixed] Character callback wouldn't get called on Mac.
- [changed] - Fully rewrote the Menu API. See the documentation/menu example for the changes.
- [added] - Added
Window::get_unix_menus
to get data access to menus on Linux/x11
- [added] added
get_size()
to retrive the size of the window.
- [fixed] On Mac shortcuts using F1-F12 wasn't working correctly.
- [fixed]
get_window_handle
would return an invalid value on Unix. Now fixed.
- [changed] - Proper Errors which uses
std::Error
as base.Window::new
uses this but the API itself hasn't changed. - [added] - Menu support on Mac and Windows. See the Menu API functions here
- [known issue] -
remove_menu
doesn't work on Windows issue - [known issue] - On Mac when running an application from terminal on has to switch to another application and back to get menu focus. issue
This release breaks some of the API by changing names and parameters to some functions.
- [changed]
Window::new(...)
now takes WindowOptions struct to configure the creation of the Window. doc - [changed]
window.update()
Doesn't take a buffer anymore. Seewindow.update_with_buffer
doc - [added]
window.update_with_buffer()
Old update version that takes buffer as input parameter doc - [added]
window.get_window_handle()
Returns the native handle (os dependant) doc
- [fixed]
get_mouse_pos(Clamp)
clamps to[(0, 0) - (width - 1, height - 1)]
instead of(width, height)
This release adds support for mouse input. See the documentation and the examples for usage
- [added] get_mouse_pos
- [added] get_mouse_down
- [added] get_scroll_wheel