mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-29 21:34:50 +00:00
reuse: remove glob for markdown files
Instead, place the copyright and license right into the source. To satisfy reuse, this also removes the unnecessary MIT.txt symlinks.
This commit is contained in:
parent
fc64542221
commit
96d7bb132c
168 changed files with 159 additions and 23 deletions
|
@ -1,3 +1,4 @@
|
|||
<!-- Copyright © SixtyFPS GmbH <info@slint.dev> ; SPDX-License-Identifier: MIT -->
|
||||
# Summary
|
||||
|
||||
- [Introduction](./introduction.md)
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<!-- Copyright © SixtyFPS GmbH <info@slint.dev> ; SPDX-License-Identifier: MIT -->
|
||||
# Conclusion
|
||||
|
||||
In this tutorial, we have demonstrated how to combine some built-in Slint elements with Rust code to build a little
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<!-- Copyright © SixtyFPS GmbH <info@slint.dev> ; SPDX-License-Identifier: MIT -->
|
||||
# Creating The Tiles From Rust
|
||||
|
||||
The tiles in the game should have a random placement. We'll need to add the `rand` dependency to
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<!-- Copyright © SixtyFPS GmbH <info@slint.dev> ; SPDX-License-Identifier: MIT -->
|
||||
# From One To Multiple Tiles
|
||||
|
||||
After modeling a single tile, let's create a grid of them. For the grid to be our game board, we need two features:
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<!-- Copyright © SixtyFPS GmbH <info@slint.dev> ; SPDX-License-Identifier: MIT -->
|
||||
# Game Logic In Rust
|
||||
|
||||
We'll implement the rules of the game in Rust as well. The general philosophy of Slint is that merely the user
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<!-- Copyright © SixtyFPS GmbH <info@slint.dev> ; SPDX-License-Identifier: MIT -->
|
||||
# Getting Started
|
||||
|
||||
We assume that you are a somewhat familiar with Rust, and that you know how to create a Rust application with
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<!-- Copyright © SixtyFPS GmbH <info@slint.dev> ; SPDX-License-Identifier: MIT -->
|
||||
# Ideas For The Reader
|
||||
|
||||
The game is visually a little bare. Here are some ideas how you could make further changes to enhance it:
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<!-- Copyright © SixtyFPS GmbH <info@slint.dev> ; SPDX-License-Identifier: MIT -->
|
||||
# Introduction
|
||||
|
||||
This tutorial will introduce you to the Slint UI framework in a playful way by implementing a little memory game. We're going to combine the `.slint` language for the graphics with the game rules implemented in Rust.
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<!-- Copyright © SixtyFPS GmbH <info@slint.dev> ; SPDX-License-Identifier: MIT -->
|
||||
# Memory Tile
|
||||
|
||||
With the skeleton in place, let's look at the first element of the game, the memory tile. It will be the
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<!-- Copyright © SixtyFPS GmbH <info@slint.dev> ; SPDX-License-Identifier: MIT -->
|
||||
# Polishing the Tile
|
||||
|
||||
Next, let's add a curtain like cover that opens up when clicking. We achieve this by declaring two rectangles
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<!-- Copyright © SixtyFPS GmbH <info@slint.dev> ; SPDX-License-Identifier: MIT -->
|
||||
# Running In A Browser Using WebAssembly
|
||||
|
||||
Right now, we used `cargo run` to build and run our program as a native application.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue