Skip to content
pixi-silk
GitHub repository
Function

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#

ParameterType
backendSilkBackend
layoutMessageLayout
stylesStyleTable
handle?TextBufferHandle

Returns#

TextBufferHandle