slint/internal/compiler/passes
Ashley 0670cb1dc7
Handle rotating mouse events (#9317)
* Start on touch event rotation work

* [autofix.ci] apply automated fixes

* Use ItemTransform instead.

* [autofix.ci] apply automated fixes

* Use casts to deal with integer Coords on some platforms

* Remove rotation checks

* Transform the exit event as well

* Delete check_rotation pass

* Do casts around transform_point to handle i32 Coords

* Remove errors from rotation syntax test

* Basic event rotation test

Working changes

* Fix clicks on rotated objects

* Add RendererSealed::suppports_transformation for runtime checks

* [autofix.ci] apply automated fixes

* Add a few missing line breaks, only transform events if supported by
renderer

* Improve test

* Remove extra whitespace

* Get absolute-position working

* Ensure map_to_window does the coordinate cast thing.

* Manually test mouse-x and mouse-y, test absolute_position()

* Whitespace stuff again

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-09-12 00:13:14 +12:00
..
apply_default_properties_from_style.rs Remove default font size from StyleMetrics 2025-08-21 14:29:55 +02:00
binding_analysis.rs compiler: Produce a binding loop error when using rem on default-font-size itself 2025-08-21 21:31:27 +02:00
border_radius.rs Reduce SmolStr <-> &str conversions and copies (#6688) 2024-11-19 10:07:16 +01:00
check_expressions.rs Refactoring: get rid in the callable in the Expression tree 2025-01-24 20:26:35 +01:00
check_public_api.rs Compiler refactor: Make the Component Node a syntax_nodes::Component 2025-08-01 18:25:40 +02:00
clip.rs Auto-fixed clippy::unnecessary_map_or 2025-02-07 09:02:31 +01:00
collect_custom_fonts.rs Fix grammar and typos in comments (in the compiler passes) 2025-08-13 16:27:28 +02:00
collect_globals.rs Fix grammar and typos in comments (in the compiler passes) 2025-08-13 16:27:28 +02:00
collect_init_code.rs Fix grammar and typos in comments (in the compiler passes) 2025-08-13 16:27:28 +02:00
collect_structs_and_enums.rs Fix grammar and typos in comments (in the compiler passes) 2025-08-13 16:27:28 +02:00
collect_subcomponents.rs Fix grammar and typos in comments (in the compiler passes) 2025-08-13 16:27:28 +02:00
compile_paths.rs Fix regression in the Path element when used with inheritance (#9176) 2025-08-17 16:54:18 +02:00
const_propagation.rs Add local variables (#8740) 2025-06-26 15:36:49 +02:00
deduplicate_property_read.rs Compiler: remove more indeterminism in the order of statements 2025-02-15 18:53:44 +01:00
default_geometry.rs Auto-fixed clippy::needless_borrow 2025-02-07 09:02:45 +01:00
embed_glyphs.rs Update fdsm dependency to 0.7.0 (#8524) 2025-06-27 08:46:19 +02:00
embed_images.rs compiler: Use BTreeMap at a few more place to help with determinism of the output 2025-02-15 18:53:44 +01:00
ensure_window.rs Allow to have builtin item function to return a value 2025-03-31 14:06:24 +02:00
flickable.rs compiler: Add a struct to hold a ChildrenInsertionPoint 2025-05-27 10:49:26 +02:00
focus_handling.rs compiler: Add a DebugHook expression 2025-04-09 13:52:29 +02:00
generate_item_indices.rs core: Fix the component container 2025-06-05 13:48:16 +02:00
infer_aliases_types.rs Fix grammar and typos in comments (in the compiler passes) 2025-08-13 16:27:28 +02:00
inject_debug_hooks.rs SQUASH: Rework the element id to be a hash based on filename 2025-04-09 13:52:29 +02:00
inlining.rs Simplify menu handling 2025-08-15 12:07:46 +02:00
lower_absolute_coordinates.rs compiler: Fix materialize of absolute-position in timer callback 2025-05-26 15:44:11 +02:00
lower_accessibility.rs compiler: Add a DebugHook expression 2025-04-09 13:52:29 +02:00
lower_component_container.rs Compiler refactor: Make the Component Node a syntax_nodes::Component 2025-08-01 18:25:40 +02:00
lower_layout.rs Fix grammar and typos in comments (in the compiler passes) 2025-08-13 16:27:28 +02:00
lower_menus.rs MenuBar: allow it to be in a if 2025-08-18 11:17:57 +02:00
lower_platform.rs Fix grammar and typos in comments (in the compiler passes) 2025-08-13 16:27:28 +02:00
lower_popups.rs Fix grammar and typos in comments (in the compiler passes) 2025-08-13 16:27:28 +02:00
lower_property_to_element.rs Auto-fixed clippy::needless_borrow 2025-02-07 09:02:45 +01:00
lower_shadows.rs Fix all format arg inlining 2025-02-06 10:16:20 +01:00
lower_states.rs Transition: Introduce in-out to allow writing symmetry animation (#8509) 2025-05-26 09:17:22 +02:00
lower_tabwidget.rs Fix grammar and typos in comments (in the compiler passes) 2025-08-13 16:27:28 +02:00
lower_text_input_interface.rs Fix grammar and typos in comments (in the compiler passes) 2025-08-13 16:27:28 +02:00
lower_timers.rs Fix grammar and typos in comments (in the compiler passes) 2025-08-13 16:27:28 +02:00
materialize_fake_properties.rs compiler: fix materialize_fake_properties change 2025-02-21 11:16:00 +01:00
move_declarations.rs MenuItem with for and if 2025-01-30 10:08:22 +01:00
optimize_useless_rectangles.rs Auto-fixed clippy::unnecessary_map_or 2025-02-07 09:02:31 +01:00
purity_check.rs Refactoring: get rid in the callable in the Expression tree 2025-01-24 20:26:35 +01:00
remove_aliases.rs Fix change handler with callback 2025-03-20 21:34:52 +01:00
remove_return.rs Compiler: Fix invalid code gen with return statements 2025-06-18 12:58:59 +02:00
remove_unused_properties.rs Auto-fixed clippy::unnecessary_map_or 2025-02-07 09:02:31 +01:00
repeater_component.rs Simplify menu handling 2025-08-15 12:07:46 +02:00
resolve_native_classes.rs Use SmolStr in more places of the compiler infrastructure 2024-10-17 18:04:58 +02:00
resolving.rs Parse: accept changed callback without brace 2025-08-29 14:49:47 +02:00
unique_id.rs Auto-fixed clippy::needless_borrow 2025-02-07 09:02:45 +01:00
visible.rs Auto-fixed clippy::unnecessary_map_or 2025-02-07 09:02:31 +01:00
z_order.rs compiler: Add a DebugHook expression 2025-04-09 13:52:29 +02:00