112 Orientation orientation) -> std::pair<std::size_t, std::size_t> {
113 switch (orientation) {
126 return {width - 1 - y, x};
135 return {width - 1 - x, height - 1 - y};
144 return {y, height - 1 - x};
Definition internal.hpp:20
constexpr std::size_t PLANE_COUNT_TWO
Number of planes for dual-plane displays (BWR, BWY)
Definition internal.hpp:26
constexpr std::size_t PLANE_COUNT_THREE
Number of planes for triple-plane displays (reserved for future modes)
Definition internal.hpp:29
constexpr auto plane_count_value(PlaneCount count) noexcept -> std::size_t
Definition internal.hpp:63
auto transform_coordinates(std::size_t x, std::size_t y, std::size_t width, std::size_t height, Orientation orientation) -> std::pair< std::size_t, std::size_t >
Definition internal.hpp:111
constexpr std::size_t PLANE_COUNT_ONE
Number of planes for single-plane displays (BW, Gray4, Spectra6)
Definition internal.hpp:23
PlaneCount
Type-safe enumeration for framebuffer plane counts.
Definition internal.hpp:42
@ One
Single plane (monochrome or packed multi-color)
@ Two
Dual plane (base + accent color)
@ Three
Triple plane (reserved for future use)
Orientation
Definition types.hpp:66
@ Portrait180
180° rotation (upside down portrait)
@ Landscape270
270° clockwise / 90° counter-clockwise (landscape mode)
@ Landscape90
90° clockwise rotation (landscape mode)
@ Portrait0
Default portrait orientation (0° rotation)