2020-05-02 05:21:35 -04:00
|
|
|
#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_VECTORIO_RECTANGLE_H
|
|
|
|
#define MICROPY_INCLUDED_SHARED_BINDINGS_VECTORIO_RECTANGLE_H
|
|
|
|
|
|
|
|
#include "shared-module/vectorio/Rectangle.h"
|
|
|
|
#include "shared-module/displayio/area.h"
|
2021-12-12 22:50:00 -05:00
|
|
|
#include "shared-module/vectorio/__init__.h"
|
2020-05-02 05:21:35 -04:00
|
|
|
|
|
|
|
extern const mp_obj_type_t vectorio_rectangle_type;
|
|
|
|
|
2022-03-18 19:28:29 -04:00
|
|
|
void common_hal_vectorio_rectangle_construct(vectorio_rectangle_t *self, uint32_t width, uint32_t height, uint32_t color_index);
|
2021-12-12 22:50:00 -05:00
|
|
|
void common_hal_vectorio_rectangle_set_on_dirty(vectorio_rectangle_t *self, vectorio_event_t on_dirty);
|
2020-05-02 05:21:35 -04:00
|
|
|
|
|
|
|
uint32_t common_hal_vectorio_rectangle_get_pixel(void *rectangle, int16_t x, int16_t y);
|
|
|
|
|
|
|
|
void common_hal_vectorio_rectangle_get_area(void *rectangle, displayio_area_t *out_area);
|
|
|
|
|
2021-08-01 16:01:57 -04:00
|
|
|
mp_obj_t common_hal_vectorio_rectangle_get_draw_protocol(void *rectangle);
|
|
|
|
|
2021-12-12 22:50:00 -05:00
|
|
|
int16_t common_hal_vectorio_rectangle_get_width(void *obj);
|
|
|
|
void common_hal_vectorio_rectangle_set_width(void *obj, int16_t width);
|
2022-03-18 19:28:29 -04:00
|
|
|
int16_t common_hal_vectorio_rectangle_get_color_number(void *obj);
|
|
|
|
void common_hal_vectorio_rectangle_set_color_number(void *obj, int16_t color_number);
|
2021-12-12 22:50:00 -05:00
|
|
|
|
|
|
|
int16_t common_hal_vectorio_rectangle_get_height(void *obj);
|
|
|
|
void common_hal_vectorio_rectangle_set_height(void *obj, int16_t height);
|
|
|
|
|
2020-05-02 05:21:35 -04:00
|
|
|
#endif // MICROPY_INCLUDED_SHARED_BINDINGS_VECTORIO_RECTANGLE_H
|