Sigil

Surface

A rectangle that the embed host draws.

GUIsurface

Preview

Surface, Default, light themeSurface, Default, dark theme

Usage example

fn surface_demo() -> NodeBuilder {    surface(7).layout(LayoutStyle::flex_column().fixed_size(160.0, 48.0))}
fn surface_demo() -> NodeBuilder {  surface(7).layout(    LayoutStyle::flex_column()      .fixed_size(160.0, 48.0),  )}

API

NameSignaturePurpose
surfacefn surface(key: u64) -> NodeBuilderA rectangle that the embed host draws.