aboutsummaryrefslogtreecommitdiff
path: root/circuitpython/shared-module/vectorio/Rectangle.h
blob: 2b1decca0490365334427e31dc93d64e492897cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef MICROPY_INCLUDED_SHARED_MODULE_VECTORIO_RECTANGLE_H
#define MICROPY_INCLUDED_SHARED_MODULE_VECTORIO_RECTANGLE_H

#include <stdint.h>

#include "py/obj.h"
#include "shared-module/vectorio/__init__.h"

typedef struct {
    mp_obj_base_t base;
    uint16_t width;
    uint16_t height;
    uint16_t color_index;
    vectorio_event_t on_dirty;
    mp_obj_t draw_protocol_instance;
} vectorio_rectangle_t;

#endif // MICROPY_INCLUDED_SHARED_MODULE_VECTORIO_RECTANGLE_H