2020-05-02 05:21:35 -04:00
|
|
|
#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_VECTORIO_SHAPE_H
|
|
|
|
#define MICROPY_INCLUDED_SHARED_BINDINGS_VECTORIO_SHAPE_H
|
|
|
|
|
|
|
|
#include "shared-module/vectorio/VectorShape.h"
|
2020-05-09 02:03:15 -04:00
|
|
|
#include "shared-module/displayio/area.h"
|
2020-05-02 05:21:35 -04:00
|
|
|
|
|
|
|
extern const mp_obj_type_t vectorio_vector_shape_type;
|
|
|
|
|
|
|
|
void common_hal_vectorio_vector_shape_construct(vectorio_vector_shape_t *self,
|
|
|
|
vectorio_ishape_t ishape,
|
2020-05-09 02:03:15 -04:00
|
|
|
mp_obj_t pixel_shader, uint16_t x, uint16_t y);
|
2020-05-02 05:21:35 -04:00
|
|
|
|
|
|
|
void common_hal_vectorio_vector_shape_set_dirty(void *self);
|
|
|
|
|
|
|
|
mp_int_t common_hal_vectorio_vector_shape_get_x(vectorio_vector_shape_t *self);
|
|
|
|
void common_hal_vectorio_vector_shape_set_x(vectorio_vector_shape_t *self, mp_int_t x);
|
|
|
|
|
|
|
|
mp_int_t common_hal_vectorio_vector_shape_get_y(vectorio_vector_shape_t *self);
|
|
|
|
void common_hal_vectorio_vector_shape_set_y(vectorio_vector_shape_t *self, mp_int_t y);
|
|
|
|
|
|
|
|
mp_obj_t common_hal_vectorio_vector_shape_get_pixel_shader(vectorio_vector_shape_t *self);
|
|
|
|
void common_hal_vectorio_vector_shape_set_pixel_shader(vectorio_vector_shape_t *self, mp_obj_t pixel_shader);
|
|
|
|
|
2020-05-09 02:03:15 -04:00
|
|
|
|
|
|
|
void vectorio_vector_shape_update_transform(vectorio_vector_shape_t *self, displayio_buffer_transform_t *group_transform);
|
|
|
|
|
2020-05-02 05:21:35 -04:00
|
|
|
#endif // MICROPY_INCLUDED_SHARED_BINDINGS_VECTORIO_SHAPE_H
|