fix(deps): update rust crate egui28 to 0.29 #69
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.28
->0.29
Release Notes
emilk/egui (egui28)
v0.29.1
Compare Source
with_layer_id/dnd_drag_source
#5191 by @emilkUi::response
#5192 by @emilkv0.29.0
Compare Source
✨ Highlights
This release adds initial support for multi-pass layout, which is a tool to circumvent a common limitation of immediate mode.
You can use the new
UiBuilder::sizing_pass
(#4969) to instruct theUi
and widgets to shrink to their minimum size, then store that size.Then call the new
Context::request_discard
(#5059) to discard the visual output and do another pass immediately after the current finishes.Together, this allows more advanced layouts that is normally not possible in immediate mode.
So far this is only used by
egui::Grid
to hide the "first-frame jitters" that would sometimes happen before, but 3rd party libraries can also use it to do much more advanced things.There is also a new
UiBuilder
for more flexible construction ofUi
s (#4969).By specifying a
sense
for theUi
you can make it respond to clicks and drags, reading the result with the newUi::response
(#5054).Among other things, you can use this to create buttons that contain arbitrary widgets.
0.29 also adds improve support for automatic switching between light and dark mode.
You can now set up a custom
Style
for both dark and light mode, and have egui follow the system preference (#4744 #4860).There also has been several small improvements to the look of egui:
The new text selection
What text selection used to look like
🧳 Migration
id_source
is now calledid_salt
everywhere (#5025)Ui::new
now takes aUiBuilder
(#4969)UiBuilder
):ui.add_visible_ui
ui.allocate_ui_at_rect
ui.child_ui
ui.child_ui_with_id_source
ui.push_stack_info
⭐ Added
UiBuilder
for buildingUi
s #4969 by @emilkegui::Sides
for adding UI on left and right sides #5036 by @emilkUi
:s: addUiBuilder::sense
andUi::response
#5054 by @lucasmerlinUi::columns_const()
#4764 by @v0x0gSlider::max_decimals_opt
#4953 by @bircniLabel::halign
#4975 by @rustbasicui.shrink_clip_rect
#5068 by @emilkScrollArea::scroll_bar_rect
#5070 by @emilkOptions::input_options
for click-delay etc #4942 by @girtsfWidgetType::RadioGroup
#5081 by @bashwith_accessibility_parent
#5083 by @bashUi::with_visual_transform
#5055 by @lucasmerlinSlider
andDragValue
compatible withNonZeroUsize
etc #5105 by @emilkContext::request_discard
for multi-pass layouts #5059 by @emilkFontTweak
live #5125 by @emilkResponse::intrinsic_size
to enable better layout in 3rd party crates #5082 by @lucasmerlinDebugOptions::show_unaligned
#5165 by @emilkSlider::clamping
for precise clamp control #5119 by @emilk🚀 Performance
Color32::from_rgba_unmultiplied
with LUT #5088 by @YgorSouza🔧 Changed
id_source
toid_salt
#5025 by @bircniId
clashes by seeding auto-ids with child id #4840 by @ironpeakMargin::ui
#4873 by @rustbasicscroll_to_*
animations configurable #4305 by @lucasmerlinButton
to correctly align contained image #4891 by @PrimmRahash
re-exports #4979 by @oscargusgenerate-link-to-definition
feature on docs.rs #5030 by @GuillaumeGomezMemory
methods public #5046 by @bircniui.set_sizing_pass
#5074 by @emilkegui::frame
#5087 by @simgtlog
crate instead ofeprintln
& remove some unwraps #5010 by @bircniEvent::Copy
andEvent::Cut
behave as if they select the entire text when there is no selection #5115 by @rustbasic🐛 Fixed
TextEdit
to fix some bugs #4794 by @rustbasicstep_by
#4822 by @AurevoirXavierTextEdit
#4889 by @PrimmRTextEdit
when clicked #4991 by @ZoxcId
clash inFrame
styling widget #4967 by @YgorSouzaScrollArea
contents from exceeding the container size #5006 by @DouglasDwyerRawInput::take
clears all events, like it says it does #5104 by @emilkDragValue
range clamping #5118 by @emilkConfiguration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.