1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-02 06:40:06 -04:00

Depcrecate ui.horizontal_for_text and ui.horizontal_wrapped_for_text

They just add unnecessary complexity at this point
This commit is contained in:
Emil Ernerfeldt
2021-03-21 14:46:32 +01:00
parent 953d2bb39b
commit eaa1ed96ee
4 changed files with 9 additions and 4 deletions

View File

@@ -176,7 +176,7 @@ impl WidgetGallery {
ui.add(doc_link_label("CollapsingHeader", "collapsing"));
ui.collapsing("Click to see what is hidden!", |ui| {
ui.horizontal_wrapped_for_text(egui::TextStyle::Body, |ui| {
ui.horizontal_wrapped(|ui| {
ui.label(
"Not much, as it turns out - but here is a gold star for you for checking:",
);