omw  0.1.1
Namespaces | Classes | Functions
Color Library

#include <omw/color.h> More...

Namespaces

 omw::colors
 Predefined Colors.
 

Classes

class  omw::Color
 

Functions

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...
 

Detailed Description

#include <omw/color.h>

Function Documentation

◆ alphaComposit() [1/2]

omw::Color omw::alphaComposit ( const omw::Color a,
const omw::Color b 
)
Returns
Alpha composit of A over B

If one of the colors is invalid, the return value is also invalid. However all color values are computed anyway.

◆ alphaComposit() [2/2]

int32_t omw::alphaComposit ( int32_t  a_ACCC,
int32_t  b_ACCC 
)
Returns
Alpha composit of A over B

Format: 0xAACCCCCC where CCCCCC is any combination of RR, GG and BB, and has to be consistent for input and return values.

◆ alphaComposit_apply() [1/2]

void omw::alphaComposit_apply ( const omw::Color a,
omw::Color b 
)

Writes the alpha composit of A over B to B.

Parameters
a
b[in/out]

If one of the colors is invalid, the result is also invalid. However all color values are computed anyway.

◆ alphaComposit_apply() [2/2]

void omw::alphaComposit_apply ( int32_t  a_ACCC,
int32_t &  b_ACCC 
)

Writes the alpha composit of A over B to B.

Parameters
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.

◆ fromWinColor()

omw::Color omw::fromWinColor ( uint32_t  winCol)

Converts from a Windows API color.

Format: 0xBBGGRR

See COLORREF

◆ fromWxColor()

omw::Color omw::fromWxColor ( uint32_t  wxRGBA)

Converts from a wxWidgets API color.

Format: 0xAABBGGRR

See wxColour Class Reference