API reference
Preparing search index…

Shared Rml::Decorator returned by an instancer.

Manual element data is independent of RmlUi's automatic per-element data. The decorator belongs to its instancing render manager and is invalidated when that manager is released or the runtime shuts down.

Type Parameters

  • Data extends object = object

    Custom per-element callback data.

Source & inheritance
Member directory7

Constructors

Methods

Constructors

Methods

  • Add a texture to a custom decorator; Rml::Decorator::AddTexture.

    Parameters

    texture

    Texture from this decorator's render manager.

    Returns

    number

    Native index, or -1 for an invalid texture.

    Source & inheritance
  • Return the custom decorator's Rml::Decorator::GetNumTextures.

    Returns

    number

    Number of valid textures previously added.

    Source & inheritance
  • Get a custom decorator texture; Rml::Decorator::GetTexture.

    Parameters

    index
    number = 0

    Native index; defaults to zero.

    Returns

    Texture, or an invalid texture when the index is out of range.

    Source & inheritance

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