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::CircleBuilder Class Reference

#include <builders.hpp>

Public Member Functions

 CircleBuilder () noexcept=default
 Default constructor creates a builder with default values.
 
auto center (Point pt) noexcept -> CircleBuilder &
 Set the center point of the circle.
 
auto center (std::size_t x, std::size_t y) noexcept -> CircleBuilder &
 Set the center point using coordinates.
 
auto radius (std::size_t r) noexcept -> CircleBuilder &
 Set the circle radius.
 
auto color (Color c) noexcept -> CircleBuilder &
 Set the circle color.
 
auto border_width (DotPixel w) noexcept -> CircleBuilder &
 Set the border width.
 
auto fill (DrawFill f) noexcept -> CircleBuilder &
 Set the fill mode.
 
auto with_style (const ShapeStyleSpec &shape_style) noexcept -> CircleBuilder &
 Apply a reusable shape style.
 
auto build () const noexcept -> CircleCommand
 Build the final CircleCommand.
 

Constructor & Destructor Documentation

◆ CircleBuilder()

epaper::CircleBuilder::CircleBuilder ( )
defaultnoexcept

Default constructor creates a builder with default values.

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

Member Function Documentation

◆ border_width()

auto epaper::CircleBuilder::border_width ( DotPixel  w) -> CircleBuilder &
inlinenoexcept

Set the border width.

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

◆ build()

auto epaper::CircleBuilder::build ( ) const -> CircleCommand
inlinenoexcept

◆ center() [1/2]

auto epaper::CircleBuilder::center ( Point  pt) -> CircleBuilder &
inlinenoexcept

Set the center point of the circle.

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

◆ center() [2/2]

auto epaper::CircleBuilder::center ( std::size_t  x,
std::size_t  y 
) -> CircleBuilder &
inlinenoexcept

Set the center point using coordinates.

Parameters
xCenter X coordinate
yCenter Y coordinate
Returns
Reference to this builder for chaining

◆ color()

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

Set the circle color.

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

◆ fill()

auto epaper::CircleBuilder::fill ( DrawFill  f) -> CircleBuilder &
inlinenoexcept

Set the fill mode.

Parameters
fFill mode (Empty or Full)
Returns
Reference to this builder for chaining
Examples
/mnt/nas/libepaper/include/epaper/draw/builders.hpp.

◆ radius()

auto epaper::CircleBuilder::radius ( std::size_t  r) -> CircleBuilder &
inlinenoexcept

Set the circle radius.

Parameters
rRadius in pixels
Returns
Reference to this builder for chaining
Examples
/mnt/nas/libepaper/include/epaper/draw/builders.hpp.

◆ with_style()

auto epaper::CircleBuilder::with_style ( const ShapeStyleSpec shape_style) -> CircleBuilder &
inlinenoexcept

Apply a reusable shape style.

Parameters
shape_styleStyle specification to apply
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: