|
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.
|
Command for drawing a rectangle. More...
#include <commands.hpp>

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) | |
Command for drawing a rectangle.
Encapsulates all parameters needed to draw a rectangle (axis-aligned). Constructed via RectangleBuilder.
Member Semantics:
top_left: Top-left corner coordinatebottom_right: Bottom-right corner coordinatecolor: Rectangle color (border and fill use same color)border_width: Thickness of rectangle outlinefill: Empty (outline only) or Full (solid fill)Coordinate Constraints:
bottom_right.x >= top_left.x and bottom_right.y >= top_left.yFill Behavior:
|
inlineconstexprnoexcept |
Construct a rectangle command with specified parameters.
| tl | Top-left corner |
| br | Bottom-right corner |
| c | Rectangle color (default: Black) |
| w | Border width (default: 1x1) |
| f | Fill mode (default: Empty) |
| DotPixel epaper::RectangleCommand::border_width |
Border width.
| Point epaper::RectangleCommand::bottom_right |
Bottom-right corner.
| Color epaper::RectangleCommand::color |
Rectangle color.
| DrawFill epaper::RectangleCommand::fill |
Fill mode (empty/full)
| Point epaper::RectangleCommand::top_left |
Top-left corner.