Skip to main content

Module symbols

Module symbols 

Source
Expand description

Component symbol definitions.

Each component type maps to a vector symbol defined as a series of path commands (move_to, line_to, arc_to, close). These render at any resolution with zero texture memory when drawn with Lyon or a similar path rasterizer.

Enums§

PathCmd
A path command for vector symbol rendering.
SymbolType
Enumeration of all symbol types used in the layout.

Functions§

symbol_for_kind
A symbol identifier string used in the layout JSON. At runtime, the shader/renderer maps this to the actual path commands.
symbol_paths
Get the path commands for a given symbol type.