Skip to content

enum

SurfaceKind

pub enum SurfaceKind {
    Canvas2d,
    Scene3d,
    Shader,
    Particles,
}

What kind of drawing surface an element is.

Variants

Canvas2d

Canvas2d

A canvas2d element.

Scene3d

Scene3d

A scene3d element.

Shader

Shader

A shader element.

Particles

Particles

A particles2d background, drawn with Canvas 2D.

Methods

of

pub fn of(tag: &str) -> Option<SurfaceKind>

The surface an element with tag is (canvas2d, scene3d…), if it's one.

Trait implementations