diff --git a/egui/src/ui.rs b/egui/src/ui.rs index c7fc56ab..bc43728b 100644 --- a/egui/src/ui.rs +++ b/egui/src/ui.rs @@ -997,6 +997,8 @@ impl Ui { self.placer.advance_cursor(amount); } + /// Show some text. + /// /// Shortcut for `add(Label::new(text))` /// /// See also [`Label`]. @@ -1005,6 +1007,8 @@ impl Ui { label.into().ui(self) } + /// Show colored text. + /// /// Shortcut for `add(Label::new(text).text_color(color))` pub fn colored_label( &mut self, @@ -1014,11 +1018,15 @@ impl Ui { label.into().text_color(color).ui(self) } + /// Show large text. + /// /// Shortcut for `add(Label::new(text).heading())` pub fn heading(&mut self, label: impl Into