|
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 line between two points. More...
#include <commands.hpp>

Public Member Functions | |
| constexpr | LineCommand (Point from_pt, Point to_pt, Color c=Color::Black, DotPixel w=DotPixel::Pixel1x1, LineStyle s=LineStyle::Solid) noexcept |
| Construct a line command with specified parameters. | |
Public Attributes | |
| Point | from |
| Starting point. | |
| Point | to |
| Ending point. | |
| Color | color |
| Line color. | |
| DotPixel | width |
| Line width. | |
| LineStyle | style |
| Line style (solid/dotted) | |
Command for drawing a line between two points.
Encapsulates all parameters needed to draw a line using Bresenham's algorithm. Constructed via LineBuilder for type-safe, expressive creation.
Member Semantics:
from, to: Line endpoints in logical coordinate space (pre-orientation)color: Pixel color (mode-dependent rendering via ColorManager)width: Line thickness (DotPixel::Pixel1x1 = 1px, Pixel2x2 = 2px, etc.)style: Solid (all pixels) or Dotted (alternating pixels)Implementation Notes:
|
inlineconstexprnoexcept |
Construct a line command with specified parameters.
| from_pt | Starting point |
| to_pt | Ending point |
| c | Line color (default: Black) |
| w | Line width (default: 1x1) |
| s | Line style (default: Solid) |
| Color epaper::LineCommand::color |
Line color.
| Point epaper::LineCommand::from |
Starting point.
| LineStyle epaper::LineCommand::style |
Line style (solid/dotted)
| Point epaper::LineCommand::to |
Ending point.
| DotPixel epaper::LineCommand::width |
Line width.