From dccbdc4f01cc70052217279fea80bcc105a6174e Mon Sep 17 00:00:00 2001 From: Sven Niederberger Date: Tue, 5 Oct 2021 18:30:29 +0200 Subject: [PATCH] add doc comments --- imgui/src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/imgui/src/lib.rs b/imgui/src/lib.rs index 90e94a5..82447d1 100644 --- a/imgui/src/lib.rs +++ b/imgui/src/lib.rs @@ -551,6 +551,8 @@ impl<'ui> Ui { { InputInt4::new(self, label, value) } + /// Shows an input field for a scalar value. This is not limited to `f32` and `i32` and can be used with + /// any primitive scalar type e.g. `u8` and `f64`. #[doc(alias = "InputScalar")] pub fn input_scalar<'p, L, T>( &'ui self, @@ -563,6 +565,7 @@ impl<'ui> Ui { { InputScalar::new(self, label, value) } + /// Shows a horizontal array of scalar value input fields. See [`input_scalar`]. #[doc(alias = "InputScalarN")] pub fn input_scalar_n<'p, L, T>( &'ui self,