2020-05-02 05:21:35 -04:00
|
|
|
#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_VECTORIO_CIRCLE_H
|
|
|
|
#define MICROPY_INCLUDED_SHARED_BINDINGS_VECTORIO_CIRCLE_H
|
|
|
|
|
|
|
|
#include "shared-module/vectorio/__init__.h"
|
|
|
|
#include "shared-module/vectorio/Circle.h"
|
|
|
|
#include "shared-module/displayio/area.h"
|
|
|
|
|
|
|
|
extern const mp_obj_type_t vectorio_circle_type;
|
|
|
|
|
2022-03-19 12:30:37 -04:00
|
|
|
void common_hal_vectorio_circle_construct(vectorio_circle_t *self, uint16_t radius, uint16_t color_index);
|
2020-05-02 05:21:35 -04:00
|
|
|
|
|
|
|
void common_hal_vectorio_circle_set_on_dirty(vectorio_circle_t *self, vectorio_event_t notification);
|
|
|
|
|
|
|
|
uint32_t common_hal_vectorio_circle_get_pixel(void *circle, int16_t x, int16_t y);
|
|
|
|
|
|
|
|
void common_hal_vectorio_circle_get_area(void *circle, displayio_area_t *out_area);
|
|
|
|
|
|
|
|
|
|
|
|
int16_t common_hal_vectorio_circle_get_radius(void *circle);
|
|
|
|
void common_hal_vectorio_circle_set_radius(void *circle, int16_t radius);
|
|
|
|
|
2022-03-19 12:30:37 -04:00
|
|
|
uint16_t common_hal_vectorio_circle_get_color_index(void *obj);
|
|
|
|
void common_hal_vectorio_circle_set_color_index(void *obj, uint16_t color_index);
|
|
|
|
|
2021-08-01 16:01:57 -04:00
|
|
|
mp_obj_t common_hal_vectorio_circle_get_draw_protocol(void *circle);
|
|
|
|
|
2020-05-02 05:21:35 -04:00
|
|
|
#endif // MICROPY_INCLUDED_SHARED_BINDINGS_VECTORIO_CIRCLE_H
|