Reduce onroad UI work and move parameter refresh off render thread

This commit is contained in:
firestar5683
2026-09-22 08:49:27 -05:00
parent 7f0c5673b4
commit cdc6b3bd68
15 changed files with 1010 additions and 159 deletions
+3
View File
@@ -80,6 +80,9 @@ class Widget(abc.ABC):
def set_visible(self, visible: bool | Callable[[], bool]) -> None:
self._is_visible = visible
def covers_background(self, rect: rl.Rectangle) -> bool:
return False
def set_click_callback(self, click_callback: Callable[[], None] | None) -> None:
"""Set a callback to be called when the widget is clicked."""
self._click_callback = click_callback