slint-spatial-focus

Crates.ioslint-spatial-focus
lib.rsslint-spatial-focus
version1.9.2-1.0.0
created_at2025-02-23 17:44:29.968152+00
updated_at2025-02-23 17:44:29.968152+00
descriptionAdds arrow key navigation to Slint UI
homepage
repositoryhttps://github.com/dngulin/slint-spatial-focus
max_upload_size
id1566536
size139,934
Danil Gulin (dngulin)

documentation

README

Arrow Key Navigation For Slint UI

This library adds spatial navigation to Slint applications.

How to use it:

  • Use the SpatialFocusHandler as a root item in your window
  • Export the SpatialFocus global object
  • Call the slint_spatial_focus::init! macro to initialize the library

For details see the example.

Limitations

  • The library depends on the i-slint-core and should be used with the specific Slint version (1.9.2 for now).
  • Focus traversal algorithm searches enabled FocusScope and TextInput objects. So, it misses all native controls.
  • Only float point Coord representation is supported
Commit count: 21

cargo fmt