picofuse

types.h
1 
8 #pragma once
9 #include <stdbool.h>
10 #include <stddef.h>
11 #include <stdint.h>
12 #include "color.h"
13 
18 typedef struct {
19  int16_t x;
20  int16_t y;
21 } pix_point_t;
22 
27 typedef struct {
28  uint16_t w;
29  uint16_t h;
30 } pix_size_t;
31 
36 typedef enum {
41 } pix_format_t;
42 
47 typedef enum {
49 } pix_op_t;
50 
58 typedef struct {
59  void *data;
61  size_t stride;
63 } pix_bitmap_t;
16-bit RGB format without alpha channel
Definition: types.h:39
void * data
Pointer to bitmap memory.
Definition: types.h:59
uint16_t h
Height in pixels.
Definition: types.h:29
24-bit RGB format without alpha channel
Definition: types.h:38
int16_t x
X coordinate.
Definition: types.h:19
Monochrome format (1-bit per pixel)
Definition: types.h:40
Plain in-memory pixel bitmap descriptor.
Definition: types.h:58
uint16_t w
Width in pixels.
Definition: types.h:28
pix_size_t size
Bitmap dimensions in pixels.
Definition: types.h:60
Set pixel operation.
Definition: types.h:48
Point structure representing X,Y coordinates.
Definition: types.h:18
pix_op_t
Pixel operation types for drawing operations.
Definition: types.h:47
RGBA color type and helpers.
size_t stride
Byte pitch between adjacent major-axis elements.
Definition: types.h:61
int16_t y
Y coordinate.
Definition: types.h:20
pix_format_t fmt
Pixel format used by data.
Definition: types.h:62
pix_format_t
Pixel format enumeration defining color depth and layout.
Definition: types.h:36
Size structure representing width and height dimensions.
Definition: types.h:27
32-bit RGBA format with alpha channel
Definition: types.h:37