slint/docs/tutorial
Florian Blasius 0045787e1c
node: api review adjustements part I (#3766)
* Update api/node/src/types/brush.rs

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update tests/cases/callbacks/handler_with_arg.slint

Co-authored-by: Olivier Goffart <olivier.goffart@slint.dev>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Olivier Goffart <olivier.goffart@slint.dev>
2023-10-26 10:02:49 +02:00
..
cpp Upgrade MSRV to 1.70 2023-09-06 12:09:03 +02:00
node node: api review adjustements part I (#3766) 2023-10-26 10:02:49 +02:00
rust Bump version number to 1.3.0 2023-09-05 15:46:36 +02:00
theme Domain: slint-ui.com -> slint.dev 2023-06-16 10:55:08 +02:00
.gitignore Initial conversion of the memory game tutorial to mdbook 2021-06-15 14:38:40 +02:00
README.md xtask: Fix up license headers 2023-08-17 08:55:28 +02:00

Tutorials

The source code for the Rust and C++ versions of the Memory Game tutorial are located in the respect rust and cpp sub-directories. They are built using mdbook.

Requirements

Building the tutorial requires mdbook, which you can install with cargo:

cargo install mdbook

Building

To build the tutorial, go into either the rust or cpp sub-directory and run:

mdbook build

The output will be in the book/html subdirectory. To check it out, open it in your web browser.

Code Samples

The code in the tutorial is available in separate steps in .rs and .cpp files.

The .rs files are mapped to different binaries, so you if you change into the rust/src sub-directory, then cargo run will present you with binaries for the different steps.

The .cpp files are built using cpp/src/CMakeLists.txt, which is included from the top-level CMakeLists.txt.