API reference
Preparing search index…

ImGui.ImGuiInputTextFlags

Const
ImGuiInputTextFlags: Readonly<
    {
        AllowTabInput: 32;
        AlwaysOverwrite: 2048;
        AutoSelectAll: 4096;
        CallbackAlways: 1048576;
        CallbackCharFilter: 2097152;
        CallbackCompletion: 262144;
        CallbackEdit: 8388608;
        CallbackHistory: 524288;
        CallbackResize: 4194304;
        CharsDecimal: 1;
        CharsHexadecimal: 2;
        CharsNoBlank: 16;
        CharsScientific: 4;
        CharsUppercase: 8;
        CtrlEnterForNewLine: 256;
        DisplayEmptyRefVal: 16384;
        ElideLeft: 131072;
        EnterReturnsTrue: 64;
        EscapeClearsAll: 128;
        NoHorizontalScroll: 32768;
        None: 0;
        NoUndoRedo: 65536;
        ParseEmptyRefVal: 8192;
        Password: 1024;
        ReadOnly: 512;
    },
> = ...

Text input filtering, editing and callback options.

Type declaration

  • ReadonlyAllowTabInput: 32

    Insert a tab character when Tab is pressed.

  • ReadonlyAlwaysOverwrite: 2048

    Replace existing characters instead of inserting.

  • ReadonlyAutoSelectAll: 4096

    Select all text when first receiving mouse focus.

  • ReadonlyCallbackAlways: 1048576

    Invoke a callback each active update to inspect or edit the buffer.

  • ReadonlyCallbackCharFilter: 2097152

    Invoke a callback to replace or reject each input character.

  • ReadonlyCallbackCompletion: 262144

    Invoke the completion callback on Tab.

  • ReadonlyCallbackEdit: 8388608

    Invoke the callback whenever text is edited.

  • ReadonlyCallbackHistory: 524288

    Invoke the history callback on Up/Down.

  • ReadonlyCallbackResize: 4194304

    Request buffer growth through a callback; honor the supplied BufSize.

  • ReadonlyCharsDecimal: 1

    Accept decimal digits, decimal point and arithmetic operators.

  • ReadonlyCharsHexadecimal: 2

    Accept only 0-9, A-F and a-f.

  • ReadonlyCharsNoBlank: 16

    Reject spaces and tabs.

  • ReadonlyCharsScientific: 4

    Accept decimal arithmetic characters plus e/E for exponents.

  • ReadonlyCharsUppercase: 8

    Convert ASCII a-z input to A-Z.

  • ReadonlyCtrlEnterForNewLine: 256

    Multiline: Enter commits, Ctrl+Enter inserts a newline.

  • ReadonlyDisplayEmptyRefVal: 16384

    Numeric inputs only: display zero as an empty string.

  • ReadonlyElideLeft: 131072

    Single-line only: elide the left side to keep the end visible.

  • ReadonlyEnterReturnsTrue: 64

    Return true on Enter instead of on every edit.

  • ReadonlyEscapeClearsAll: 128

    Escape clears nonempty text; if already empty, it deactivates input.

  • ReadonlyNoHorizontalScroll: 32768

    Do not scroll horizontally to follow the text cursor.

  • ReadonlyNone: 0

    Use normal editable text input.

  • ReadonlyNoUndoRedo: 65536

    Disable the built-in undo and redo history.

  • ReadonlyParseEmptyRefVal: 8192

    Numeric inputs only: interpret an empty string as zero.

  • ReadonlyPassword: 1024

    Display characters as asterisks and disable copying.

  • ReadonlyReadOnly: 512

    Allow reading and selection, but no edits.

Source & inheritance

Icons made by Lorc, Delapouite & Skoll · game-icons.net · CC BY 3.0