Docstring on flags method

To clarify potentially confusion like #757
This commit is contained in:
dbr 2024-05-05 12:45:29 +09:30
parent b1af6e1f72
commit e5d06c434d

View File

@ -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;