McRogueFace/tests/regression
John McCardle 2daebc84b5 Simplify on_enter/on_exit callbacks to position-only signature
BREAKING CHANGE: Hover callbacks now take only (pos) instead of (pos, button, action)

- Add PyHoverCallable class for on_enter/on_exit/on_move callbacks (position-only)
- Add PyCellHoverCallable class for on_cell_enter/on_cell_exit callbacks
- Change UIDrawable member types from PyClickCallable to PyHoverCallable
- Update PyScene::do_mouse_hover() to call hover callbacks with only position
- Add tryCallPythonMethod overload for position-only subclass method calls
- Update UIGrid::fireCellEnter/fireCellExit to use position-only signature
- Update all tests for new callback signatures

New callback signatures:
| Callback       | Old                      | New        |
|----------------|--------------------------|------------|
| on_enter       | (pos, button, action)    | (pos)      |
| on_exit        | (pos, button, action)    | (pos)      |
| on_move        | (pos, button, action)    | (pos)      |
| on_cell_enter  | (cell_pos, button, action)| (cell_pos)|
| on_cell_exit   | (cell_pos, button, action)| (cell_pos)|
| on_click       | unchanged                | unchanged  |
| on_cell_click  | unchanged                | unchanged  |

closes #230

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-28 17:36:02 -05:00
..
issue_9_minimal_test.py Timer overhaul: update tests 2026-01-03 22:44:53 -05:00
issue_9_rendertexture_resize_test.py Timer overhaul: update tests 2026-01-03 22:44:53 -05:00
issue_9_test.py Timer overhaul: update tests 2026-01-03 22:44:53 -05:00
issue_37_simple_test.py update tests: new scene API 2026-01-03 10:59:52 -05:00
issue_37_test.py update tests: new scene API 2026-01-03 10:59:52 -05:00
issue_76_test.py Timer overhaul: update tests 2026-01-03 22:44:53 -05:00
issue_79_color_properties_test.py Timer overhaul: update tests 2026-01-03 22:44:53 -05:00
issue_99_texture_font_properties_test.py Timer overhaul: update tests 2026-01-03 22:44:53 -05:00
issue_123_chunk_system_test.py Timer overhaul: update tests 2026-01-03 22:44:53 -05:00
issue_146_fov_returns_none.py Timer overhaul: update tests 2026-01-03 22:44:53 -05:00
issue_147_grid_layers.py Timer overhaul: update tests 2026-01-03 22:44:53 -05:00
issue_148_layer_dirty_flags.py Timer overhaul: update tests 2026-01-03 22:44:53 -05:00
issue_176_entity_position_test.py Organize test suite: add README, move loose tests to proper directories 2026-01-21 21:34:22 -05:00
issue_177_gridpoint_grid_pos_test.py Organize test suite: add README, move loose tests to proper directories 2026-01-21 21:34:22 -05:00
issue_179_181_grid_vectors_test.py Organize test suite: add README, move loose tests to proper directories 2026-01-21 21:34:22 -05:00
issue_180_timer_orphan_test.py Organize test suite: add README, move loose tests to proper directories 2026-01-21 21:34:22 -05:00
issue_180_timer_stopped_test.py Organize test suite: add README, move loose tests to proper directories 2026-01-21 21:34:22 -05:00
issue_182_caption_size_test.py Organize test suite: add README, move loose tests to proper directories 2026-01-21 21:34:22 -05:00
issue_183_parent_quirks_test.py tests for the last few issues (these test scripts should work with recent APIs, while the rest of the test suite needs an overhaul) 2026-01-08 10:31:21 -05:00
issue_184_189_module_test.py Organize test suite: add README, move loose tests to proper directories 2026-01-21 21:34:22 -05:00
issue_185_188_bounds_test.py Organize test suite: add README, move loose tests to proper directories 2026-01-21 21:34:22 -05:00
issue_190_layer_docs_test.py Organize test suite: add README, move loose tests to proper directories 2026-01-21 21:34:22 -05:00
issue_212_to_217_test.py Add input validation and fix Entity repr 2026-01-16 19:18:27 -05:00
issue_223_clip_children_test.py Fix UIFrame RenderTexture positioning and toggling issues 2026-01-22 22:54:50 -05:00
issue_callback_refcount_test.py Simplify on_enter/on_exit callbacks to position-only signature 2026-01-28 17:36:02 -05:00
subclass_callback_segfault_test.py Fix: Derivable drawable types participate in garbage collector cycle detection 2026-01-27 13:21:10 -05:00
test_type_preservation_solution.py Timer overhaul: update tests 2026-01-03 22:44:53 -05:00