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::DeviceColor< Mode > Struct Template Reference

Device-specific color representation (generic template). More...

#include <device_color.hpp>

Public Member Functions

constexpr DeviceColor (std::uint8_t val=0)
 
constexpr auto operator== (const DeviceColor &other) const noexcept -> bool=default
 

Public Attributes

std::uint8_t value
 Raw color value.
 

Detailed Description

template<DisplayMode Mode>
struct epaper::DeviceColor< Mode >

Device-specific color representation (generic template).

Stores color in the format required by the target device. The actual representation depends on the device's display mode - this generic template provides a fallback, but mode-specific specializations are used in practice.

Specializations:

Template Parameters
ModeDisplay mode of the device
See also
ColorManager::convert(), DisplayMode

Constructor & Destructor Documentation

◆ DeviceColor()

template<DisplayMode Mode>
constexpr epaper::DeviceColor< Mode >::DeviceColor ( std::uint8_t  val = 0)
inlineexplicitconstexpr

Member Function Documentation

◆ operator==()

template<DisplayMode Mode>
constexpr auto epaper::DeviceColor< Mode >::operator== ( const DeviceColor< Mode > &  other) const -> bool=default
constexprdefaultnoexcept

Member Data Documentation

◆ value

template<DisplayMode Mode>
std::uint8_t epaper::DeviceColor< Mode >::value

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