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.
Loading...
Searching...
No Matches
Public Member Functions | List of all members
epaper::PointBuilder Class Reference

#include <builders.hpp>

Public Member Functions

 PointBuilder () noexcept=default
 Default constructor creates a builder with default values.
 
auto at (Point pt) noexcept -> PointBuilder &
 Set the position of the point.
 
auto at (std::size_t x, std::size_t y) noexcept -> PointBuilder &
 Set the position using coordinates.
 
auto color (Color c) noexcept -> PointBuilder &
 Set the point color.
 
auto size (DotPixel s) noexcept -> PointBuilder &
 Set the point size.
 
auto build () const noexcept -> PointCommand
 Build the final PointCommand.
 

Constructor & Destructor Documentation

◆ PointBuilder()

epaper::PointBuilder::PointBuilder ( )
defaultnoexcept

Default constructor creates a builder with default values.

Examples
/mnt/nas/libepaper/include/epaper/draw/builders.hpp.

Member Function Documentation

◆ at() [1/2]

auto epaper::PointBuilder::at ( Point  pt) -> PointBuilder &
inlinenoexcept

Set the position of the point.

Parameters
ptPoint position
Returns
Reference to this builder for chaining
Examples
/mnt/nas/libepaper/include/epaper/draw/builders.hpp.

◆ at() [2/2]

auto epaper::PointBuilder::at ( std::size_t  x,
std::size_t  y 
) -> PointBuilder &
inlinenoexcept

Set the position using coordinates.

Parameters
xX coordinate
yY coordinate
Returns
Reference to this builder for chaining

◆ build()

auto epaper::PointBuilder::build ( ) const -> PointCommand
inlinenoexcept

Build the final PointCommand.

Returns
PointCommand ready to be passed to Display::draw()
Examples
/mnt/nas/libepaper/include/epaper/draw/builders.hpp.

◆ color()

auto epaper::PointBuilder::color ( Color  c) -> PointBuilder &
inlinenoexcept

Set the point color.

Parameters
cPoint color
Returns
Reference to this builder for chaining
Examples
/mnt/nas/libepaper/include/epaper/draw/builders.hpp.

◆ size()

auto epaper::PointBuilder::size ( DotPixel  s) -> PointBuilder &
inlinenoexcept

Set the point size.

Parameters
sPoint size
Returns
Reference to this builder for chaining
Examples
/mnt/nas/libepaper/include/epaper/draw/builders.hpp.

The documentation for this class was generated from the following file: