1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-01 06:10: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

@@ -1222,6 +1222,7 @@ impl Ui {
/// In particular, the space between widgets is the same width as the space character.
///
/// You can still add any widgets to the layout (not only Labels).
#[deprecated = "Use horizontal instead and set the desired spacing manually with `ui.spacing_mut().item_spacing`"]
pub fn horizontal_for_text<R>(
&mut self,
text_style: TextStyle,
@@ -1266,6 +1267,7 @@ impl Ui {
/// and the line spacing is the same as that for text.
///
/// You can still add any widgets to the layout (not only Labels).
#[deprecated = "Use horizontal_wrapped instead and set the desired spacing manually with `ui.spacing_mut().item_spacing`"]
pub fn horizontal_wrapped_for_text<R>(
&mut self,
text_style: TextStyle,