๐Ÿ–Œ egui v0.6.0 Release Notes

Release Date: 2020-12-26 // over 3 years ago
  • โž• Added โญ

    • Turn off Window title bars with window.title_bar(false).
    • ๐Ÿ’ป ImageButton - ui.add(ImageButton::new(โ€ฆ)).
    • ๐Ÿ’ป ui.vertical_centered and ui.vertical_centered_justified.
    • ๐Ÿ’ป ui.allocate_painter helper.
    • โš  Mouse-over explanation to duplicate ID warning.
    • You can now easily constrain egui to a portion of the screen using RawInput::screen_rect.
    • You can now control the minimum and maixumum number of decimals to show in a Slider or DragValue.
    • โž• Added egui::math::Rot2: rotation helper.
    • Response now contains the Id of the widget it pertains to.
    • ๐Ÿ’ป ui.allocate_response that allocates space and checks for interactions.
    • โž• Added response.interact(sense), e.g. to check for clicks on labels.

    ๐Ÿ”„ Changed ๐Ÿ”ง

    • ๐Ÿ’ป ui.allocate_space now returns an (Id, Rect) tuple.
    • Arc<Context> has been replaced with CtxRef everywhere.
    • ๐Ÿ’… Slight tweak of the default Style and font sizes.
    • SidePanel::left and TopPanel::top now takes impl Hash as first argument.
    • A Window may now cover an existing CentralPanel.
    • ๐Ÿ’ป ui.image now takes impl Into<Vec2> as a size argument.
    • Made some more fields of RawInput optional.
    • ๐Ÿ‘€ Slider and DragValue uses fewer decimals by default. See the full precision by hovering over the value.
    • egui::App: added fn name(&self) and fn clear_color(&self).
    • Combo boxes has scroll bars when needed.
    • Expand Window + Resize containers to be large enough for last frames content
    • 0๏ธโƒฃ ui.columns: Columns now defaults to justified top-to-down layouts.
    • ๐Ÿ“‡ Renamed Sense::nothing() to Sense::hover().
    • Replaced parking_lot dependency with atomic_refcell by default.

    ๐Ÿ›  Fixed ๐Ÿ›

    • The background for CentralPanel will now cover unused space too.
    • ๐Ÿ’ป ui.columns: Improve allocated size estimation.

    ๐Ÿ—„ Deprecated โ˜ข๏ธ

    • RawInput::screen_size - use RawInput::screen_rect instead.
    • ๐Ÿ’ป left/centered/right column functions on Ui.
    • ๐Ÿ’ป ui.interact_hover and ui.hovered.