summaryrefslogtreecommitdiff
path: root/shared-bindings/vectorio/Polygon.h
diff options
context:
space:
mode:
authorScott Shawcroft <scott@adafruit.com>2020-05-12 18:22:57 -0700
committerGitHub <noreply@github.com>2020-05-12 18:22:57 -0700
commit277e8d528bef84cefe854d527bf5f822e0ec8ceb (patch)
treebeaa452a5dacf21e663a884e358e2ac2d223b777 /shared-bindings/vectorio/Polygon.h
parentbc40034a08a7c3b371a13610a896e1ca40c4a329 (diff)
parent75f9969860870a4ae636c74ae210275413b13c2f (diff)
Merge branch 'master' into Optical-Encoder-Module
Diffstat (limited to 'shared-bindings/vectorio/Polygon.h')
-rw-r--r--shared-bindings/vectorio/Polygon.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/shared-bindings/vectorio/Polygon.h b/shared-bindings/vectorio/Polygon.h
new file mode 100644
index 000000000..5594fbec4
--- /dev/null
+++ b/shared-bindings/vectorio/Polygon.h
@@ -0,0 +1,24 @@
+#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_VECTORIO_POLYGON_H
+#define MICROPY_INCLUDED_SHARED_BINDINGS_VECTORIO_POLYGON_H
+
+#include "shared-module/vectorio/Polygon.h"
+#include "shared-module/displayio/area.h"
+#include "shared-module/vectorio/__init__.h"
+
+extern const mp_obj_type_t vectorio_polygon_type;
+
+void common_hal_vectorio_polygon_construct(vectorio_polygon_t *self, mp_obj_t points_list);
+void common_hal_vectorio_polygon_set_on_dirty(vectorio_polygon_t *self, vectorio_event_t notification);
+
+
+uint32_t common_hal_vectorio_polygon_get_pixel(void *polygon, int16_t x, int16_t y);
+
+void common_hal_vectorio_polygon_get_area(void *polygon, displayio_area_t *out_area);
+
+
+
+mp_obj_t common_hal_vectorio_polygon_get_points(vectorio_polygon_t *self);
+void common_hal_vectorio_polygon_set_points(vectorio_polygon_t *self, mp_obj_t points_list);
+
+
+#endif // MICROPY_INCLUDED_SHARED_BINDINGS_VECTORIO_POLYGON_H