enesim  0.0.23.1
Drawinglibrary
Typedefs | Functions
Argb
Basic types

Argb definition. More...

Typedefs

typedef uint32_t Enesim_Argb

Functions

EAPI Enesim_Argb enesim_argb_components_from (uint8_t a, uint8_t r, uint8_t g, uint8_t b)
 Return an ARGB color from the given components.
EAPI void enesim_argb_components_to (Enesim_Argb argb, uint8_t *a, uint8_t *r, uint8_t *g, uint8_t *b)
 Retrieve the component of the given ARGB color.

Detailed Description

Argb definition.


Typedef Documentation

ARGB color without premultiplication.


Function Documentation

EAPI Enesim_Argb enesim_argb_components_from ( uint8_t  a,
uint8_t  r,
uint8_t  g,
uint8_t  b 
)

Return an ARGB color from the given components.

Parameters:
[in]aThe alpha component.
[in]rThe red component.
[in]gThe green component.
[in]bThe blue component.
Returns:
The ARGB color

This function returns the argb color with the components a, r, g and b.

See also:
enesim_argb_components_to()
EAPI void enesim_argb_components_to ( Enesim_Argb  argb,
uint8_t *  a,
uint8_t *  r,
uint8_t *  g,
uint8_t *  b 
)

Retrieve the component of the given ARGB color.

Parameters:
[in]argbThe ARGB color to set.
[out]aThe alpha component.
[out]rThe red component.
[out]gThe green component.
[out]bThe blue component.

This function stores the argb color components into a, r, g and b. a, r, g and b can each be NULL.

See also:
enesim_argb_components_from()
 All Data Structures Variables