picofuse

types.h
1 
8 #pragma once
9 #include "color.h"
10 #include <stdbool.h>
11 #include <stdint.h>
12 
17 typedef struct {
18  int16_t x;
19  int16_t y;
20 } pix_point_t;
21 
26 typedef struct {
27  uint16_t w;
28  uint16_t h;
29 } pix_size_t;
30 
35 typedef enum {
40 } pix_format_t;
41 
46 typedef enum {
48  PIX_BLEND,
51 } pix_op_t;
53 
16-bit RGB format without alpha channel
Definition: types.h:38
uint16_t h
Height in pixels.
Definition: types.h:28
24-bit RGB format without alpha channel
Definition: types.h:37
int16_t x
X coordinate.
Definition: types.h:18
Monochrome format (1-bit per pixel)
Definition: types.h:39
Alpha-composite the drawn color over the destination&#39;s existing color ("src over dst") - see pix_colo...
Definition: types.h:50
uint16_t w
Width in pixels.
Definition: types.h:27
Overwrite the destination outright with the drawn color as given, alpha channel included - no composi...
Definition: types.h:47
Point structure representing X,Y coordinates.
Definition: types.h:17
pix_op_t
Compositing mode for drawing operations.
Definition: types.h:46
RGBA color type and helpers.
int16_t y
Y coordinate.
Definition: types.h:19
pix_format_t
Pixel format enumeration defining color depth and layout.
Definition: types.h:35
Size structure representing width and height dimensions.
Definition: types.h:26
32-bit RGBA format with alpha channel
Definition: types.h:36