2020-05-02 05:21:35 -04:00
|
|
|
#ifndef MICROPY_INCLUDED_SHARED_MODULE_VECTORIO_POLYGON_H
|
|
|
|
#define MICROPY_INCLUDED_SHARED_MODULE_VECTORIO_POLYGON_H
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#include "py/obj.h"
|
|
|
|
#include "shared-module/vectorio/__init__.h"
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
mp_obj_base_t base;
|
2020-05-13 00:55:18 -04:00
|
|
|
// An int array[ x, y, ... ]
|
2021-08-07 20:47:57 -04:00
|
|
|
int16_t *points_list;
|
|
|
|
uint16_t len;
|
2022-03-19 12:30:37 -04:00
|
|
|
uint16_t color_index;
|
2020-05-02 05:21:35 -04:00
|
|
|
vectorio_event_t on_dirty;
|
2021-08-01 16:01:57 -04:00
|
|
|
mp_obj_t draw_protocol_instance;
|
2020-05-02 05:21:35 -04:00
|
|
|
} vectorio_polygon_t;
|
|
|
|
|
|
|
|
#endif // MICROPY_INCLUDED_SHARED_MODULE_VECTORIO_POLYGON_H
|