Synced
ImGuiWidget.ClickableIcon
Section titled “ImGuiWidget.ClickableIcon”
- Draws a clickable icon inside the same square interaction slot used by editor close controls. The icon has no resting background and changes only its glyph color while hovered or active.
Required contracts
Section titled “Required contracts”API: scripting
Project: Inno.Editor.ImGui
Scope: Editor
Declaration
Section titled “Declaration”public bool InnoEditor.ImGui.ImGuiWidget.ClickableIcon(string id, string icon, string? tooltip = null)Parameters
Section titled “Parameters”Parameter id: Stable identifier used by ImGui to track the interaction.
Parameter icon: The visible icon glyph.
Parameter tooltip: Optional tooltip displayed while the interaction is hovered.
Returns
Section titled “Returns”true when the icon is pressed.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentException: Thrown when id is empty.
Exception T:System.ArgumentNullException: Thrown when icon is null.