๐Ÿ–Œ egui v0.9.0 Release Notes

Release Date: 2021-02-07 // over 3 years ago
  • โž• Added โญ

    • โž• Added support for secondary and middle mouse buttons.
    • โž• Added Label methods for code, strong, strikethrough, underline and italics.
    • โž• Added ui.group(|ui| { โ€ฆ }) to visually group some widgets within a frame.
    • ๐Ÿ’ป Added Ui helpers for doing manual layout (ui.put, ui.allocate_ui_at_rect and more).
    • โž• Added ui.set_enabled(false) to disable all widgets in a Ui (grayed out and non-interactive).
    • โž• Added TextEdit::hint_text for showing a weak hint text when empty.
    • egui::popup::popup_below_widget: show a popup area below another widget.
    • Added Slider::clamp_to_range(bool): if set, clamp the incoming and outgoing values to the slider range.
    • ๐Ÿ’ป Add: ui.spacing(), ui.spacing_mut(), ui.visuals(), ui.visuals_mut().
    • โž• Add: ctx.set_visuals().
    • ๐Ÿ’… You can now control text wrapping with Style::wrap.
    • Added Grid::max_col_width.

    ๐Ÿ”„ Changed ๐Ÿ”ง

    • Text will now wrap at newlines, spaces, dashes, punctuation or in the middle of a words if necessary, in that order of priority.
    • Widgets will now always line break at \n characters.
    • Widgets will now more intelligently choose whether or not to wrap text.
    • mouse has been renamed pointer everywhere (to make it clear it includes touches too).
    • ๐Ÿ’ป Most parts of Response are now methods, so if ui.button("โ€ฆ").clicked { is now if ui.button("โ€ฆ").clicked() {.
    • Response::active is now gone. You can use response.dragged() or response.clicked() instead.
    • Backend: pointer (mouse/touch) position and buttons are now passed to egui in the event stream.
    • DragValue::range is now called clamp_range and also clamps incoming values.
    • ๐Ÿ“‡ Renamed Triangles to Mesh.
    • The tessellator now wraps the clip rectangle and mesh in struct ClippedMesh(Rect, Mesh).
    • Mesh::split_to_u16 now returns a 16-bit indexed Mesh16.

    ๐Ÿ›  Fixed ๐Ÿ›

    • It is now possible to click widgets even when FPS is very low.
    • ๐Ÿ‘ Tessellator: handle sharp path corners better (switch to bevel instead of miter joints for > 90ยฐ).