mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-10-01 03:43:46 +08:00
Reduce onroad UI work and move parameter refresh off render thread
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user