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§
- Struct containing a font data.
- Struct combining a foreground and background color.
- Struct containing text grid details.
Enums§
- 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§
- Break up text into chunks guaranteed to be no wider than max_width when rendered with face at font_size.
- Load a font from the provided path.
- Return the size in pixels for the specified text, face and size.
- Return the width in pixels for the specified text, face and size.
- Create a render path for the specified circle.
- Create a path for knocking out the points of a rectangle, giving it a rounded appearance.
- Create a render path for a fuchsia-style teardrop cursor.
- Create a render path for the specified polygon.
- Create a render path for the specified rectangle.
- Create a render path for the specified rounded rectangle.