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

#include <styles.hpp>

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

Public Member Functions

constexpr TextStyleSpec (const Font *f, Color fg, Color bg) noexcept
 Construct a text style with specified parameters.
 

Public Attributes

const Fontfont
 Font to use for rendering.
 
Color foreground
 Foreground (text) color.
 
Color background
 Background color.
 

Constructor & Destructor Documentation

◆ TextStyleSpec()

constexpr epaper::TextStyleSpec::TextStyleSpec ( const Font f,
Color  fg,
Color  bg 
)
inlineconstexprnoexcept

Construct a text style with specified parameters.

Parameters
fFont to use
fgForeground color
bgBackground color

Member Data Documentation

◆ background

Color epaper::TextStyleSpec::background

◆ font

const Font* epaper::TextStyleSpec::font

◆ foreground

Color epaper::TextStyleSpec::foreground

Foreground (text) color.

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

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