Generic Trace Generator (GTG) 0.1
|
This file defines some useful colors to use in entity values for GTG. More...
#include <stdint.h>
Go to the source code of this file.
Data Structures | |
struct | gtg_color |
This structure defines a color that can be used by GTG. More... | |
Macros | |
#define | GTG_COLOR_BLUE_POS 0 |
#define | GTG_COLOR_GREEN_POS 8 |
#define | GTG_COLOR_RED_POS 16 |
#define | GTG_COLOR_BLUE_MASK (0x000000ff << GTG_COLOR_BLUE_POS) |
#define | GTG_COLOR_GREEN_MASK (0x000000ff << GTG_COLOR_GREEN_POS) |
#define | GTG_COLOR_RED_MASK (0x000000ff << GTG_COLOR_RED_POS) |
Typedefs | |
typedef uint32_t | gtg_rgb_color_t |
typedef struct gtg_color * | gtg_color_t |
Functions | |
static uint8_t | GTG_COLOR_GET_BLUE (gtg_rgb_color_t rgb) |
static uint8_t | GTG_COLOR_GET_GREEN (gtg_rgb_color_t rgb) |
static uint8_t | GTG_COLOR_GET_RED (gtg_rgb_color_t rgb) |
static gtg_rgb_color_t | GTG_COLOR_SET_COLOR (uint8_t r, uint8_t g, uint8_t b) |
void | gtg_color_init () |
void | gtg_color_exit () |
gtg_color_t | gtg_color_create (const char *name, uint8_t r, uint8_t g, uint8_t b) |
void | gtg_color_free (gtg_color_t color) |
This file defines some useful colors to use in entity values for GTG.
#define GTG_COLOR_BLUE_MASK (0x000000ff << GTG_COLOR_BLUE_POS) |
#define GTG_COLOR_BLUE_POS 0 |
#define GTG_COLOR_GREEN_MASK (0x000000ff << GTG_COLOR_GREEN_POS) |
#define GTG_COLOR_GREEN_POS 8 |
#define GTG_COLOR_RED_MASK (0x000000ff << GTG_COLOR_RED_POS) |
#define GTG_COLOR_RED_POS 16 |
typedef struct gtg_color* gtg_color_t |
typedef uint32_t gtg_rgb_color_t |
gtg_color_t gtg_color_create | ( | const char * | name, |
uint8_t | r, | ||
uint8_t | g, | ||
uint8_t | b | ||
) |
void gtg_color_exit | ( | ) |
void gtg_color_free | ( | gtg_color_t | color | ) |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
void gtg_color_init | ( | ) |
|
inlinestatic |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |