API reference
Preparing search index…

ImGui.ImGuiInputTextCallbackDataFields

Text callback scalars; positions and lengths are UTF-8 bytes, not JS indices.

interface ImGuiInputTextCallbackDataFields {
    BufDirty: boolean;
    BufSize: number;
    BufTextLen: number;
    CursorPos: number;
    EventChar: number;
    EventFlag: number;
    EventKey: number;
    Flags: number;
    SelectionEnd: number;
    SelectionStart: number;
}
Source & inheritance
Member directory10

Properties

Properties

BufDirty: boolean

Set after editing Buf or BufTextLen in Completion/History/Always callbacks.

Source & inheritance
BufSize: number

Read-only buffer capacity in bytes including the NUL terminator.

Source & inheritance
BufTextLen: number

Text byte length excluding NUL; keep below BufSize and mark edits dirty.

Source & inheritance
CursorPos: number

Cursor byte offset in Buf for Completion/History/Always callbacks.

Source & inheritance
EventChar: number

CharFilter character in 16-bit ImWchar; replace it or set zero to reject.

Source & inheritance
EventFlag: number

Read-only callback event flag from ImGuiInputTextFlags, such as CallbackEdit.

Source & inheritance
EventKey: number

Read-only ImGuiKey for Completion/History: Tab, UpArrow or DownArrow.

Source & inheritance
Flags: number

Read-only input flags originally passed to the text widget.

Source & inheritance
SelectionEnd: number

Selection end byte offset; equals SelectionStart when nothing is selected.

Source & inheritance
SelectionStart: number

Selection start byte offset; equals SelectionEnd when nothing is selected.

Source & inheritance

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