Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced
  • Calculates a clickable text area from visible text and requested inner padding.

API: engine
Project: Inno.Editor.ImGui

public System.Numerics.Vector2 Inno.Editor.ImGui.ImGuiWidget.ImGuiWidget.GetClickableTextSize(string text, System.Numerics.Vector2 padding)

Parameter text: Visible text whose dimensions determine the content size.

Parameter padding: Horizontal and vertical padding surrounding the text.

The complete transparent interaction area size.

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

Exception T:System.ArgumentOutOfRangeException: Thrown when either component of padding is negative.