summaryrefslogtreecommitdiff
path: root/shared-module/vectorio/Polygon.h
blob: 1aef854a7bba270f67aa171eb753e4715ec3bad1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#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;
    // A micropython List[ x, y, ... ]
    mp_obj_t points_list;
    vectorio_event_t on_dirty;
} vectorio_polygon_t;

#endif // MICROPY_INCLUDED_SHARED_MODULE_VECTORIO_POLYGON_H