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

API: scripting
Project: Inno.Editor.ImGui
Scope: Editor

public System.Numerics.Vector2 InnoEditor.ImGui.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.