๐ egui v0.6.0 Release Notes
Release Date: 2020-12-26 // over 3 years ago-
โ Added โญ
- Turn off
Window
title bars withwindow.title_bar(false)
. - ๐ป
ImageButton
-ui.add(ImageButton::new(โฆ))
. - ๐ป
ui.vertical_centered
andui.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
orDragValue
. - โ Added
egui::math::Rot2
: rotation helper. Response
now contains theId
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 withCtxRef
everywhere.- ๐
Slight tweak of the default
Style
and font sizes. SidePanel::left
andTopPanel::top
now takesimpl Hash
as first argument.- A
Window
may now cover an existingCentralPanel
. - ๐ป
ui.image
now takesimpl Into<Vec2>
as asize
argument. - Made some more fields of
RawInput
optional. - ๐
Slider
andDragValue
uses fewer decimals by default. See the full precision by hovering over the value. egui::App
: addedfn name(&self)
andfn 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()
toSense::hover()
. - Replaced
parking_lot
dependency withatomic_refcell
by default.
๐ Fixed ๐
- The background for
CentralPanel
will now cover unused space too. - ๐ป
ui.columns
: Improve allocated size estimation.
๐ Deprecated โข๏ธ
RawInput::screen_size
- useRawInput::screen_rect
instead.- ๐ป left/centered/right column functions on
Ui
. - ๐ป
ui.interact_hover
andui.hovered
.
- Turn off