omw
0.2.0
|
Namespaces | |
omw::colors | |
Predefined Colors. | |
Classes | |
class | omw::Color |
Functions | |
omw::Color | omw::operator+ (const omw::Color &lhs, const omw::Color &rhs) |
bool | omw::operator== (const omw::Color &lhs, const omw::Color &rhs) |
bool | omw::operator!= (const omw::Color &lhs, const omw::Color &rhs) |
int32_t | omw::alphaComposit (int32_t a_ACCC, int32_t b_ACCC) |
omw::Color | omw::alphaComposit (const omw::Color &a, const omw::Color &b) |
void | omw::alphaComposit_apply (int32_t a_ACCC, int32_t &b_ACCC) |
Writes the alpha composit of A over B to B. More... | |
void | omw::alphaComposit_apply (const omw::Color &a, omw::Color &b) |
Writes the alpha composit of A over B to B. More... | |
omw::Color | omw::fromWinColor (uint32_t winCol) |
Converts from a Windows API color. More... | |
omw::Color | omw::fromWxColor (uint32_t wxRGBA) |
Converts from a wxWidgets API color. More... | |
#include <omw/color.h>
omw::Color omw::alphaComposit | ( | const omw::Color & | a, |
const omw::Color & | b | ||
) |
If one of the colors is invalid, the return value is also invalid. However all color values are computed anyway.
int32_t omw::alphaComposit | ( | int32_t | a_ACCC, |
int32_t | b_ACCC | ||
) |
Format: 0xAACCCCCC
where CCCCCC is any combination of RR, GG and BB, and has to be consistent for input and return values.
void omw::alphaComposit_apply | ( | const omw::Color & | a, |
omw::Color & | b | ||
) |
Writes the alpha composit of A over B to B.
a | |
b | [in/out] |
If one of the colors is invalid, the result is also invalid. However all color values are computed anyway.
void omw::alphaComposit_apply | ( | int32_t | a_ACCC, |
int32_t & | b_ACCC | ||
) |
Writes the alpha composit of A over B to B.
a_ACCC | |
b_ACCC | [in/out] |
Format: 0xAACCCCCC
where CCCCCC is any combination of RR, GG and BB, and has to be consistent for input and output values.
omw::Color omw::fromWinColor | ( | uint32_t | winCol | ) |
omw::Color omw::fromWxColor | ( | uint32_t | wxRGBA | ) |
bool omw::operator!= | ( | const omw::Color & | lhs, |
const omw::Color & | rhs | ||
) |
omw::Color omw::operator+ | ( | const omw::Color & | lhs, |
const omw::Color & | rhs | ||
) |
lhs | B |
rhs | A |
If one of the colors is invalid, the result is also invalid. However all color values are computed anyway.
bool omw::operator== | ( | const omw::Color & | lhs, |
const omw::Color & | rhs | ||
) |
Checks for equality of the validity and the color values.