Synced
ImGuiWidget.SearchInput
Section titled “ImGuiWidget.SearchInput”
- Draws a single-line search field with a stable identifier.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Editor.ImGui
Declaration
Section titled “Declaration”public bool Inno.Editor.ImGui.ImGuiWidget.ImGuiWidget.SearchInput(string id, string hint, ref string query, nuint capacity = 256, float width = -1)Remarks
Section titled “Remarks”Escape clears a nonempty query before leaving text input on a subsequent press.
Parameters
Section titled “Parameters”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.
Returns
Section titled “Returns”true when the query changed; otherwise, false.