#include <geometry.hpp>
|
| 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.
|
| |
|
| std::size_t | width |
| | Width in pixels.
|
| |
| std::size_t | height |
| | Height in pixels.
|
| |
◆ Size() [1/2]
| constexpr epaper::Size::Size |
( |
| ) |
|
|
inlineconstexprnoexcept |
◆ Size() [2/2]
| constexpr epaper::Size::Size |
( |
std::size_t |
w, |
|
|
std::size_t |
h |
|
) |
| |
|
inlineconstexprnoexcept |
Construct a size with the specified dimensions.
- Parameters
-
| w | Width in pixels |
| h | Height in pixels |
◆ area()
| constexpr auto epaper::Size::area |
( |
| ) |
const -> std::size_t |
|
inlineconstexprnoexcept |
◆ operator!=()
| constexpr auto epaper::Size::operator!= |
( |
const Size & |
other | ) |
const -> bool |
|
inlineconstexprnoexcept |
◆ operator==()
| constexpr auto epaper::Size::operator== |
( |
const Size & |
other | ) |
const -> bool |
|
inlineconstexprnoexcept |
◆ 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: