]> Repositories - hackapet/Adafruit_Blinka_Displayio.git/blob - displayio/_shape.py
Update to pyproject.toml
[hackapet/Adafruit_Blinka_Displayio.git] / displayio / _shape.py
1 # SPDX-FileCopyrightText: 2020 Melissa LeBlanc-Williams for Adafruit Industries
2 #
3 # SPDX-License-Identifier: MIT
4
5
6 """
7 `displayio.shape`
8 ================================================================================
9
10 displayio for Blinka
11
12 **Software and Dependencies:**
13
14 * Adafruit Blinka:
15   https://github.com/adafruit/Adafruit_Blinka/releases
16
17 * Author(s): Melissa LeBlanc-Williams
18
19 """
20
21 from ._bitmap import Bitmap
22
23 __version__ = "0.0.0+auto.0"
24 __repo__ = "https://github.com/adafruit/Adafruit_Blinka_displayio.git"
25
26
27 class Shape(Bitmap):
28     """Create a Shape object with the given fixed size. Each pixel is one bit and is stored
29     by the column boundaries of the shape on each row. Each row’s boundary defaults to the
30     full row.
31     """
32
33     def __init__(
34         self, width: int, height: int, *, mirror_x: bool = False, mirror_y: bool = False
35     ):
36         # pylint: disable=unused-argument
37         """Create a Shape object with the given fixed size. Each pixel is one bit and is
38         stored by the column boundaries of the shape on each row. Each row’s boundary
39         defaults to the full row.
40         """
41         super().__init__(width, height, 2)
42
43     def set_boundary(self, y: int, start_x: int, end_x: int) -> None:
44         # pylint: disable=unnecessary-pass
45         """Loads pre-packed data into the given row."""
46         pass