submitLayout
import { submitLayout } from 'pixi-silk/i18n';
function submitLayout(
backend: SilkBackend,
layout: MessageLayout,
styles: StyleTable,
handle?: TextBufferHandle
): TextBufferHandle;
Drives any SilkBackend from the core: uploads a laid out message and its style rows. It is all the glue a renderer needs besides drawing.
Parameters#
| Parameter | Type |
|---|---|
backend | SilkBackend |
layout | MessageLayout |
styles | StyleTable |
handle? | TextBufferHandle |