mirror of
https://github.com/emilk/egui.git
synced 2026-08-30 21:30:03 -04:00
Add Ui::spinner shortcut method (#1494)
This commit is contained in:
committed by
GitHub
parent
b738418243
commit
2745699bd6
@@ -1383,12 +1383,22 @@ impl Ui {
|
||||
response
|
||||
}
|
||||
|
||||
/// Shortcut for `add(Separator::default())` (see [`Separator`]).
|
||||
/// Shortcut for `add(Separator::default())`
|
||||
///
|
||||
/// See also [`Separator`].
|
||||
#[inline]
|
||||
pub fn separator(&mut self) -> Response {
|
||||
Separator::default().ui(self)
|
||||
}
|
||||
|
||||
/// Shortcut for `add(Spinner::new())`
|
||||
///
|
||||
/// See also [`Spinner`].
|
||||
#[inline]
|
||||
pub fn spinner(&mut self) -> Response {
|
||||
Spinner::new().ui(self)
|
||||
}
|
||||
|
||||
/// Modify an angle. The given angle should be in radians, but is shown to the user in degrees.
|
||||
/// The angle is NOT wrapped, so the user may select, for instance 720° = 2𝞃 = 4π
|
||||
pub fn drag_angle(&mut self, radians: &mut f32) -> Response {
|
||||
|
||||
Reference in New Issue
Block a user