API reference
Preparing search index…

Native-owned Rml::NumericValue with mapped number and unit fields.

Views retain only this independent native value. They remain usable after wrapper collection and RmlUi shutdown, including in a worker. Native operations reject non-finite numbers and unknown unit bits written directly through the views. Unit sets can be stored and compared; element resolution requires a single applicable unit.

Source & inheritance
Member directory8

Constructors

Accessors

Methods

Constructors

  • Create a numeric style value with a finite number and its unit.

    Parameters

    number
    number = 0

    Finite float; defaults to zero.

    unit
    Unit = Unit.UNKNOWN

    Native unit or unit set; defaults to UNKNOWN.

    Returns

    Source & inheritance

Accessors

  • get number(): number

    Mapped Rml::NumericValue::number; writes round to float32.

    Returns

    number

    Native number.

    Source & inheritance
  • set number(value: number): void

    Write the native float32 number.

    Parameters

    value
    number

    Finite number within float32 range.

    Returns

    void
    Source & inheritance
  • get numberView(): Float32Array

    Writable one-float view of the actual native number field.

    Returns

    Float32Array

    Shared view, independent of wrapper lifetime.

    Source & inheritance
  • get unitView(): Int32Array

    Writable one-integer view of the actual native unit field.

    Returns

    Int32Array

    Shared view, independent of wrapper lifetime.

    Source & inheritance

Methods

Icons made by Lorc, Delapouite & Skoll · game-icons.net · CC BY 3.0