API reference
Preparing search index…

ContextInstancer

Checked Rml::ContextInstancer with native allocation and release ownership.

An omitted callback selects the native Rml::Context constructor. A callback delegates to another ContextInstancer and returns its owned allocation. The name, manager and input handler must match the requested arguments. Direct creation does not register with Rml::GetContext. Factory registration makes createContext use this adapter and transfers native ownership to Core. Registered adapters remain alive through shutdown, including replacement. Owned context descendants retain a visible V8 owner edge; closure cycles can collect. Native destruction is synchronous, with release snapshots delivered afterwards at a safe boundary. Environment cleanup invokes no JS.

Source & inheritance
Member directory3

Constructors

Methods

Constructors

Methods

  • Instance an owned context without registration or plugin creation notices.

    Parameters

    name
    string

    Native context name; need not be unique in Core.

    manager

    Live native manager retained until context release.

    handler

    Borrowed native input handler, or null.

    Returns

    null | Context

    Owned context with native default dimensions and density.

    Source & inheritance
  • Release an owned context allocated by this exact outer instancer.

    Parameters

    context

    Owned allocation; registered contexts reject.

    Returns

    void
    Source & inheritance

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