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::LineCommand Struct Reference

Command for drawing a line between two points. More...

#include <commands.hpp>

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

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)
 

Detailed Description

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:

Implementation Notes:

See also
LineBuilder, Graphics::draw_line()

Constructor & Destructor Documentation

◆ LineCommand()

constexpr epaper::LineCommand::LineCommand ( Point  from_pt,
Point  to_pt,
Color  c = Color::Black,
DotPixel  w = DotPixel::Pixel1x1,
LineStyle  s = LineStyle::Solid 
)
inlineconstexprnoexcept

Construct a line command with specified parameters.

Parameters
from_ptStarting point
to_ptEnding point
cLine color (default: Black)
wLine width (default: 1x1)
sLine style (default: Solid)

Member Data Documentation

◆ color

Color epaper::LineCommand::color

◆ from

Point epaper::LineCommand::from

◆ style

LineStyle epaper::LineCommand::style

Line style (solid/dotted)

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

◆ to

Point epaper::LineCommand::to

◆ width

DotPixel epaper::LineCommand::width

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