• Functions to manipulate a label component.

See LabelProperties for related properties.

Static methods

@:native("get_text")staticgetText(url:HashOrStringOrUrl):String

  • Gets the text from a label component

Returns:

the label text

@:native("get_text_metrics")staticgetTextMetrics(url:HashOrStringOrUrl):LabelTextMetrics

  • Gets the text metrics from a label component

Parameters:

url

the label to get the (unscaled) metrics from

@:native("set_text")staticsetText(url:UrlOrString, text:HashOrString):Void

  • Set the text for a label.

Parameters:

url

the label that should have a constant set

text

the text