Skip to content
API referenceDevelopmentEditor scriptingEngine ccf7d03f
Synced
  • Draws wrapped non-interactive text as a centered block inside a padded layout area.

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

public void InnoEditor.ImGui.ImGuiWidget.CenteredWrappedText(string text, System.Numerics.Vector2 areaSize, System.Numerics.Vector2 padding)

Parameter text: The literal text to wrap and draw.

Parameter areaSize: The complete area reserved by the widget.

Parameter padding: The minimum horizontal and vertical distance retained from the area edges whenever space permits.

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

Exception T:System.ArgumentOutOfRangeException: Thrown when an area component is not positive or a padding component is negative.