Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced
  • Draws clickable text centered inside an explicitly sized transparent interaction area.

API: engine
Project: Inno.Editor.ImGui

public bool Inno.Editor.ImGui.ImGuiWidget.ImGuiWidget.ClickableText(string id, string text, System.Numerics.Vector2 controlSize, string? tooltip = null)

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.

true when the text is pressed.

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.