2020-05-02 05:21:35 -04:00
|
|
|
#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_VECTORIO_POLYGON_H
|
|
|
|
#define MICROPY_INCLUDED_SHARED_BINDINGS_VECTORIO_POLYGON_H
|
|
|
|
|
|
|
|
#include "shared-module/vectorio/Polygon.h"
|
|
|
|
#include "shared-module/displayio/area.h"
|
|
|
|
#include "shared-module/vectorio/__init__.h"
|
|
|
|
|
|
|
|
extern const mp_obj_type_t vectorio_polygon_type;
|
|
|
|
|
2022-03-19 12:30:37 -04:00
|
|
|
void common_hal_vectorio_polygon_construct(vectorio_polygon_t *self, mp_obj_t points_list, uint16_t color_index);
|
2020-05-02 05:21:35 -04:00
|
|
|
void common_hal_vectorio_polygon_set_on_dirty(vectorio_polygon_t *self, vectorio_event_t notification);
|
|
|
|
|
|
|
|
|
|
|
|
uint32_t common_hal_vectorio_polygon_get_pixel(void *polygon, int16_t x, int16_t y);
|
|
|
|
|
|
|
|
void common_hal_vectorio_polygon_get_area(void *polygon, displayio_area_t *out_area);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mp_obj_t common_hal_vectorio_polygon_get_points(vectorio_polygon_t *self);
|
|
|
|
void common_hal_vectorio_polygon_set_points(vectorio_polygon_t *self, mp_obj_t points_list);
|
|
|
|
|
2022-03-19 12:30:37 -04:00
|
|
|
uint16_t common_hal_vectorio_polygon_get_color_index(void *obj);
|
|
|
|
void common_hal_vectorio_polygon_set_color_index(void *obj, uint16_t color_index);
|
|
|
|
|
2021-08-01 16:01:57 -04:00
|
|
|
mp_obj_t common_hal_vectorio_polygon_get_draw_protocol(void *polygon);
|
|
|
|
|
2020-05-02 05:21:35 -04:00
|
|
|
|
|
|
|
#endif // MICROPY_INCLUDED_SHARED_BINDINGS_VECTORIO_POLYGON_H
|