Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
fuchsia_test_utils::Pixel Struct Reference

#include <screenshot.h>

Public Member Functions

 Pixel (uint8_t blue, uint8_t green, uint8_t red, uint8_t alpha)
 
bool operator== (const Pixel &rhs) const
 
bool operator!= (const Pixel &rhs) const
 
bool operator< (const Pixel &other) const
 

Public Attributes

uint8_t blue = 0
 
uint8_t green = 0
 
uint8_t red = 0
 
uint8_t alpha = 0
 

Detailed Description

Definition at line 20 of file screenshot.h.

Constructor & Destructor Documentation

◆ Pixel()

fuchsia_test_utils::Pixel::Pixel ( uint8_t  blue,
uint8_t  green,
uint8_t  red,
uint8_t  alpha 
)
inline

Member Function Documentation

◆ operator!=()

bool fuchsia_test_utils::Pixel::operator!= ( const Pixel rhs) const
inline

Definition at line 34 of file screenshot.h.

34{ return !(*this == rhs); }

◆ operator<()

bool fuchsia_test_utils::Pixel::operator< ( const Pixel other) const
inline

Definition at line 36 of file screenshot.h.

36 {
37 return std::tie(blue, green, red, alpha) <
38 std::tie(other.blue, other.green, other.red, other.alpha);
39 }

◆ operator==()

bool fuchsia_test_utils::Pixel::operator== ( const Pixel rhs) const
inline

Definition at line 29 of file screenshot.h.

29 {
30 return blue == rhs.blue && green == rhs.green && red == rhs.red &&
31 alpha == rhs.alpha;
32 }

Member Data Documentation

◆ alpha

uint8_t fuchsia_test_utils::Pixel::alpha = 0

Definition at line 24 of file screenshot.h.

◆ blue

uint8_t fuchsia_test_utils::Pixel::blue = 0

Definition at line 21 of file screenshot.h.

◆ green

uint8_t fuchsia_test_utils::Pixel::green = 0

Definition at line 22 of file screenshot.h.

◆ red

uint8_t fuchsia_test_utils::Pixel::red = 0

Definition at line 23 of file screenshot.h.


The documentation for this struct was generated from the following file: