Skip to main content

Crate uzor_render

Crate uzor_render 

Source
Expand description

Platform-agnostic rendering abstraction for uzor

Modules§

icons
SVG icon catalog for map rendering

Enums§

RenderOp
Render instructions that can be serialized
TextAlign
Text alignment for rendering
TextBaseline
Text baseline for rendering

Traits§

RenderContext
Platform-agnostic rendering context
RenderContextExt
Extension trait for platform-specific blur features

Functions§

crisp
Make value crisp at device pixel boundaries
crisp_rect
Make rectangle crisp at device pixel boundaries
draw_svg_icon
Draw an SVG icon scaled to fit within the given rectangle.
draw_svg_icon_rotated
Draw an SVG icon with rotation around its center using pure trigonometric rotation.
execute_ops
Execute render operations on a context

Type Aliases§

RenderOps
Collection of render operations