ImGuiInputTextCallbackData
Static Members
| 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 |
| Name | Type |
|---|---|
self |
cpp.Star |
| Name | Type |
|---|---|
self |
cpp.Star |
s |
Int |
e |
Int |
| Name | Type |
|---|---|
self |
cpp.Star |
| Name | Type |
|---|---|
self |
cpp.Star |
| Returns |
|---|
| Bool |
Instance Members
ctx: cpp.StarParent UI context
eventFlag: IntOne ImGuiInputTextFlags_Callback* // Read-only
flags: IntWhat user passed to InputText() // Read-only
userData: cpp.RawPointer<cpp.Void>What user passed to InputText() // Read-only
id: UIntWidget ID // Read-only
eventKey: IntKey pressed (Up/Down/TAB) // Read-only // [Completion,History]
eventChar: cpp.UInt16Character input // Read-write // [CharFilter] Replace character with another one, or set to zero to drop. return 1 is equivalent to setting EventChar=0;
eventActivated: BoolInput field just got activated // Read-only // [Always]
bufDirty: BoolSet if you modify Buf/BufTextLen! // Write // [Completion,History,Always]
buf: cpp.StarText buffer // Read-write // [Resize] Can replace pointer / [Completion,History,Always] Only write to pointed data, don't replace the actual pointer!
bufTextLen: IntText 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: IntBuffer 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" |