simvx.core.debug.ui_inspector

UI event inspector — logs input routing and control state.

Module Contents

Classes

UIInputLog

Single UI input event record.

UIInspector

Event logger and control state tracker. No-ops when disabled.

Data

API

simvx.core.debug.ui_inspector.__all__

[‘UIInspector’, ‘UIInputLog’]

class simvx.core.debug.ui_inspector.UIInputLog

Single UI input event record.

timestamp: float

None

event_type: str

None

position: tuple[float, float]

(0.0, 0.0)

target_path: str = <Multiline-String>
outcome: str = <Multiline-String>
details: str = <Multiline-String>
class simvx.core.debug.ui_inspector.UIInspector

Event logger and control state tracker. No-ops when disabled.

Initialization

log_event(event_type: str, event, target, outcome: str)
log_focus_change(old, new)
log_hit_test(point, result)
snapshot_state(tree)

Capture focused/hovered/popup state for overlay display.

get_recent_log(count: int = 20) list[simvx.core.debug.ui_inspector.UIInputLog]
inspect_control(control) dict

Full diagnostic dump of a single control.