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
styles.hpp
Go to the documentation of this file.
1#pragma once
2
51#include "epaper/core/types.hpp"
53
54namespace epaper {
55
83
111
125 const Font *font;
128
136 constexpr TextStyleSpec(const Font *f, Color fg, Color bg) noexcept : font(f), foreground(fg), background(bg) {}
137};
138
139} // namespace epaper
Definition font.hpp:142
Bitmap font rendering for e-paper displays.
Definition color.hpp:5
DrawFill
Definition types.hpp:151
@ Empty
Draw outline only (border with no fill)
DotPixel
Definition types.hpp:92
@ Pixel1x1
Single pixel (finest resolution)
Color
Definition types.hpp:32
LineStyle
Definition types.hpp:120
@ Solid
Continuous solid line.
Definition styles.hpp:68
constexpr LineStyleSpec(Color c, DotPixel w=DotPixel::Pixel1x1, LineStyle s=LineStyle::Solid) noexcept
Construct a line style with specified parameters.
Definition styles.hpp:80
DotPixel width
Line width.
Definition styles.hpp:70
Color color
Line color.
Definition styles.hpp:69
LineStyle style
Line style (solid/dotted)
Definition styles.hpp:71
Definition styles.hpp:96
Color color
Shape color.
Definition styles.hpp:97
constexpr ShapeStyleSpec(Color c, DotPixel w=DotPixel::Pixel1x1, DrawFill f=DrawFill::Empty) noexcept
Construct a shape style with specified parameters.
Definition styles.hpp:108
DotPixel border_width
Border width.
Definition styles.hpp:98
DrawFill fill
Fill mode (empty/full)
Definition styles.hpp:99
Definition styles.hpp:124
Color background
Background color.
Definition styles.hpp:127
Color foreground
Foreground (text) color.
Definition styles.hpp:126
const Font * font
Font to use for rendering.
Definition styles.hpp:125
constexpr TextStyleSpec(const Font *f, Color fg, Color bg) noexcept
Construct a text style with specified parameters.
Definition styles.hpp:136