Skip to content

Commit

Permalink
Docstring on flags method
Browse files Browse the repository at this point in the history
To clarify potentially confusion like #757
  • Loading branch information
dbr committed May 5, 2024
1 parent b1af6e1 commit e5d06c4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions imgui/src/input_widget.rs
Expand Up @@ -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;
Expand Down

0 comments on commit e5d06c4

Please sign in to comment.