Muteki
EABI code execution on Besta® RTOS devices.
Loading...
Searching...
No Matches
primitives.h File Reference

Drawing routine primitive types. More...

#include "../../common.h"

Go to the source code of this file.

Data Structures

struct  lcd_rect_s
 Rectangle used to represent usable drawing area in an LCD descriptor. More...

Macros

#define LCD_RGB_FROM_U8(r, g, b)
 Convert separate RGB values to integer RGB representation.

Typedefs

typedef struct lcd_rect_s lcd_rect_t
 Rectangle used to represent usable drawing area in an LCD descriptor.

Detailed Description

Drawing routine primitive types.

Macro Definition Documentation

◆ LCD_RGB_FROM_U8

#define LCD_RGB_FROM_U8 ( r,
g,
b )
Value:
((r & 0xff) << 16 | ((g & 0xff) << 8) | (b & 0xff))

Convert separate RGB values to integer RGB representation.

Parameters
rRed value.
gGreen value.
bBlue value.

Typedef Documentation

◆ lcd_rect_t

typedef struct lcd_rect_s lcd_rect_t

Rectangle used to represent usable drawing area in an LCD descriptor.

The area is double-inclusive (i.e. {0, 0, 479, 271} represents an area of 480x272 px).