mirror of
https://github.com/emilk/egui.git
synced 2026-09-01 14:20:04 -04:00
ui.horizontal_for_text: Size and spacing made for text
This commit is contained in:
10
CHANGELOG.md
10
CHANGELOG.md
@@ -15,11 +15,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
||||
* Works in any text.
|
||||
* Great for button icons.
|
||||
* The Demo app comes with a Font Book to explore the available glyphs.
|
||||
* Wrapping layouts:
|
||||
* `ui.horizontal_wrapped(|ui| ...)`: Add widgets on a row but wrap at `max_size`.
|
||||
* `ui.horizontal_wrapped_for_text`: Like `horizontal_wrapped`, but with spacing made for embedding text.
|
||||
* `ui.horizontal_wrapped(|ui| ...)`: Add widgets on a row but wrap at `max_size`.
|
||||
* `ui.horizontal_wrapped_for_text`: Like `ui.horizontal_wrapped`, but with spacing made for embedding text.
|
||||
* `ui.horizontal_for_text`: Like `ui.horizontal`, but with spacing made for embedding text.
|
||||
* `egui::Layout` now supports justified layouts where contents is _also_ centered, right-aligned, etc.
|
||||
* `ui.allocate_ui(size, |ui| ...)`: Easily created a sized child-`Ui`.
|
||||
* `ui.allocate_ui(size, |ui| ...)`: Easily created child-`Ui` of a given size.
|
||||
* `SelectableLabel` (`ui.selectable_label` and `ui.selectable_value`): A text-button that can be selected.
|
||||
* `ui.small_button`: A smaller button that looks good embedded in text.
|
||||
* Add `Resize::id_source` and `ScrollArea::id_source` to let the user avoid Id clashes.
|
||||
@@ -29,7 +29,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
||||
* Changed default font to [Ubuntu-Light](https://fonts.google.com/specimen/Ubuntu).
|
||||
* Remove minimum button width
|
||||
* Refactored `egui::Layout` substantially, changing its interface.
|
||||
* Calling ``on_hover_text`/`on_hover_ui` multiple times will stack tooltips underneath the previous ones.
|
||||
* Calling `on_hover_text`/`on_hover_ui` multiple times will stack tooltips underneath the previous ones.
|
||||
* Text wrapping on labels, buttons, checkboxes and radio buttons is now based on the layout.
|
||||
|
||||
### Removed 🔥
|
||||
|
||||
Reference in New Issue
Block a user