Flags that can be passed to UI::InputText().
Flags that can be passed to UI::InputText().
UI::InputTextFlags::None
(0)
UI::InputTextFlags::CharsDecimal
(1)
Allow 0123456789.+-*/
UI::InputTextFlags::CharsHexadecimal
(2)
Allow 0123456789ABCDEFabcdef
UI::InputTextFlags::CharsScientific
(4)
Allow 0123456789.+-*/eE (Scientific notation input)
UI::InputTextFlags::CharsUppercase
(8)
Turn a..z into A..Z
UI::InputTextFlags::CharsNoBlank
(16)
Filter out spaces, tabs
UI::InputTextFlags::AllowTabInput
(32)
Pressing TAB input a ' ' character into the text field
UI::InputTextFlags::EnterReturnsTrue
(64)
Return 'true' when Enter is pressed (as opposed to every time the value was modified). Consider using IsItemDeactivatedAfterEdit() instead!
UI::InputTextFlags::EscapeClearsAll
(128)
Escape key clears content if not empty, and deactivate otherwise (contrast to default behavior of Escape to revert)
UI::InputTextFlags::CtrlEnterForNewLine
(256)
In multi-line mode: validate with Enter, add new line with Ctrl+Enter (default is opposite: validate with Ctrl+Enter, add line with Enter). Note that Shift+Enter always enter a new line either way.
UI::InputTextFlags::ReadOnly
(512)
Read-only mode
UI::InputTextFlags::Password
(1024)
Password mode, display all characters as '*', disable copy
UI::InputTextFlags::AlwaysOverwrite
(2048)
Overwrite mode
UI::InputTextFlags::AutoSelectAll
(4096)
Select entire text when first taking mouse focus
UI::InputTextFlags::ParseEmptyRefVal
(8192)
InputFloat(), InputInt(), InputScalar() etc. only: parse empty string as zero value.
UI::InputTextFlags::DisplayEmptyRefVal
(16384)
InputFloat(), InputInt(), InputScalar() etc. only: when value is zero, do not display it. Generally used with ParseEmptyRefVal.
UI::InputTextFlags::NoHorizontalScroll
(32768)
Disable following the cursor horizontally
UI::InputTextFlags::NoUndoRedo
(65536)
Disable undo/redo. Note that input text owns the text data while active, if you want to provide your own undo/redo stack you need e.g. to call ClearActiveID().
UI::InputTextFlags::ElideLeft
(131072)
When text doesn't fit, elide left side to ensure right side stays visible. Useful for path/filenames. Single-line only!
UI::InputTextFlags::CallbackCompletion
(262144)
Callback on pressing TAB (for completion handling)
UI::InputTextFlags::CallbackHistory
(524288)
Callback on pressing Up/Down arrows (for history handling)
UI::InputTextFlags::CallbackAlways
(1048576)
Callback on each iteration. User code may query cursor position, modify text buffer.
UI::InputTextFlags::CallbackCharFilter
(2097152)
Callback on character inputs to replace or discard them. Modify EventChar to replace or discard, or return 1 in callback to discard.
UI::InputTextFlags::WordWrap
(16777216)
InputTextMultiline(): word-wrap lines that are too long. This is a Beta feature and not well tested yet.