mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 06:11:16 +00:00
Initial port of the C++ version of the memory tutorial
A couple of things still need to be done though, including more sharing with the Rust version, cmake syntax highlighting, externalizing the code.
This commit is contained in:
parent
0299ad66c8
commit
8083046e1d
18 changed files with 437 additions and 5 deletions
|
@ -71,4 +71,5 @@ important because capturing a copy of the `main_window` itself within the callba
|
|||
The `MainWindow` owns the callback handler, which itself owns a reference to the `MainWindow`, which must be weak
|
||||
instead of strong to avoid a memory leak.
|
||||
|
||||
And that's it, now we can run the game!
|
||||
These were the last changes and running the result gives us a window on the screen that allows us
|
||||
to play the game by the rules.
|
Loading…
Add table
Add a link
Reference in a new issue