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

Command for drawing a rectangle. More...

#include <commands.hpp>

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

Public Member Functions

constexpr RectangleCommand (Point tl, Point br, Color c=Color::Black, DotPixel w=DotPixel::Pixel1x1, DrawFill f=DrawFill::Empty) noexcept
 Construct a rectangle command with specified parameters.
 

Public Attributes

Point top_left
 Top-left corner.
 
Point bottom_right
 Bottom-right corner.
 
Color color
 Rectangle color.
 
DotPixel border_width
 Border width.
 
DrawFill fill
 Fill mode (empty/full)
 

Detailed Description

Command for drawing a rectangle.

Encapsulates all parameters needed to draw a rectangle (axis-aligned). Constructed via RectangleBuilder.

Member Semantics:

Coordinate Constraints:

Fill Behavior:

See also
RectangleBuilder, Graphics::draw_rectangle()

Constructor & Destructor Documentation

◆ RectangleCommand()

constexpr epaper::RectangleCommand::RectangleCommand ( Point  tl,
Point  br,
Color  c = Color::Black,
DotPixel  w = DotPixel::Pixel1x1,
DrawFill  f = DrawFill::Empty 
)
inlineconstexprnoexcept

Construct a rectangle command with specified parameters.

Parameters
tlTop-left corner
brBottom-right corner
cRectangle color (default: Black)
wBorder width (default: 1x1)
fFill mode (default: Empty)

Member Data Documentation

◆ border_width

DotPixel epaper::RectangleCommand::border_width

◆ bottom_right

Point epaper::RectangleCommand::bottom_right

◆ color

Color epaper::RectangleCommand::color

◆ fill

DrawFill epaper::RectangleCommand::fill

Fill mode (empty/full)

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

◆ top_left

Point epaper::RectangleCommand::top_left

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