mirror of
https://github.com/emilk/egui.git
synced 2026-08-30 21:30:03 -04:00
Rename ui.advance_cursor to ui.add_space
This commit is contained in:
@@ -91,7 +91,7 @@ impl PlotDemo {
|
||||
ui.vertical(|ui| {
|
||||
ui.style_mut().wrap = Some(false);
|
||||
ui.checkbox(animate, "animate");
|
||||
ui.advance_cursor(8.0);
|
||||
ui.add_space(8.0);
|
||||
ui.checkbox(square, "square view");
|
||||
ui.checkbox(proportional, "proportional data axes");
|
||||
});
|
||||
|
||||
@@ -122,21 +122,21 @@ impl super::View for Sliders {
|
||||
ui.radio_value(integer, false, "f64");
|
||||
});
|
||||
ui.label("(f32, usize etc are also possible)");
|
||||
ui.advance_cursor(8.0);
|
||||
ui.add_space(8.0);
|
||||
|
||||
ui.checkbox(logarithmic, "Logarithmic");
|
||||
ui.label("Logarithmic sliders are great for when you want to span a huge range, i.e. from zero to a million.");
|
||||
ui.label("Logarithmic sliders can include infinity and zero.");
|
||||
ui.advance_cursor(8.0);
|
||||
ui.add_space(8.0);
|
||||
|
||||
ui.checkbox(clamp_to_range, "Clamp to range");
|
||||
ui.label("If true, the slider will clamp incoming and outgoing values to the given range.");
|
||||
ui.label("If false, the slider can shows values outside its range, and you can manually enter values outside the range.");
|
||||
ui.advance_cursor(8.0);
|
||||
ui.add_space(8.0);
|
||||
|
||||
ui.checkbox(smart_aim, "Smart Aim");
|
||||
ui.label("Smart Aim will guide you towards round values when you drag the slider so you you are more likely to hit 250 than 247.23");
|
||||
ui.advance_cursor(8.0);
|
||||
ui.add_space(8.0);
|
||||
|
||||
ui.vertical_centered(|ui| {
|
||||
egui::reset_button(ui, self);
|
||||
|
||||
@@ -327,7 +327,7 @@ impl BackendPanel {
|
||||
These are emitted when you switch selected widget with tab, \
|
||||
and can be hooked up to a screen reader on supported platforms.",
|
||||
);
|
||||
ui.advance_cursor(8.0);
|
||||
ui.add_space(8.0);
|
||||
for event in &self.output_event_history {
|
||||
ui.label(format!("{:?}", event));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user