mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 02:39:28 +00:00
Update some .60 to .slint
This commit is contained in:
parent
d4c1130130
commit
03f78af987
4 changed files with 6 additions and 6 deletions
|
@ -12,7 +12,7 @@ If you are building Slint from source, you need to make sure that your Rust inst
|
|||
|
||||
### CMakeLists.txt
|
||||
|
||||
- When using `FetchContent`, the `SOURCE_SUBDIR` has changed from `api/sixtyfps-cpp` to `api/cpp`
|
||||
- When using `FetchContent`, the `SOURCE_SUBDIR` has changed from `api/sixtyfps-cpp` to `api/cpp`
|
||||
|
||||
### Models
|
||||
|
||||
|
@ -43,7 +43,7 @@ if (value.has_value()) {
|
|||
|
||||
#### Callbacks
|
||||
|
||||
Callbacks declared in `.60` markup can be invoked from C++ using {cpp:func}`slint::interpreter::ComponentInstance::invoke_callback()` or {cpp:func}`slint::interpreter::ComponentInstance::invoke_global_callback()`. The arguments to the callback at invocation time used to require the use of `sixtyfps::Slice` type. This was changed to use the C++ 20 [`std::span`](https://en.cppreference.com/w/cpp/container/span) type, for easier passing.
|
||||
Callbacks declared in `.slint` markup can be invoked from C++ using {cpp:func}`slint::interpreter::ComponentInstance::invoke_callback()` or {cpp:func}`slint::interpreter::ComponentInstance::invoke_global_callback()`. The arguments to the callback at invocation time used to require the use of `sixtyfps::Slice` type. This was changed to use the C++ 20 [`std::span`](https://en.cppreference.com/w/cpp/container/span) type, for easier passing.
|
||||
|
||||
Old code:
|
||||
|
||||
|
@ -70,4 +70,4 @@ The CMake interface has changed mostly in terms of renaming `SixtyFPS` to `Slint
|
|||
|
||||
* `find_package(SixtyFPS)` becomes `find_package(Slint)`.
|
||||
* The `SixtyFPS::SixtyFPS` CMake target was renamed to `Slint::Slint`.
|
||||
* The `sixtyfps_target_60_sources` CMake command was renamed to `slint_target_sources`.
|
||||
* The `sixtyfps_target_60_sources` CMake command was renamed to `slint_target_sources`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue