Ream v0.1.0-1
C++ graphics library for Linux
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
RWLSubpixel Struct Reference

Helper for converting between Ream (RSubpixel) and Wayland (wl_output_subpixel) subpixel layouts. More...

#include <RWLSubpixel.h>

Static Public Member Functions

static constexpr wl_output_subpixel FromReam (RSubpixel subpixel) noexcept
 Converts an RSubpixel value to the equivalent wl_output_subpixel.
 
static constexpr RSubpixel ToReam (wl_output_subpixel subpixel) noexcept
 Converts a wl_output_subpixel value to the equivalent RSubpixel.
 

Detailed Description

Helper for converting between Ream (RSubpixel) and Wayland (wl_output_subpixel) subpixel layouts.

Member Function Documentation

◆ FromReam()

static constexpr wl_output_subpixel FromReam ( RSubpixel  subpixel)
inlinestaticconstexprnoexcept

Converts an RSubpixel value to the equivalent wl_output_subpixel.

Unrecognized values map to WL_OUTPUT_SUBPIXEL_UNKNOWN.

◆ ToReam()

static constexpr RSubpixel ToReam ( wl_output_subpixel  subpixel)
inlinestaticconstexprnoexcept

Converts a wl_output_subpixel value to the equivalent RSubpixel.

Unrecognized values map to RSubpixel::Unknown.