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

Command for drawing a point (pixel or multi-pixel dot). More...

#include <commands.hpp>

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

Public Member Functions

constexpr PointCommand (Point pos, Color c=Color::Black, DotPixel s=DotPixel::Pixel1x1) noexcept
 Construct a point command with specified parameters.
 

Public Attributes

Point position
 Point position.
 
Color color
 Point color.
 
DotPixel pixel_size
 Point size.
 

Detailed Description

Command for drawing a point (pixel or multi-pixel dot).

Encapsulates all parameters needed to draw a point. Constructed via PointBuilder.

Member Semantics:

Pixel Size Rendering:

Centering Behavior:

See also
PointBuilder, DotPixel

Constructor & Destructor Documentation

◆ PointCommand()

constexpr epaper::PointCommand::PointCommand ( Point  pos,
Color  c = Color::Black,
DotPixel  s = DotPixel::Pixel1x1 
)
inlineconstexprnoexcept

Construct a point command with specified parameters.

Parameters
posPoint position
cPoint color (default: Black)
sPoint size (default: 1x1)

Member Data Documentation

◆ color

Color epaper::PointCommand::color

◆ pixel_size

DotPixel epaper::PointCommand::pixel_size

◆ position

Point epaper::PointCommand::position

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