mirror of
https://github.com/slint-ui/slint.git
synced 2025-07-15 09:05:39 +00:00
![]() This exposes FocusReason to .slint, and adds it as an argument to focus-event-changed callback on FocusScope to close #8387. It also adds two new callbacks, focus-gained and focus-lost, which are identical to focus-event-changed but are only invoked on focus gain or loss respectively. In addition to this, it removes the FocusEventReason::AccessKit variant, replacing it with the mouse variant to hopefully make AccessKit more compatible with any Slint code that will use FocusEventReason. Finally, I added two tests based on focus_change_event.slint, one for testing the FocusEventReason argument and another for testing the new callbacks. close #8387 ChangeLog: Added `focus-gained` and `focus-lost` callback to FocusScope. Pass an `FocusReason` enum to the FocusScope callbacks |
||
---|---|---|
.. | ||
slint-interpreter.h | ||
slint-platform.h | ||
slint-stm32.h | ||
slint-testing.h | ||
slint.h | ||
slint_brush.h | ||
slint_callbacks.h | ||
slint_color.h | ||
slint_config.h | ||
slint_image.h | ||
slint_interpreter.h | ||
slint_item_tree.h | ||
slint_models.h | ||
slint_pathdata.h | ||
slint_point.h | ||
slint_properties.h | ||
slint_sharedvector.h | ||
slint_size.h | ||
slint_string.h | ||
slint_tests_helpers.h | ||
slint_timer.h | ||
slint_window.h | ||
vtable.h |