raylib home ui: show/hide events (#36058)

* it's a widget

* proper events

* bottom
This commit is contained in:
Shane Smiskol
2025-08-25 15:52:13 -07:00
committed by GitHub
parent e89c6b3b88
commit 15fcbf24f1
3 changed files with 26 additions and 7 deletions
+7
View File
@@ -129,3 +129,10 @@ class Widget(abc.ABC):
def _handle_mouse_release(self, mouse_pos: MousePos) -> bool:
"""Optionally handle mouse release events."""
return False
def show_event(self):
"""Optionally handle show event. Parent must manually call this"""
def hide_event(self):
"""Optionally handle hide event. Parent must manually call this"""