#include <RGB.hpp>
|
| | RGB (const std::uint8_t r, const std::uint8_t g, const std::uint8_t b) noexcept |
| |
| | RGB () noexcept=default |
| |
| bool | operator== (const RGB &other) const noexcept |
| |
| bool | operator!= (const RGB &other) const noexcept |
| |
|
| std::uint8_t | r {0} |
| |
| std::uint8_t | g {0} |
| |
| std::uint8_t | b {0} |
| |
◆ RGB() [1/2]
| blink1_lib::RGB::RGB |
( |
const std::uint8_t |
r, |
|
|
const std::uint8_t |
g, |
|
|
const std::uint8_t |
b |
|
) |
| |
|
noexcept |
- Parameters
-
| r | Red value |
| g | Green value |
| b | Blue value |
◆ RGB() [2/2]
Default constructor
Intializes all values to 0
◆ operator!=()
| bool blink1_lib::RGB::operator!= |
( |
const RGB & |
other | ) |
const |
|
noexcept |
Inequality operator
- Parameters
-
| other | Object to compare to |
- Returns
- true if the objects are not equal, false otherwise
◆ operator==()
| bool blink1_lib::RGB::operator== |
( |
const RGB & |
other | ) |
const |
|
noexcept |
Equality operator
- Parameters
-
| other | Object to compare to |
- Returns
- true if the objects are equal, false otherwise
◆ operator<<
| std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const RGB & |
rgb |
|
) |
| |
|
friend |
Output operator
- Parameters
-
| os | Output stream |
| rgb | RGB object to output |
| std::uint8_t blink1_lib::RGB::b {0} |
| std::uint8_t blink1_lib::RGB::g {0} |
| std::uint8_t blink1_lib::RGB::r {0} |
The documentation for this struct was generated from the following file: