Synced
ImGuiWidget.ClickableText
Section titled “ImGuiWidget.ClickableText”
- Draws clickable text centered inside an explicitly sized transparent interaction area.
Required contracts
Section titled “Required contracts”API: scripting
Project: Inno.Editor.ImGui
Scope: Editor
Declaration
Section titled “Declaration”public bool InnoEditor.ImGui.ImGuiWidget.ClickableText(string id, string text, System.Numerics.Vector2 controlSize, string? tooltip = null)Parameters
Section titled “Parameters”Parameter id: Stable identifier used by ImGui to track the interaction.
Parameter text: Visible text or icon glyph.
Parameter controlSize: Size of the transparent interaction area.
Parameter tooltip: Optional tooltip displayed while the interaction is hovered.
Returns
Section titled “Returns”true when the text is pressed.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentException: Thrown when id is empty.
Exception T:System.ArgumentNullException: Thrown when text is null.
Exception T:System.ArgumentOutOfRangeException: Thrown when either component of controlSize is not positive.