]> Repositories - hackapet/Adafruit_Blinka_Displayio.git/blobdiff - displayio/_displaycore.py
root_group properties/functions on Display object and displaycore.
[hackapet/Adafruit_Blinka_Displayio.git] / displayio / _displaycore.py
index a68f6663c5a93a5e41ebd25197eedd6f9115e7ab..ffdc9e4a1701ff8197c271bcae12e4badd4d5e38 100644 (file)
@@ -18,12 +18,12 @@ Super class of the display classes
 
 """
 
 
 """
 
-__version__ = "0.0.0-auto.0"
+__version__ = "0.0.0+auto.0"
 __repo__ = "https://github.com/adafruit/Adafruit_Blinka_Displayio.git"
 
 
 from typing import Union
 __repo__ = "https://github.com/adafruit/Adafruit_Blinka_Displayio.git"
 
 
 from typing import Union
-import _typing
+import circuitpython_typing
 from paralleldisplay import ParallelBus
 from ._fourwire import FourWire
 from ._group import Group
 from paralleldisplay import ParallelBus
 from ._fourwire import FourWire
 from ._group import Group
@@ -151,7 +151,11 @@ class _DisplayCore:
         if self._current_group is not None:
             self._current_group._update_transform(self._transform)
 
         if self._current_group is not None:
             self._current_group._update_transform(self._transform)
 
-    def show(self, root_group: Group) -> bool:
+    def get_root_group(self):
+        """The root group on the display."""
+        return self._current_group
+
+    def set_root_group(self, root_group: Group) -> bool:
         # pylint: disable=protected-access
 
         """
         # pylint: disable=protected-access
 
         """
@@ -227,7 +231,10 @@ class _DisplayCore:
             self._current_group._in_group = False
 
     def fill_area(
             self._current_group._in_group = False
 
     def fill_area(
-        self, area: Area, mask: _typing.WriteableBuffer, buffer: _typing.WriteableBuffer
+        self,
+        area: Area,
+        mask: circuitpython_typing.WriteableBuffer,
+        buffer: circuitpython_typing.WriteableBuffer,
     ) -> bool:
         # pylint: disable=protected-access
         """Call the current group's fill area function"""
     ) -> bool:
         # pylint: disable=protected-access
         """Call the current group's fill area function"""
@@ -261,7 +268,10 @@ class _DisplayCore:
         return True
 
     def send(
         return True
 
     def send(
-        self, data_type: int, chip_select: int, data: _typing.ReadableBuffer
+        self,
+        data_type: int,
+        chip_select: int,
+        data: circuitpython_typing.ReadableBuffer,
     ) -> None:
         """
         Send the data to the current bus
     ) -> None:
         """
         Send the data to the current bus