๐ egui v0.19.0 Release Notes
Release Date: 2022-08-20 // about 2 years ago-
โ Added โญ
- ๐ Added
*_released
&*_clicked
methods forPointerState
(#1582). - โ Added
PointerButton::Extra1
andPointerButton::Extra2
(#1592). - โ Added
egui::hex_color!
to createColor32
's from hex strings under thecolor-hex
feature (#1596). - โก๏ธ Optimized painting of filled circles (e.g. for scatter plots) by 10x or more (#1616).
- โ Added opt-in feature
deadlock_detection
to detect double-lock of mutexes on the same thread (#1619). - โ Added
InputState::stable_dt
: a more stable estimate for the delta-time in reactive mode (#1625). - You can now specify a texture filter for your textures (#1636).
- โ Added functions keys in
egui::Key
(#1665). - โ Added support for using
PaintCallback
shapes with the WGPU backend (#1684). - Added
Contex::request_repaint_after
(#1694). ctrl-h
now acts like backspace inTextEdit
(#1812).- โ Added
custom_formatter
method forSlider
andDragValue
(#1851). - โ Added
RawInput::has_focus
which backends can set to indicate whether the UI as a whole has the keyboard focus (#1859). - Added
PointerState::button_double_clicked()
andPointerState::button_triple_clicked()
(#1906). - โ Added
custom_formatter
,binary
,octal
, andhexadecimal
toDragValue
andSlider
(#1953)
๐ Changed ๐ง
- ๐ MSRV (Minimum Supported Rust Version) is now
1.61.0
(#1846). PaintCallback
shapes now require the whole callback to be put in anArc<dyn Any>
with the value being a backend-specific callback type (#1684).- Replaced
needs_repaint
inFullOutput
withrepaint_after
. Used to force repaint after the set duration in reactive mode (#1694). Layout::left_to_right
andLayout::right_to_left
now takes the vertical align as an argument. Previous default wasAlign::Center
.- ๐ Improved ergonomics of adding plot items. All plot items that take a series of 2D coordinates can now be created directly from
Vec<[f64; 2]>
. TheValue
andValues
types were removed in favor ofPlotPoint
andPlotPoints
respectively (#1816). TextBuffer
no longer needs to implementAsRef<str>
(#1824).
๐ Fixed ๐
- ๐ Fixed
Response::changed
forui.toggle_value
(#1573). - ๐ Fixed
ImageButton
's changing background padding on hover (#1595). - ๐ Fixed
Plot
auto-bounds bug (#1599). - ๐ Fixed dead-lock when alt-tabbing while also showing a tooltip (#1618).
- ๐ Fixed
ScrollArea
scrolling when editing an unrelatedTextEdit
(#1779). - ๐ Fixed
Slider
not always generating events on change (#1854). - ๐ Fixed jitter of anchored windows for the first frame (#1856).
- ๐ Fixed focus behavior when pressing Tab in a UI with no focused widget (#1861).
- ๐ Fixed automatic plot bounds (#1865).
- ๐ Added
Previous changes from v0.18.1
-
- ๐ Change
Shape::Callback
from&dyn Any
to&mut dyn Any
to support more backends.
- ๐ Change