Skip to content

struct

SceneBuild

pub struct SceneBuild {
    pub scene: Scene,
    pub meta: Vec<ItemMeta>,
    pub html: Vec<HtmlAnchor>,
    pub classes: Vec<ObjectClasses>,
}

A scene3d element turned into a scene: its objects, what each one is in the template, and the HTML placed in it.

Fields

scene

pub scene: Scene

The scene.

meta

pub meta: Vec<ItemMeta>

Each object's metadata, in the same order.

html

pub html: Vec<HtmlAnchor>

html elements: real DOM (Weft UI components and all) placed in the scene.

classes

pub classes: Vec<ObjectClasses>

Each object's Tailwind classes (their base looks already applied; hover:, active: and focus: for the host to apply).

Trait implementations