Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced
  • 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.

API: engine
Project: Inno.Editor.ImGui

public bool Inno.Editor.ImGui.ImGuiWidget.ImGuiWidget.ClickableIcon(string id, string icon, string? tooltip = null)

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.

true when the icon is pressed.

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

Exception T:System.ArgumentNullException: Thrown when icon is null.