mirror of
https://github.com/emilk/egui.git
synced 2026-08-29 12:50:04 -04:00
Update changelogs
This commit is contained in:
@@ -6,9 +6,55 @@ NOTE: [`egui-winit`](../egui-winit/CHANGELOG.md), [`egui_glium`](../egui_glium/C
|
||||
This file is updated upon each release.
|
||||
Changes since the last release can be found by running the `scripts/generate_changelog.py` script.
|
||||
|
||||
## Unreleased
|
||||
* `NativeOptions::fullsize_content` has been replaced with four settings: `ViewportBuilder::with_fullsize_content_view`, `with_title_shown`, `with_titlebar_shown`, `with_titlebar_buttons_shown`
|
||||
* `App::on_close_event` has been replaced with `ctx.input(|i| i.viewport().close_requested())` and `ctx.send_viewport_cmd(ViewportCommand::CancelClose)`.
|
||||
|
||||
## 0.24.0 - 2023-11-23
|
||||
* Multiple viewports/windows [#3172](https://github.com/emilk/egui/pull/3172) (thanks [@konkitoman](https://github.com/konkitoman)!)
|
||||
* Replace `eframe::Frame` commands and `WindowInfo` with egui [#3564](https://github.com/emilk/egui/pull/3564)
|
||||
* Use `egui::ViewportBuilder` in `eframe::NativeOptions` [#3572](https://github.com/emilk/egui/pull/3572)
|
||||
* Remove warm-starting [#3574](https://github.com/emilk/egui/pull/3574)
|
||||
* Fix copy and cut on Safari [#3513](https://github.com/emilk/egui/pull/3513) (thanks [@lunixbochs](https://github.com/lunixbochs)!)
|
||||
* Update puffin to 0.18 [#3600](https://github.com/emilk/egui/pull/3600)
|
||||
* Update MSRV to Rust 1.72 [#3595](https://github.com/emilk/egui/pull/3595)
|
||||
|
||||
### Breaking changes:
|
||||
Most settings in `NativeOptions` have been moved to `NativeOptions::viewport`, which uses the new `egui::ViewportBuilder`:
|
||||
|
||||
```diff
|
||||
let native_options = eframe::nativeOptions {
|
||||
- initial_window_size: Some(egui::vec2(320.0, 240.0)),
|
||||
- drag_and_drop_support: true,
|
||||
+ viewport: egui::ViewportBuilder::default()
|
||||
+ .with_inner_size([320.0, 240.0])
|
||||
+ .with_drag_and_drop(true),
|
||||
..Default::default()
|
||||
};
|
||||
```
|
||||
|
||||
`NativeOptions::fullsize_content` has been replaced with four settings: `ViewportBuilder::with_fullsize_content_view`, `with_title_shown`, `with_titlebar_shown`, `with_titlebar_buttons_shown`
|
||||
|
||||
`frame.info().window_info` is gone, replaced with `ctx.input(|i| i.viewport())`.
|
||||
|
||||
`frame.info().native_pixels_per_point` is replaced with `ctx.input(|i| i.raw.native_pixels_per_point)`.
|
||||
|
||||
Most commands in `eframe::Frame` has been replaced with `egui::ViewportCommand`, so So `frame.close()` becomes `ctx.send_viewport_cmd(ViewportCommand::Close)`, etc.
|
||||
|
||||
`App::on_close_event` has been replaced with `ctx.input(|i| i.viewport().close_requested())` and `ctx.send_viewport_cmd(ViewportCommand::CancelClose)`.
|
||||
|
||||
`eframe::IconData` is now `egui::IconData`.
|
||||
|
||||
`eframe::IconData::try_from_png_bytes` is now `eframe::icon_data::from_png_bytes`.
|
||||
|
||||
`App::post_rendering` is gone. Screenshots are taken with `ctx.send_viewport_cmd(ViewportCommand::Screenshots)` and are returned in `egui::Event` which you can check with:
|
||||
``` rust
|
||||
ui.input(|i| {
|
||||
for event in &i.raw.events {
|
||||
if let egui::Event::Screenshot { viewport_id, image } = event {
|
||||
// handle it here
|
||||
}
|
||||
}
|
||||
});
|
||||
```
|
||||
|
||||
|
||||
## 0.23.0 - 2023-09-27
|
||||
* Update MSRV to Rust 1.70.0 [#3310](https://github.com/emilk/egui/pull/3310)
|
||||
|
||||
Reference in New Issue
Block a user