๐ 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 aUi
(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 renamedpointer
everywhere (to make it clear it includes touches too).- ๐ป Most parts of
Response
are now methods, soif ui.button("โฆ").clicked {
is nowif ui.button("โฆ").clicked() {
. Response::active
is now gone. You can useresponse.dragged()
orresponse.clicked()
instead.- Backend: pointer (mouse/touch) position and buttons are now passed to egui in the event stream.
DragValue::range
is now calledclamp_range
and also clamps incoming values.- ๐ Renamed
Triangles
toMesh
. - The tessellator now wraps the clip rectangle and mesh in
struct ClippedMesh(Rect, Mesh)
. Mesh::split_to_u16
now returns a 16-bit indexedMesh16
.
๐ 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ยฐ).