slint/docs
Avery Townsend 8c4ccabf7d
Expose FocusReason to .slint as an argument in focus-event-changed and add focus-gained and focus-lost callbacks (#8569)
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
2025-06-04 09:51:26 +02:00
..
astro Expose FocusReason to .slint as an argument in focus-event-changed and add focus-gained and focus-lost callbacks (#8569) 2025-06-04 09:51:26 +02:00
site docs: Fix missing trailing slash (#7353) 2025-01-14 15:49:47 +02:00
building.md Bump MSRV to 1.82 2025-01-14 08:33:21 +01:00
development.md infra: Test out mise 2025-03-20 16:33:00 +01:00
embedded-tutorials.md 1.9 Organise docs folder. (#7005) 2024-12-05 15:40:04 +02:00
install_qt.md 1.9 Organise docs folder. (#7005) 2024-12-05 15:40:04 +02:00
nightly-release-notes.md 1.9 Organise docs folder. (#7005) 2024-12-05 15:40:04 +02:00
readme.md Fix typos 2025-01-13 08:35:20 +01:00
release-artifacts.md Add linux armv7/aarch64 binaries to the release artifacts table 2025-04-14 13:02:05 +02:00
release-notes.md 1.9 Organise docs folder. (#7005) 2024-12-05 15:40:04 +02:00
testing.md syntax_tests: allow to update tests, and don't use a regexp (#8589) 2025-06-02 16:47:33 +02:00
torizon.md 1.9 Organise docs folder. (#7005) 2024-12-05 15:40:04 +02:00
triage.md 1.9 Organise docs folder. (#7005) 2024-12-05 15:40:04 +02:00

Slint Documentation

docs/
├── astro/          # The Astro project that builds the Slint language docs
├── README.md       # This file
├── building.md     # How to build Slint
├── development.md  # How to develop Slint
├── embedded-tutorials.md       # Embedded tutorials template
├── install_qt.md   # How to install Qt
├── nightly-release-notes.md    # Release note template
├── release-artifacts.md
├── platform-integrations.md    # Platform integrations template
└── release-notes.md            # Release note template