Paparazzi UAS v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
Loading...
Searching...
No Matches
draw.h File Reference

Helpers for the DRAW message. More...

Go to the source code of this file.

Enumerations

enum  Draw_opacity { DRAW_OPACITY_TRANSPARENT = 0 , DRAW_OPACITY_LIGHT = 1 , DRAW_OPACITY_MEDIUM = 2 , DRAW_OPACITY_OPAQUE = 3 }
 
enum  Draw_colorcode {
  DRAW_BLACK = 0 , DRAW_RED = 1 , DRAW_GREEN = 2 , DRAW_YELLOW = 3 ,
  DRAW_BLUE = 4 , DRAW_MAGENTA = 5 , DRAW_CYAN = 6 , DRAW_WHITE = 7
}
 
enum  Draw_shape { DRAW_CIRCLE = 0 , DRAW_POLYGON = 1 , DRAW_LINE = 2 }
 
enum  Draw_status { DRAW_CREATE = 0 , DRAW_DELETE = 1 }
 

Functions

static void DRAW_set_opacity (uint8_t *color, enum Draw_opacity op)
 
static void DRAW_set_line_color (uint8_t *color, enum Draw_colorcode code)
 
static void DRAW_set_fill_color (uint8_t *color, enum Draw_colorcode code)
 
static uint8_t DRAW_make_color (enum Draw_opacity op, enum Draw_colorcode line, enum Draw_colorcode fill)
 
static uint8_t DRAW_make_line (enum Draw_colorcode line)
 

Detailed Description

Helpers for the DRAW message.

Definition in file draw.h.

Enumeration Type Documentation

◆ Draw_colorcode

Enumerator
DRAW_BLACK 
DRAW_RED 
DRAW_GREEN 
DRAW_YELLOW 
DRAW_BLUE 
DRAW_MAGENTA 
DRAW_CYAN 
DRAW_WHITE 

Definition at line 39 of file draw.h.

◆ Draw_opacity

Enumerator
DRAW_OPACITY_TRANSPARENT 
DRAW_OPACITY_LIGHT 
DRAW_OPACITY_MEDIUM 
DRAW_OPACITY_OPAQUE 

Definition at line 31 of file draw.h.

◆ Draw_shape

Enumerator
DRAW_CIRCLE 
DRAW_POLYGON 
DRAW_LINE 

Definition at line 51 of file draw.h.

◆ Draw_status

Enumerator
DRAW_CREATE 
DRAW_DELETE 

Definition at line 58 of file draw.h.

Function Documentation

◆ DRAW_make_color()

static uint8_t DRAW_make_color ( enum Draw_opacity  op,
enum Draw_colorcode  line,
enum Draw_colorcode  fill 
)
inlinestatic

Definition at line 67 of file draw.h.

References foo.

◆ DRAW_make_line()

static uint8_t DRAW_make_line ( enum Draw_colorcode  line)
inlinestatic

Definition at line 71 of file draw.h.

References foo.

◆ DRAW_set_fill_color()

static void DRAW_set_fill_color ( uint8_t color,
enum Draw_colorcode  code 
)
inlinestatic

Definition at line 66 of file draw.h.

References foo.

◆ DRAW_set_line_color()

static void DRAW_set_line_color ( uint8_t color,
enum Draw_colorcode  code 
)
inlinestatic

Definition at line 65 of file draw.h.

References foo.

◆ DRAW_set_opacity()

static void DRAW_set_opacity ( uint8_t color,
enum Draw_opacity  op 
)
inlinestatic

Definition at line 64 of file draw.h.

References foo.