๐Ÿ–Œ egui v0.16.0 Release Notes

Release Date: 2021-12-29 // over 2 years ago
  • โž• Added โญ

    • Added context menus: See Ui::menu_button and Response::context_menu (#543).
    • ๐Ÿ‘ Most widgets containing text (Label, Button etc) now supports rich text (#855).
    • Plots:
      • Added bar charts and box plots (#863).
      • You can now query information about the plot (e.g. get the mouse position in plot coordinates, or the plot bounds) while adding items. Plot (#766 and #892).
    • You can now read and write the cursor of a TextEdit (#848).
    • When using a custom font you can now specify a font index (#873).
    • โž• Added vertical sliders with Slider::new(โ€ฆ).vertical() (#875).
    • Added Button::image_and_text (#832).
    • โž• Added CollapsingHeader::open to control if it is open or collapsed (#1006).
    • Added egui::widgets::color_picker::color_picker_color32 to show the color picker.

    ๐Ÿ”„ Changed ๐Ÿ”ง

    • ๐Ÿ‘ MSRV (Minimum Supported Rust Version) is now 1.56.0.
    • ๐Ÿ’ป ui.add(Button::new("โ€ฆ").text_color(โ€ฆ)) is now ui.button(RichText::new("โ€ฆ").color(โ€ฆ)) (same for Label )(#855).
    • Plots now provide a show method that has to be used to add items to and show the plot (#766).
    • ๐Ÿ’ป menu::menu(ui, ...) is now ui.menu_button(...) (#543)
    • Replaced CtxRef::begin_frame and end_frame with CtxRef::run (#872).
    • Replaced scroll_delta and zoom_delta in RawInput with Event::Scroll and Event::Zoom.
    • Unified the four Memory data buckets (data, data_temp, id_data and id_data_temp) into a single Memory::data, with a new interface (#836).
    • โœ… Replaced Ui::__test with egui::__run_test_ui (#872).

    ๐Ÿ›  Fixed ๐Ÿ›

    • ๐Ÿ›  Fixed ComboBox and other popups getting clipped to parent window (#885).
    • ๐Ÿ‘ The color picker is now better at keeping the same hue even when saturation goes to zero (#886).

    โœ‚ Removed ๐Ÿ”ฅ

    • โœ‚ Removed egui::math (use egui::emath instead).
    • โœ‚ Removed egui::paint (use egui::epaint instead).

    Contributors ๐Ÿ™