ImGuiInputTextCallbackData

imguicpp.ImGuiInputTextCallbackData (extern class)

Static Members

deleteChars(self: cpp.Star, pos: Int, bytesCount: Int): Void
Name Type
self cpp.Star
pos Int
bytesCount Int

insertChars(self: cpp.Star, pos: Int, text: cpp.ConstCharStar, ?textEnd: cpp.ConstCharStar = null): Void
Name Type Default
self cpp.Star
pos Int
text cpp.ConstCharStar
textEnd cpp.ConstCharStar null

selectAll(self: cpp.Star): Void
Name Type
self cpp.Star

setSelection(self: cpp.Star, s: Int, e: Int): Void
Name Type
self cpp.Star
s Int
e Int

clearSelection(self: cpp.Star): Void
Name Type
self cpp.Star

hasSelection(self: cpp.Star): Bool
Name Type
self cpp.Star
Returns
Bool

Instance Members

Parent UI context


eventFlag: Int

One ImGuiInputTextFlags_Callback* // Read-only


flags: Int

What user passed to InputText() // Read-only


What user passed to InputText() // Read-only


id: UInt

Widget ID // Read-only


eventKey: Int

Key pressed (Up/Down/TAB) // Read-only // [Completion,History]


eventChar: cpp.UInt16

Character input // Read-write // [CharFilter] Replace character with another one, or set to zero to drop. return 1 is equivalent to setting EventChar=0;


eventActivated: Bool

Input field just got activated // Read-only // [Always]


bufDirty: Bool

Set if you modify Buf/BufTextLen! // Write // [Completion,History,Always]


Text buffer // Read-write // [Resize] Can replace pointer / [Completion,History,Always] Only write to pointed data, don't replace the actual pointer!


bufTextLen: Int

Text length (in bytes) // Read-write // [Resize,Completion,History,Always] Exclude zero-terminator storage. In C land: == strlen(some_text), in C++ land: string.length()


bufSize: Int

Buffer size (in bytes) = capacity+1 // Read-only // [Resize,Completion,History,Always] Include zero-terminator storage. In C land: == ARRAYSIZE(my_char_array), in C++ land: string.capacity()+1


cursorPos: Int

// Read-write // [Completion,History,Always,CharFilter]


selectionStart: Int

// Read-write // [Completion,History,Always,CharFilter] == to SelectionEnd when no selection


selectionEnd: Int

// Read-write // [Completion,History,Always,CharFilter]

Metadata

Name Parameters
:structAccess -
:include "linc_imgui.h"