29SmoothShape
SmoothWedgedLine(FpPoint a,
float width_a, FpPoint b,
float width_b,
35 float radius, Color
color,
36 Color interior_color = color::Transparent);
40 float radius,
float thickness, Color
color,
41 Color interior_color = color::Transparent);
45 float radius, Color
color);
52 Color interior_color = color::Transparent);
57 Color interior_color = color::Transparent);
64 float angle, Color
color);
67SmoothShape
SmoothArc(FpPoint center,
float radius,
float angle_start,
68 float angle_end, Color
color);
71SmoothShape
SmoothThickArc(FpPoint center,
float radius,
float thickness,
72 float angle_start,
float angle_end, Color
color,
76SmoothShape
SmoothPie(FpPoint center,
float radius,
float angle_start,
77 float angle_end, Color
color);
81 FpPoint center,
float radius,
float thickness,
float angle_start,
82 float angle_end, Color active_color, Color inactive_color,
202 float y1,
float radius,
204 Color interior_color);
207 float height,
float angle,
218 void drawTo(
const Surface&
s)
const override;
Axis-aligned integer rectangle.
ARGB8888 color stored as a 32-bit unsigned integer.
Drawable that can provide a color for any point within its extents.
Smooth (anti-aliased) shape rasterizable.
friend SmoothShape SmoothThickArcImpl(FpPoint center, float radius, float thickness, float angle_start, float angle_end, Color active_color, Color inactive_color, Color interior_color, EndingStyle ending_style, bool trim_to_active)
void readColors(const int16_t *x, const int16_t *y, uint32_t count, Color *result) const override
Read colors for the given points.
friend SmoothShape SmoothFilledTriangle(FpPoint a, FpPoint b, FpPoint c, Color color)
Create a filled triangle.
friend SmoothShape SmoothRotatedFilledRect(FpPoint center, float width, float height, float angle, Color color)
Create a rotated filled rectangle.
friend SmoothShape SmoothWedgedLine(FpPoint a, float width_a, FpPoint b, float width_b, Color color, EndingStyle ending_style)
Create a wedged line with different start/end widths.
Box extents() const override
Return the bounding box encompassing all pixels that need to be drawn.
friend SmoothShape SmoothThickRoundRect(float x0, float y0, float x1, float y1, float radius, float thickness, Color color, Color interior_color)
Create an outlined round-rect with thickness.
bool readColorRect(int16_t xMin, int16_t yMin, int16_t xMax, int16_t yMax, Color *result) const override
Read colors for a rectangle.
Low-level handle used to draw to an underlying device.
Defines 140 opaque HTML named colors.
SmoothShape SmoothFilledCircle(FpPoint center, float radius, Color color)
Create a filled circle.
SmoothShape SmoothThickArc(FpPoint center, float radius, float thickness, float angle_start, float angle_end, Color color, EndingStyle ending_style)
Create an arc with thickness.
SmoothShape SmoothFilledTriangle(FpPoint a, FpPoint b, FpPoint c, Color color)
Create a filled triangle.
SmoothShape SmoothRotatedFilledRect(FpPoint center, float width, float height, float angle, Color color)
Create a rotated filled rectangle.
SmoothShape SmoothThickCircle(FpPoint center, float radius, float thickness, Color color, Color interior_color)
Create a circle with thickness (ring).
SmoothShape SmoothRoundRect(float x0, float y0, float x1, float y1, float radius, Color color, Color interior_color)
Create an outlined round-rect.
SmoothShape SmoothCircle(FpPoint center, float radius, Color color, Color interior_color)
Create a circle (optionally with interior color).
EndingStyle
Line ending style for smooth shapes.
SmoothShape SmoothThickArcWithBackground(FpPoint center, float radius, float thickness, float angle_start, float angle_end, Color active_color, Color inactive_color, Color interior_color, EndingStyle ending_style)
Create an arc with background and interior colors.
SmoothShape SmoothWedgedLine(FpPoint a, float width_a, FpPoint b, float width_b, Color color, EndingStyle ending_style)
Create a wedged line with different start/end widths.
SmoothShape SmoothLine(FpPoint a, FpPoint b, Color color)
Create a 1-pixel-wide anti-aliased line.
SmoothShape SmoothPie(FpPoint center, float radius, float angle_start, float angle_end, Color color)
Create a pie slice.
SmoothShape SmoothFilledRoundRect(float x0, float y0, float x1, float y1, float radius, Color color)
Create a filled round-rect.
SmoothShape SmoothThickRoundRect(float x0, float y0, float x1, float y1, float radius, float thickness, Color color, Color interior_color)
Create an outlined round-rect with thickness.
SmoothShape SmoothArc(FpPoint center, float radius, float angle_start, float angle_end, Color color)
Create a 1-pixel-wide arc.
SmoothShape SmoothThickLine(FpPoint a, FpPoint b, float width, Color color, EndingStyle ending_style)
Create a line with width and ending style.
Public API surface for roo_display display, touch, and drawing utilities.
Color outline_active_color
float start_cutoff_x_slope
float start_cutoff_y_slope
Color outline_inactive_color