|
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.
|
#include <builders.hpp>
Public Member Functions | |
| LineBuilder () noexcept=default | |
| Default constructor creates a builder with default values. | |
| auto | from (Point pt) noexcept -> LineBuilder & |
| Set the starting point of the line. | |
| auto | from (std::size_t x, std::size_t y) noexcept -> LineBuilder & |
| Set the starting point of the line using coordinates. | |
| auto | to (Point pt) noexcept -> LineBuilder & |
| Set the ending point of the line. | |
| auto | to (std::size_t x, std::size_t y) noexcept -> LineBuilder & |
| Set the ending point of the line using coordinates. | |
| auto | color (Color c) noexcept -> LineBuilder & |
| Set the line color. | |
| auto | width (DotPixel w) noexcept -> LineBuilder & |
| Set the line width. | |
| auto | style (LineStyle s) noexcept -> LineBuilder & |
| Set the line style. | |
| auto | with_style (const LineStyleSpec &line_style) noexcept -> LineBuilder & |
| Apply a reusable line style. | |
| auto | build () const noexcept -> LineCommand |
| Build the final LineCommand. | |
|
defaultnoexcept |
Default constructor creates a builder with default values.
|
inlinenoexcept |
Build the final LineCommand.
|
inlinenoexcept |
Set the line color.
| c | Line color |
|
inlinenoexcept |
Set the starting point of the line.
| pt | Starting point |
|
inlinenoexcept |
Set the starting point of the line using coordinates.
| x | Starting X coordinate |
| y | Starting Y coordinate |
|
inlinenoexcept |
Set the line style.
| s | Line style (solid/dotted) |
|
inlinenoexcept |
Set the ending point of the line.
| pt | Ending point |
|
inlinenoexcept |
Set the ending point of the line using coordinates.
| x | Ending X coordinate |
| y | Ending Y coordinate |
|
inlinenoexcept |
Set the line width.
| w | Line width |
|
inlinenoexcept |
Apply a reusable line style.
| line_style | Style specification to apply |