GuiGetTextWidth method

int GuiGetTextWidth(
  1. String? text
)

Get text width considering gui style and icon size (if required)

Implementation

int GuiGetTextWidth(
  String? text,
) => run(
  () => _debugLabels.GuiGetTextWidth(text),
  () => _flat.GuiGetTextWidth(
    $.String$.ValueOrNull(text),
  ),
);