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

#include <geometry.hpp>

Public Member Functions

constexpr Size () noexcept
 Default constructor initializes to zero size.
 
constexpr Size (std::size_t w, std::size_t h) noexcept
 Construct a size with the specified dimensions.
 
constexpr auto area () const noexcept -> std::size_t
 Calculate the area (width × height).
 
constexpr auto operator== (const Size &other) const noexcept -> bool
 Equality comparison.
 
constexpr auto operator!= (const Size &other) const noexcept -> bool
 Inequality comparison.
 

Public Attributes

std::size_t width
 Width in pixels.
 
std::size_t height
 Height in pixels.
 

Constructor & Destructor Documentation

◆ Size() [1/2]

constexpr epaper::Size::Size ( )
inlineconstexprnoexcept

Default constructor initializes to zero size.

Examples
/mnt/nas/libepaper/include/epaper/core/geometry.hpp.

◆ Size() [2/2]

constexpr epaper::Size::Size ( std::size_t  w,
std::size_t  h 
)
inlineconstexprnoexcept

Construct a size with the specified dimensions.

Parameters
wWidth in pixels
hHeight in pixels

Member Function Documentation

◆ area()

constexpr auto epaper::Size::area ( ) const -> std::size_t
inlineconstexprnoexcept

Calculate the area (width × height).

Returns
Total area in pixels
Examples
/mnt/nas/libepaper/include/epaper/core/geometry.hpp.

◆ operator!=()

constexpr auto epaper::Size::operator!= ( const Size other) const -> bool
inlineconstexprnoexcept

Inequality comparison.

Examples
/mnt/nas/libepaper/include/epaper/core/geometry.hpp.

◆ operator==()

constexpr auto epaper::Size::operator== ( const Size other) const -> bool
inlineconstexprnoexcept

Member Data Documentation

◆ height

std::size_t epaper::Size::height

◆ width

std::size_t epaper::Size::width

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