summaryrefslogtreecommitdiff
path: root/shared-module/vectorio/Rectangle.h
diff options
context:
space:
mode:
authorScott Shawcroft <scott@adafruit.com>2020-05-12 17:24:35 -0700
committerGitHub <noreply@github.com>2020-05-12 17:24:35 -0700
commit75f9969860870a4ae636c74ae210275413b13c2f (patch)
tree441bce8e34504c20853dc05a0cc0aeee955c6467 /shared-module/vectorio/Rectangle.h
parentf7303e6bd0e3fbfb8c781bab024f4f689268b0b6 (diff)
parent5a80f5e606fe893a6ccd78cb8ebf7f39055e2e43 (diff)
Merge pull request #2873 from WarriorOfWire/vectorio
Add vectorio: for drawing shapes
Diffstat (limited to 'shared-module/vectorio/Rectangle.h')
-rw-r--r--shared-module/vectorio/Rectangle.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/shared-module/vectorio/Rectangle.h b/shared-module/vectorio/Rectangle.h
new file mode 100644
index 000000000..c1f2a7a64
--- /dev/null
+++ b/shared-module/vectorio/Rectangle.h
@@ -0,0 +1,15 @@
+#ifndef MICROPY_INCLUDED_SHARED_MODULE_VECTORIO_RECTANGLE_H
+#define MICROPY_INCLUDED_SHARED_MODULE_VECTORIO_RECTANGLE_H
+
+#include <stdint.h>
+
+#include "py/obj.h"
+
+typedef struct {
+ mp_obj_base_t base;
+ uint16_t width;
+ uint16_t height;
+} vectorio_rectangle_t;
+
+#endif // MICROPY_INCLUDED_SHARED_MODULE_VECTORIO_RECTANGLE_H
+