API reference
Preparing search index…

StyleSheetContainer

Owned or read-only shared Rml::StyleSheetContainer.

Load and merge before compilation. Compiled views retain the container's native storage and expire on every rebuild, including document media updates. Document getters return read-only containers: load, merge and update throw.

Source & inheritance
Member directory6

Constructors

Methods

Constructors

Methods

  • Invoke LoadStyleSheetContainer using UTF-8 text or a native stream.

    Parameters

    source
    string | Stream

    RCSS text or stream appended to the uncompiled container.

    sourceUrl
    string = ''

    Text origin; streams use their own URL. Defaults empty.

    beginLineNumber
    number = 1

    Positive source line number; defaults to 1.

    Returns

    boolean

    Upstream parser result; failure can leave partially parsed rules.

    Normal event listeners may create/load/combine independent containers. Borrowed or compiled containers cannot be loaded; parsing, provider and effect callbacks cannot reenter these operations.

    Source & inheritance
  • Invoke Rml::StyleSheetContainer::UpdateCompiledStyleSheet.

    Parameters

    context

    Context providing viewport, density and active themes.

    Returns

    boolean

    True if rebuilt, invalidating every previous compiled view.

    Source & inheritance

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