Crate nanovg Copy item path Source Alignment Color A 32-bit color value.
Used to fill or stroke paths with solid color. Context A initialized NanoVG context - the central type which all operations rely on. ContextBuilder A builder that configures and constructs a NanoVG context. FillOptions Controls how filling in a path should look. Font A handle to a font.
Fonts are managed by the NanoVG context itself. View this type only as a ‘reference’ to a font. Frame A frame which can draw paths.
All NanoVG path drawing operations are done on a frame. GlyphPosition Image An owned image. ImageBuilder ImagePattern Image pattern paint used to fill or stroke paths with image pattern. Intersect Define intersection scissor which gets intersected with ‘with’ Scissor.
Pixels drawn outside of this intersection are clipped.
When ‘with’ Scissor or this Intersection have rotation, the intersection will be an approximation. Path A path, the main type for most NanoVG drawing operations. PathOptions Options which control how a path is rendered. Scissor A scissor defines a region on the screen in which drawing operations are allowed.
Pixels drawn outside of this region are clipped. StrokeOptions Controls how stroking a path should look. TextBounds Struct to store min and max bounds when measuring text with text_bounds or text_box_bounds TextBreakLines Iterator over rows in text
Returned by Context::text_break_lines TextGlyphPositions Iterator over text glyph positions, calculated by Context::text_glyph_positions TextMetrics Struct to store measured text metrics computed with Context::text_metrics TextOptions Options which control the visual appearance of a text. TextRow Holds computed values for given row. Transform Represents a transformation in 2D space. BasicCompositeOperation BlendFactor Clip Define how to clip specified region. CompositeOperation CreateFontError Direction Gradient Gradient paint used to fill or stroke paths with gradient. ImageBuilderError LineCap Controls how the end of line is drawn. LineJoin Controls how lines are joined together. Solidity Winding Winding enum that holds either Direction or Solidity enum
These two are identical aliases.
They are here for different meanings in different contexts Paint CreateFontResult ImageBuilderResult