Pixel in 3-byte packed RGB format.
More...
#include <SimWheelTypes.hpp>
|
| | operator uint32_t () const noexcept |
| | Convert to packed RGB format.
|
| |
| | operator int () const noexcept |
| | Convert to packed RGB format.
|
| |
| | Pixel (uint32_t packedRGB) noexcept |
| | Create from a packed RGB value.
|
| |
| | Pixel () noexcept |
| | Create as a black pixel.
|
| |
| | Pixel (const Pixel &source)=default |
| | Copy-constructor.
|
| |
| | Pixel (Pixel &&source)=default |
| | Move-constructor.
|
| |
| Pixel & | operator= (uint32_t packedRGB) noexcept |
| | Assign a packed RGB color.
|
| |
| Pixel & | operator= (const Pixel &source)=default |
| | Copy-assignment.
|
| |
| Pixel & | operator= (Pixel &&source)=default |
| | Move-assignment.
|
| |
| bool | operator== (uint32_t packedRGB) const noexcept |
| | Compare to a packed RGB color.
|
| |
| bool | operator== (int packedRGB) const noexcept |
| | Compare to a packed RGB color.
|
| |
| bool | operator== (const Pixel &other) const noexcept |
| | Compare to another pixel.
|
| |
| bool | operator!= (uint32_t packedRGB) const noexcept |
| | Compare to a packed RGB color.
|
| |
| bool | operator!= (int packedRGB) const noexcept |
| | Compare to a packed RGB color.
|
| |
| bool | operator!= (const Pixel &other) const noexcept |
| | Compare to another pixel.
|
| |
| uint8_t | byte0 (PixelFormat format) const noexcept |
| | Get the first color channel in a certain pixel format.
|
| |
| uint8_t | byte1 (PixelFormat format) const noexcept |
| | Get the second color channel in a certain pixel format.
|
| |
| uint8_t | byte2 (PixelFormat format) const noexcept |
| | Get the third color channel in a certain pixel format.
|
| |
|
| uint8_t | blue |
| | Blue channel.
|
| |
| uint8_t | green |
| | Green channel.
|
| |
| uint8_t | red |
| | Red channel.
|
| |
Pixel in 3-byte packed RGB format.
Definition at line 1331 of file SimWheelTypes.hpp.
◆ Pixel() [1/4]
| Pixel::Pixel |
( |
uint32_t | packedRGB | ) |
|
|
inlinenoexcept |
Create from a packed RGB value.
- Parameters
-
| packedRGB | Packed RGB value |
Definition at line 1365 of file SimWheelTypes.hpp.
◆ Pixel() [2/4]
◆ Pixel() [3/4]
| Pixel::Pixel |
( |
const Pixel & | source | ) |
|
|
default |
Copy-constructor.
- Parameters
-
| source | Instance to be copied |
◆ Pixel() [4/4]
| Pixel::Pixel |
( |
Pixel && | source | ) |
|
|
default |
Move-constructor.
- Parameters
-
| source | Instance transferring ownership |
◆ byte0()
Get the first color channel in a certain pixel format.
- Parameters
-
- Returns
- uint8_t Color channel
Definition at line 1497 of file SimWheelTypes.hpp.
◆ byte1()
Get the second color channel in a certain pixel format.
- Parameters
-
- Returns
- uint8_t Color channel
Definition at line 1523 of file SimWheelTypes.hpp.
◆ byte2()
Get the third color channel in a certain pixel format.
- Parameters
-
- Returns
- uint8_t Color channel
Definition at line 1549 of file SimWheelTypes.hpp.
◆ operator int()
| Pixel::operator int |
( |
| ) |
const |
|
inlinenoexcept |
Convert to packed RGB format.
- Returns
- int Packed RGB value
Definition at line 1355 of file SimWheelTypes.hpp.
◆ operator uint32_t()
| Pixel::operator uint32_t |
( |
| ) |
const |
|
inlinenoexcept |
Convert to packed RGB format.
- Returns
- uint32_t Packed RGB value
Definition at line 1345 of file SimWheelTypes.hpp.
◆ operator!=() [1/3]
| bool Pixel::operator!= |
( |
const Pixel & | other | ) |
const |
|
inlinenoexcept |
Compare to another pixel.
- Parameters
-
- Returns
- true If this pixel does not match
other
-
false Otherwise
Definition at line 1484 of file SimWheelTypes.hpp.
◆ operator!=() [2/3]
| bool Pixel::operator!= |
( |
int | packedRGB | ) |
const |
|
inlinenoexcept |
Compare to a packed RGB color.
- Parameters
-
| packedRGB | Packed RGB value |
- Returns
- true If this pixel does not match
packedRGB
-
false Otherwise
Definition at line 1472 of file SimWheelTypes.hpp.
◆ operator!=() [3/3]
| bool Pixel::operator!= |
( |
uint32_t | packedRGB | ) |
const |
|
inlinenoexcept |
Compare to a packed RGB color.
- Parameters
-
| packedRGB | Packed RGB value |
- Returns
- true If this pixel does not match
packedRGB
-
false Otherwise
Definition at line 1460 of file SimWheelTypes.hpp.
◆ operator=() [1/3]
Copy-assignment.
- Parameters
-
| source | Instance to be copied |
- Returns
- This instance
◆ operator=() [2/3]
Move-assignment.
- Parameters
-
| source | Instance transferring ownership |
- Returns
- This instance
◆ operator=() [3/3]
| Pixel & Pixel::operator= |
( |
uint32_t | packedRGB | ) |
|
|
inlinenoexcept |
Assign a packed RGB color.
- Parameters
-
| packedRGB | Packed RGB value |
- Returns
- int Non-zero
Definition at line 1397 of file SimWheelTypes.hpp.
◆ operator==() [1/3]
| bool Pixel::operator== |
( |
const Pixel & | other | ) |
const |
|
inlinenoexcept |
Compare to another pixel.
- Parameters
-
- Returns
- true If this pixel matches
other
-
false Otherwise
Definition at line 1446 of file SimWheelTypes.hpp.
◆ operator==() [2/3]
| bool Pixel::operator== |
( |
int | packedRGB | ) |
const |
|
inlinenoexcept |
Compare to a packed RGB color.
- Parameters
-
| packedRGB | Packed RGB value |
- Returns
- true If this pixel matches
packedRGB
-
false Otherwise
Definition at line 1434 of file SimWheelTypes.hpp.
◆ operator==() [3/3]
| bool Pixel::operator== |
( |
uint32_t | packedRGB | ) |
const |
|
inlinenoexcept |
Compare to a packed RGB color.
- Parameters
-
| packedRGB | Packed RGB value |
- Returns
- true If this pixel matches
packedRGB
-
false Otherwise
Definition at line 1422 of file SimWheelTypes.hpp.
◆ blue
◆ green
◆ red
The documentation for this struct was generated from the following file: