|
libepaper 2.0.0
A C++23 library for controlling Waveshare e-paper displays on Raspberry Pi, featuring transparent sleep/wake management and a fluent builder API.
|
Command for drawing a circle. More...
#include <commands.hpp>

Public Member Functions | |
| constexpr | CircleCommand (Point ctr, std::size_t r, Color c=Color::Black, DotPixel w=DotPixel::Pixel1x1, DrawFill f=DrawFill::Empty) noexcept |
| Construct a circle command with specified parameters. | |
Public Attributes | |
| Point | center |
| Center point. | |
| std::size_t | radius |
| Circle radius in pixels. | |
| Color | color |
| Circle color. | |
| DotPixel | border_width |
| Border width. | |
| DrawFill | fill |
| Fill mode (empty/full) | |
Command for drawing a circle.
Encapsulates all parameters needed to draw a circle using midpoint algorithm. Constructed via CircleBuilder.
Member Semantics:
center: Circle center point in logical coordinatesradius: Circle radius in pixels (always positive)color: Circle color (border and fill use same color)border_width: Thickness of circle outline (currently unimplemented - always 1px)fill: Empty (outline only) or Full (solid fill)Algorithm:
Coordinate Clipping:
|
inlineconstexprnoexcept |
Construct a circle command with specified parameters.
| ctr | Center point |
| r | Circle radius |
| c | Circle color (default: Black) |
| w | Border width (default: 1x1) |
| f | Fill mode (default: Empty) |
| DotPixel epaper::CircleCommand::border_width |
Border width.
| Point epaper::CircleCommand::center |
Center point.
| Color epaper::CircleCommand::color |
Circle color.
| DrawFill epaper::CircleCommand::fill |
Fill mode (empty/full)
| std::size_t epaper::CircleCommand::radius |
Circle radius in pixels.