public |
Inheritance Graph
graph BT
Color4ub
click Color4ub "classUtil_1_1Color4ub"
Description
Representation of an RGBA color that is stored as four bytes.
Serialization
Public Functions
Color4ub() | |
Color4ub(uint8_t _r, uint8_t _g, uint8_t _b, uint8_t _a) | |
Color4ub(uint32_t u32) | |
Color4ub(const Color4f & other) | |
Color4ub(const std::vector< uint8_t > & arr) | |
Color4ub(const Color4ub & void) | |
Color4ub( Color4ub && void) | |
Color4ub & | operator=(const Color4ub & void) |
Color4ub & | operator=( Color4ub && void) |
bool | operator==(const Color4ub & other) const |
bool | operator!=(const Color4ub & other) const |
void | set(uint8_t _r, uint8_t _g, uint8_t _b, uint8_t _a) |
bool | isTransparent() const |
bool | isOpaque() const |
const uint8_t * | data() const |
uint32_t | getAsUInt() const |
uint8_t | r() const |
uint8_t | g() const |
uint8_t | b() const |
uint8_t | a() const |
uint8_t | getR() const |
uint8_t | getG() const |
uint8_t | getB() const |
uint8_t | getA() const |
void | r(uint8_t _r) |
void | g(uint8_t _g) |
void | b(uint8_t _b) |
void | a(uint8_t _a) |
void | setR(uint8_t _r) |
void | setG(uint8_t _g) |
void | setB(uint8_t _b) |
void | setA(uint8_t _a) |
std::string | toString() const |
Public Static Functions
Color4ub | createDifferenceColor(const Color4ub & first, const Color4ub & second) Return a new color with the absolute difference between the two given colors. |
Documentation
function
Util::Color4ub::Color4ub
public | inline |
Color4ub( | ) |
Defined in Util/Graphics/Color.h:36
function
Util::Color4ub::Color4ub
public | inline |
Color4ub( | uint8_t | _r, |
uint8_t | _g, | |
uint8_t | _b, | |
uint8_t | _a | |
) |
Defined in Util/Graphics/Color.h:38
function
Util::Color4ub::Color4ub
public | inline | explicit |
Color4ub( | uint32_t | u32 ) |
Defined in Util/Graphics/Color.h:41
function
Util::Color4ub::Color4ub
public | inline | explicit |
Color4ub( | const Color4f & | other ) |
Defined in Util/Graphics/Color.h:44
function
Util::Color4ub::Color4ub
public | inline | explicit |
Color4ub( | const std::vector< uint8_t > & | arr ) |
Defined in Util/Graphics/Color.h:45
function
Util::Color4ub::Color4ub
public |
Color4ub( | const Color4ub & | void ) |
Defined in Util/Graphics/Color.h:49
function
Util::Color4ub::Color4ub
public |
Color4ub( | Color4ub && | void ) |
Defined in Util/Graphics/Color.h:50
function
Util::Color4ub::operator=
public |
Color4ub & operator=( | const Color4ub & | void ) |
Defined in Util/Graphics/Color.h:52
function
Util::Color4ub::operator=
public |
Color4ub & operator=( | Color4ub && | void ) |
Defined in Util/Graphics/Color.h:53
function
Util::Color4ub::operator==
public | const | inline |
bool operator==( | const Color4ub & | other ) const |
Defined in Util/Graphics/Color.h:55
function
Util::Color4ub::operator!=
public | const | inline |
bool operator!=( | const Color4ub & | other ) const |
Defined in Util/Graphics/Color.h:58
function
Util::Color4ub::set
public | inline |
void set( | uint8_t | _r, |
uint8_t | _g, | |
uint8_t | _b, | |
uint8_t | _a | |
) |
Defined in Util/Graphics/Color.h:61
function
Util::Color4ub::isTransparent
public | const | inline |
bool isTransparent( | ) const |
Returns
true iff the color is FULLY transparent
Defined in Util/Graphics/Color.h:68
function
Util::Color4ub::isOpaque
public | const | inline |
bool isOpaque( | ) const |
Returns
true iff the color is FULLY opaque
Defined in Util/Graphics/Color.h:71
function
Util::Color4ub::data
public | const | inline |
const uint8_t * data( | ) const |
Defined in Util/Graphics/Color.h:73
function
Util::Color4ub::getAsUInt
public | const | inline |
uint32_t getAsUInt( | ) const |
Defined in Util/Graphics/Color.h:75
function
Util::Color4ub::r
public | const | inline |
uint8_t r( | ) const |
Defined in Util/Graphics/Color.h:77
function
Util::Color4ub::g
public | const | inline |
uint8_t g( | ) const |
Defined in Util/Graphics/Color.h:78
function
Util::Color4ub::b
public | const | inline |
uint8_t b( | ) const |
Defined in Util/Graphics/Color.h:79
function
Util::Color4ub::a
public | const | inline |
uint8_t a( | ) const |
Defined in Util/Graphics/Color.h:80
function
Util::Color4ub::getR
public | const | inline |
uint8_t getR( | ) const |
Defined in Util/Graphics/Color.h:81
function
Util::Color4ub::getG
public | const | inline |
uint8_t getG( | ) const |
Defined in Util/Graphics/Color.h:82
function
Util::Color4ub::getB
public | const | inline |
uint8_t getB( | ) const |
Defined in Util/Graphics/Color.h:83
function
Util::Color4ub::getA
public | const | inline |
uint8_t getA( | ) const |
Defined in Util/Graphics/Color.h:84
function
Util::Color4ub::r
public | inline |
void r( | uint8_t | _r ) |
Defined in Util/Graphics/Color.h:85
function
Util::Color4ub::g
public | inline |
void g( | uint8_t | _g ) |
Defined in Util/Graphics/Color.h:86
function
Util::Color4ub::b
public | inline |
void b( | uint8_t | _b ) |
Defined in Util/Graphics/Color.h:87
function
Util::Color4ub::a
public | inline |
void a( | uint8_t | _a ) |
Defined in Util/Graphics/Color.h:88
function
Util::Color4ub::setR
public | inline |
void setR( | uint8_t | _r ) |
Defined in Util/Graphics/Color.h:89
function
Util::Color4ub::setG
public | inline |
void setG( | uint8_t | _g ) |
Defined in Util/Graphics/Color.h:90
function
Util::Color4ub::setB
public | inline |
void setB( | uint8_t | _b ) |
Defined in Util/Graphics/Color.h:91
function
Util::Color4ub::setA
public | inline |
void setA( | uint8_t | _a ) |
Defined in Util/Graphics/Color.h:92
function
Util::Color4ub::toString
public | const | inline |
std::string toString( | ) const |
Defined in Util/Graphics/Color.h:94
function
Util::Color4ub::createDifferenceColor
public | static | inline |
Color4ub createDifferenceColor( | const Color4ub & | first, |
const Color4ub & | second | |
) |
Return a new color with the absolute difference between the two given colors.
Defined in Util/Graphics/Color.h:101