HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Data Structures | Enumerations | Functions | Variables
subpixel_orientation.hpp File Reference
#include "../geometry/extent.hpp"
#include "../enum_metadata.hpp"
#include <format>

Go to the source code of this file.

Data Structures

struct  std::formatter< hi::subpixel_orientation, CharT >
 

Enumerations

enum class  v1::subpixel_orientation {
  unknown , horizontal_rgb , horizontal_bgr , vertical_rgb ,
  vertical_bgr
}
 The orientation of the RGB sub-pixels of and LCD/LED panel. More...
 

Functions

constexpr extent2 v1::sub_pixel_size (subpixel_orientation orientation) noexcept
 Get the size of a sub-pixel based on the sub-pixel orientation.
 

Variables

constexpr auto v1::subpixel_orientation_metadata
 

Enumeration Type Documentation

◆ subpixel_orientation

enum class v1::subpixel_orientation
strong

The orientation of the RGB sub-pixels of and LCD/LED panel.

Function Documentation

◆ sub_pixel_size()

constexpr extent2 v1::sub_pixel_size ( subpixel_orientation orientation)
constexprnoexcept

Get the size of a sub-pixel based on the sub-pixel orientation.

Variable Documentation

◆ subpixel_orientation_metadata

constexpr auto v1::subpixel_orientation_metadata
constexpr
Initial value:
= enum_metadata{
subpixel_orientation::unknown, "unknown",
subpixel_orientation::horizontal_rgb, "horizontal RGB",
subpixel_orientation::horizontal_bgr, "horizontal BGR",
subpixel_orientation::vertical_rgb, "vertical RGB",
subpixel_orientation::vertical_bgr, "vertical BGR",
}