Synced
ImGuiWidget.GetClickableTextSize
Section titled “ImGuiWidget.GetClickableTextSize”
- Calculates a clickable text area from visible text and requested inner padding.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Editor.ImGui
Declaration
Section titled “Declaration”public System.Numerics.Vector2 Inno.Editor.ImGui.ImGuiWidget.ImGuiWidget.GetClickableTextSize(string text, System.Numerics.Vector2 padding)Parameters
Section titled “Parameters”Parameter text: Visible text whose dimensions determine the content size.
Parameter padding: Horizontal and vertical padding surrounding the text.
Returns
Section titled “Returns”The complete transparent interaction area size.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentNullException: Thrown when text is null.
Exception T:System.ArgumentOutOfRangeException: Thrown when either component of padding is negative.