blink1-lib
1.0.0
RGBN.hpp
Go to the documentation of this file.
1
6
#pragma once
7
8
#include <cstdint>
9
#include <ostream>
10
11
namespace
blink1_lib
{
12
16
struct
RGBN
{
20
std::uint8_t
r
{0};
21
25
std::uint8_t
g
{0};
26
30
std::uint8_t
b
{0};
31
35
std::uint8_t
n
{0};
36
43
RGBN
(
const
std::uint8_t
r
,
const
std::uint8_t
g
,
const
std::uint8_t
b
,
const
std::uint8_t
n
) noexcept;
44
50
RGBN
() noexcept = default;
51
58
[[nodiscard]]
bool
operator==(const
RGBN
& other) const noexcept;
59
66
[[nodiscard]]
bool
operator!=(const
RGBN
& other) const noexcept;
67
74
friend std::ostream& operator<<(std::ostream& os, const
RGBN
& rgb);
75
};
76
}
blink1_lib::RGBN::b
std::uint8_t b
Definition:
RGBN.hpp:30
blink1_lib::RGBN
Definition:
RGBN.hpp:16
blink1_lib::RGBN::g
std::uint8_t g
Definition:
RGBN.hpp:25
blink1_lib::RGBN::n
std::uint8_t n
Definition:
RGBN.hpp:35
blink1_lib
Definition:
Blink1Device.hpp:19
blink1_lib::RGBN::r
std::uint8_t r
Definition:
RGBN.hpp:20
blink1_lib::RGBN::RGBN
RGBN() noexcept=default
include
RGBN.hpp
Generated by
1.8.17