Expand description
Drawing-related items Functions for drawing in Carnelian Carnelian uses the Render abstraction over Forma and Spinel to put pixels on screen. The items in this module are higher- level drawing primitives.
Structs§
- Font
Face - Struct containing a font data.
- Glyph
- Glyph
Map - Paint
- Struct combining a foreground and background color.
- Text
- Text
Grid - Struct containing text grid details.
Enums§
- Display
Rotation - Some Fuchsia device displays are mounted rotated. This value represents The supported rotations and can be used by views to rotate their content to display appropriately when running on the frame buffer.
Functions§
- linebreak_
text - Break up text into chunks guaranteed to be no wider than max_width when rendered with face at font_size.
- load_
font - Load a font from the provided path.
- measure_
text_ size - Return the size in pixels for the specified text, face and size.
- measure_
text_ width - Return the width in pixels for the specified text, face and size.
- path_
for_ circle - Create a render path for the specified circle.
- path_
for_ corner_ knockouts - Create a path for knocking out the points of a rectangle, giving it a rounded appearance.
- path_
for_ cursor - Create a render path for a fuchsia-style teardrop cursor.
- path_
for_ polygon - Create a render path for the specified polygon.
- path_
for_ rectangle - Create a render path for the specified rectangle.
- path_
for_ rounded_ rectangle - Create a render path for the specified rounded rectangle.