Skip to content
API referenceDevelopmentEditor scriptingEngine ccf7d03f
Synced
  • Draws a single-line search field with a stable identifier.

API: scripting
Project: Inno.Editor.ImGui
Scope: Editor

public bool InnoEditor.ImGui.ImGuiWidget.SearchInput(string id, string hint, ref string query, nuint capacity = 256, float width = -1)

Escape clears a nonempty query before leaving text input on a subsequent press.

Parameter id: The stable control identifier.

Parameter hint: The hint shown while the query is empty.

Parameter query: The mutable search query.

Parameter capacity: The maximum UTF-8 buffer capacity.

Parameter width: The control width, or a negative value to fill the available space.

true when the query changed; otherwise, false.