forked from adafruit/circuitpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathShape.h
More file actions
28 lines (23 loc) · 731 Bytes
/
Shape.h
File metadata and controls
28 lines (23 loc) · 731 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// This file is part of the CircuitPython project: https://circuitpython.org
//
// SPDX-FileCopyrightText: Copyright (c) 2019 Scott Shawcroft for Adafruit Industries
//
// SPDX-License-Identifier: MIT
#pragma once
#include <stdbool.h>
#include <stdint.h>
#include "py/obj.h"
#include "shared-module/displayio/area.h"
typedef struct {
mp_obj_base_t base;
uint16_t width;
uint16_t height;
uint16_t half_width;
uint16_t half_height;
uint16_t *data;
bool mirror_x;
bool mirror_y;
displayio_area_t dirty_area;
} displayio_shape_t;
void displayio_shape_finish_refresh(displayio_shape_t *self);
displayio_area_t *displayio_shape_get_refresh_areas(displayio_shape_t *self, displayio_area_t *tail);