From e5d06c434d3484fde0135c58c461de8c1fe6c45f Mon Sep 17 00:00:00 2001 From: dbr Date: Sun, 5 May 2024 12:45:29 +0930 Subject: [PATCH] Docstring on flags method To clarify potentially confusion like #757 --- imgui/src/input_widget.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/imgui/src/input_widget.rs b/imgui/src/input_widget.rs index 82f443b..faa739a 100644 --- a/imgui/src/input_widget.rs +++ b/imgui/src/input_widget.rs @@ -59,6 +59,9 @@ bitflags!( macro_rules! impl_text_flags { ($InputType:ident) => { + /// Override all existing flags with specified flags. Note + /// some widgets may have flags set by default, so this should + /// be used with care. #[inline] pub fn flags(mut self, flags: InputTextFlags) -> Self { self.flags = flags;