navit  0.5.3-trunk
color.h File Reference

Go to the source code of this file.

Data Structures

struct  color
 

Macros

#define COLOR_BITDEPTH   16
 
#define COLOR_WHITE_   0xffff,0xffff,0xffff,0xffff
 
#define COLOR_BLACK_   0x0000,0x0000,0x0000,0xffff
 
#define COLOR_BACKGROUND_   0xffff, 0xefef, 0xb7b7, 0xffff
 
#define COLOR_TRANSPARENT__   0x0000,0x0000,0x0000,0xffff
 
#define COLOR_WHITE   ((struct color) {COLOR_WHITE_})
 
#define COLOR_BLACK   ((struct color) {COLOR_BLACK_})
 
#define COLOR_TRANSPARENT   ((struct color) {COLOR_TRANSPARENT_})
 
#define COLOR_FMT   "0x%x,0x%x,0x%x,0x%x"
 
#define COLOR_ARGS(c)   (c).r,(c).g,(c).b,(c).a
 
#define UNDERGROUND_ALPHA_   0xFFFF
 
#define COLOR_IS_SAME(c1, c2)   ((c1).r==(c2).r && (c1).g==(c2).g && (c1).b==(c2).b && (c1).a==(c2).a)
 
#define COLOR_IS_WHITE(c)   COLOR_IS_SAME(c, COLOR_WHITE)
 
#define COLOR_IS_BLACK(c)   COLOR_IS_SAME(c, COLOR_BLACK)
 

Macro Definition Documentation

◆ COLOR_ARGS

#define COLOR_ARGS (   c)    (c).r,(c).g,(c).b,(c).a

◆ COLOR_BACKGROUND_

#define COLOR_BACKGROUND_   0xffff, 0xefef, 0xb7b7, 0xffff

◆ COLOR_BITDEPTH

#define COLOR_BITDEPTH   16

◆ COLOR_BLACK

#define COLOR_BLACK   ((struct color) {COLOR_BLACK_})

◆ COLOR_BLACK_

#define COLOR_BLACK_   0x0000,0x0000,0x0000,0xffff

◆ COLOR_FMT

#define COLOR_FMT   "0x%x,0x%x,0x%x,0x%x"

◆ COLOR_IS_BLACK

#define COLOR_IS_BLACK (   c)    COLOR_IS_SAME(c, COLOR_BLACK)

◆ COLOR_IS_SAME

#define COLOR_IS_SAME (   c1,
  c2 
)    ((c1).r==(c2).r && (c1).g==(c2).g && (c1).b==(c2).b && (c1).a==(c2).a)

◆ COLOR_IS_WHITE

#define COLOR_IS_WHITE (   c)    COLOR_IS_SAME(c, COLOR_WHITE)

◆ COLOR_TRANSPARENT

#define COLOR_TRANSPARENT   ((struct color) {COLOR_TRANSPARENT_})

◆ COLOR_TRANSPARENT__

#define COLOR_TRANSPARENT__   0x0000,0x0000,0x0000,0xffff

◆ COLOR_WHITE

#define COLOR_WHITE   ((struct color) {COLOR_WHITE_})

◆ COLOR_WHITE_

#define COLOR_WHITE_   0xffff,0xffff,0xffff,0xffff

◆ UNDERGROUND_ALPHA_

#define UNDERGROUND_ALPHA_   0xFFFF