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 | Public Attributes | List of all members
epaper::CircleCommand Struct Reference

Command for drawing a circle. More...

#include <commands.hpp>

Collaboration diagram for epaper::CircleCommand:
Collaboration graph
[legend]

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)
 

Detailed Description

Command for drawing a circle.

Encapsulates all parameters needed to draw a circle using midpoint algorithm. Constructed via CircleBuilder.

Member Semantics:

Algorithm:

Coordinate Clipping:

See also
CircleBuilder, Graphics::draw_circle()

Constructor & Destructor Documentation

◆ CircleCommand()

constexpr epaper::CircleCommand::CircleCommand ( Point  ctr,
std::size_t  r,
Color  c = Color::Black,
DotPixel  w = DotPixel::Pixel1x1,
DrawFill  f = DrawFill::Empty 
)
inlineconstexprnoexcept

Construct a circle command with specified parameters.

Parameters
ctrCenter point
rCircle radius
cCircle color (default: Black)
wBorder width (default: 1x1)
fFill mode (default: Empty)

Member Data Documentation

◆ border_width

DotPixel epaper::CircleCommand::border_width

◆ center

Point epaper::CircleCommand::center

◆ color

Color epaper::CircleCommand::color

◆ fill

DrawFill epaper::CircleCommand::fill

Fill mode (empty/full)

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

◆ radius

std::size_t epaper::CircleCommand::radius

Circle radius in pixels.

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

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