circuitpython/shared-module/vectorio/Polygon.h
2024-05-19 20:40:44 -04:00

22 lines
519 B
C

// This file is part of the CircuitPython project: https://circuitpython.org
//
// SPDX-FileCopyrightText: Copyright (c) 2020 by kvc0/WarriorOfWire
//
// SPDX-License-Identifier: MIT
#pragma once
#include <stdint.h>
#include "py/obj.h"
#include "shared-module/vectorio/__init__.h"
typedef struct {
mp_obj_base_t base;
// An int array[ x, y, ... ]
int16_t *points_list;
uint16_t len;
uint16_t color_index;
vectorio_event_t on_dirty;
mp_obj_t draw_protocol_instance;
} vectorio_polygon_t;