slint/internal/backends/android-activity
Simon Hausmann 0e67654431 Fix jitter when resizing a window on macOS
Commit 1e450abc9c originally fixed this. Meanwhile, after many refactorings, this doesn't work anymore for the FemtoVG renderer. That's because the contents placement (or layer's contents gravity) is set before the hidden layer NSOpenGLContext creates is associated with the view.

For the Skia GL surface that already works, but for clarify the code is moved into the same location.

For Skia Metal rendering, apply the same on the metal layer (through the view). For this to work the contents scale also needs to be applied. To avoid further visual effects, the scale needs to be applied as early as possible, so apply it right after creating the
surface and latest at rendering time.

Fixes #5258
2024-06-06 08:34:58 -07:00
..
java Android: fix content positioning 2024-06-03 16:53:29 +02:00
LICENSES Simplify commercial license (#3063) 2024-05-31 14:06:17 +02:00
androidwindowadapter.rs Fix jitter when resizing a window on macOS 2024-06-06 08:34:58 -07:00
build.rs Simplify commercial license (#3063) 2024-05-31 14:06:17 +02:00
Cargo.toml Simplify commercial license (#3063) 2024-05-31 14:06:17 +02:00
javahelper.rs Simplify commercial license (#3063) 2024-05-31 14:06:17 +02:00
lib.rs Simplify commercial license (#3063) 2024-05-31 14:06:17 +02:00
README.md Simplify commercial license (#3063) 2024-05-31 14:06:17 +02:00

NOTE: This library is an internal crate of the Slint project.

WARNING: This crate does not follow the semver convention for versioning and can only be used with version = "=x.y.z" in Cargo.toml.

Slint Android Activity Backend

This crate implements the Android backend/platform for Slint.

It uses the android-activity crate to initialize the app and provide events handling.

It can be used by using functions from the slint::android module