Skip to content
API referenceDevelopmentEditor scriptingEngine ccf7d03f
Synced
  • Draws a compact single-line rename editor inside an existing row.

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

public InnoEditor.ImGui.InlineRenameResult InnoEditor.ImGui.ImGuiWidget.InlineRename(string id, ref string text, ref bool requestFocus, float rowHeight, nuint capacity = 512, float width = -1)

Parameter id: The stable control identifier.

Parameter text: The mutable text buffer.

Parameter requestFocus: Whether keyboard focus and complete-value selection should be requested. The value remains true until the input becomes active and its current contents are selected.

Parameter rowHeight: The height of the row area in which the field is centered.

Parameter capacity: The maximum UTF-8 buffer capacity.

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

The current rename outcome.

Exception T:System.ArgumentException: Thrown when id is empty.

Exception T:System.ArgumentOutOfRangeException: Thrown when rowHeight is not finite or is not positive.