Class: ImGuiInputTextCallbackData
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- ImGuiInputTextCallbackData
- Defined in:
- lib/imgui.rb
Overview
Shared state of InputText(), passed as an argument to your callback when a ImGuiInputTextFlags_Callback* flag is used. The callback function should return 0 by default. Callbacks (follow a flag name and see comments in ImGuiInputTextFlags_ declarations for more details)
-
ImGuiInputTextFlags_CallbackEdit: Callback on buffer edit (note that InputText() already returns true on edit, the callback is useful mainly to manipulate the underlying buffer while focus is active)
-
ImGuiInputTextFlags_CallbackAlways: Callback on each iteration
-
ImGuiInputTextFlags_CallbackCompletion: Callback on pressing TAB
-
ImGuiInputTextFlags_CallbackHistory: Callback on pressing Up/Down arrows
-
ImGuiInputTextFlags_CallbackCharFilter: Callback on character inputs to replace or discard them. Modify ‘EventChar’ to replace or discard, or return 1 in callback to discard.
-
ImGuiInputTextFlags_CallbackResize: Callback on buffer capacity changes request (beyond ‘buf_size’ parameter value), allowing the string to grow.