-
Notifications
You must be signed in to change notification settings - Fork 617
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
279 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<!-- Copyright © SixtyFPS GmbH <[email protected]> ; SPDX-License-Identifier: MIT --> | ||
|
||
# Build Desktop Applications | ||
|
||
Slint runs on many desktop and embedded platforms and micro-controllers. | ||
|
||
The platform descriptions below cover what has been tested for deployment. For the development environment, | ||
we recommend using a recent desktop operating system and compiler version. | ||
|
||
Contact [SixtyFPS GmbH](https://slint.dev/contact) if you need to support specific or older versions. | ||
|
||
## Desktop Platforms | ||
|
||
Generally, Slint runs on Windows, macOS, and popular Linux distributions. The following tables | ||
cover versions that we specifically test. The general objective is to support the operating systems that | ||
are supported by their vendors at the time of a Slint version release. | ||
|
||
### Windows | ||
|
||
| Operating System | Architecture | | ||
| ---------------- | ------------ | | ||
| Windows 10 | x86-64 | | ||
| Windows 11 | x86-64 | | ||
|
||
### macOS | ||
|
||
| Operating System | Architecture | | ||
| ----------------- | --------------- | | ||
| macOS 12 Monterey | x86-64, aarch64 | | ||
| macOS 13 Ventura | x86-64, aarch64 | | ||
| macOS 14 Sonoma | x86-64, aarch64 | | ||
|
||
### Linux | ||
|
||
Linux desktop distribution present a diverse landscape, and Slint should run on any of them, provided that they | ||
are using Wayland or X-Windows, glibc, and d-bus. If a Linux distribution provides Long Term Support (LTS), | ||
Slint should run on the most recent LTS or newer, at the time of a Slint version release. | ||
|
||
## Embedded Platforms | ||
|
||
Slint runs on a variety of embedded platforms. Generally speaking, Slint requires a modern Linux userspace | ||
with working OpenGL ES 2.0 (or newer) or Vulkan drivers. We've had success running Slint on | ||
|
||
- Yocto based distributions. For C++ applications see [meta-slint](https://github.com/slint-ui/meta-slint) for recipes. Rust application work out of the box with Yocto's rust support. | ||
- BuildRoot based distributions. | ||
- [TorizonCore](https://www.torizon.io/torizoncore-os). | ||
|
||
### Microcontrollers | ||
|
||
Slint's platform abstraction allows for integration into any Rust or C++ based Microcontroller development | ||
environment. Developers need to implement functionality to feed input events such as touch or keyboard, as | ||
well as displaying the pixels rendered by Slint into a frame- or linebuffer. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<!-- Copyright © SixtyFPS GmbH <[email protected]> ; SPDX-License-Identifier: MIT --> | ||
|
||
# Build Embedded Applications | ||
|
||
Slint runs on many desktop and embedded platforms and micro-controllers. | ||
|
||
The platform descriptions below cover what has been tested for deployment. For the development environment, | ||
we recommend using a recent desktop operating system and compiler version. | ||
|
||
Contact [SixtyFPS GmbH](https://slint.dev/contact) if you need to support specific or older versions. | ||
|
||
## Desktop Platforms | ||
|
||
Generally, Slint runs on Windows, macOS, and popular Linux distributions. The following tables | ||
cover versions that we specifically test. The general objective is to support the operating systems that | ||
are supported by their vendors at the time of a Slint version release. | ||
|
||
### Windows | ||
|
||
| Operating System | Architecture | | ||
| ---------------- | ------------ | | ||
| Windows 10 | x86-64 | | ||
| Windows 11 | x86-64 | | ||
|
||
### macOS | ||
|
||
| Operating System | Architecture | | ||
| ----------------- | --------------- | | ||
| macOS 12 Monterey | x86-64, aarch64 | | ||
| macOS 13 Ventura | x86-64, aarch64 | | ||
| macOS 14 Sonoma | x86-64, aarch64 | | ||
|
||
### Linux | ||
|
||
Linux desktop distribution present a diverse landscape, and Slint should run on any of them, provided that they | ||
are using Wayland or X-Windows, glibc, and d-bus. If a Linux distribution provides Long Term Support (LTS), | ||
Slint should run on the most recent LTS or newer, at the time of a Slint version release. | ||
|
||
## Embedded Platforms | ||
|
||
Slint runs on a variety of embedded platforms. Generally speaking, Slint requires a modern Linux userspace | ||
with working OpenGL ES 2.0 (or newer) or Vulkan drivers. We've had success running Slint on | ||
|
||
- Yocto based distributions. For C++ applications see [meta-slint](https://github.com/slint-ui/meta-slint) for recipes. Rust application work out of the box with Yocto's rust support. | ||
- BuildRoot based distributions. | ||
- [TorizonCore](https://www.torizon.io/torizoncore-os). | ||
|
||
### Microcontrollers | ||
|
||
Slint's platform abstraction allows for integration into any Rust or C++ based Microcontroller development | ||
environment. Developers need to implement functionality to feed input events such as touch or keyboard, as | ||
well as displaying the pixels rendered by Slint into a frame- or linebuffer. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...e/src/introduction/supported_platforms.md → docs/reference/src/introduction/mobile.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<!-- Copyright © SixtyFPS GmbH <[email protected]> ; SPDX-License-Identifier: MIT --> | ||
|
||
# Supported Platforms | ||
# Build Mobile Applications | ||
|
||
Slint runs on many desktop and embedded platforms and micro-controllers. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,20 @@ | ||
<!-- Copyright © SixtyFPS GmbH <[email protected]> ; SPDX-License-Identifier: MIT --> | ||
|
||
# Getting started | ||
# Quickstart | ||
|
||
This tutorial shows you how to use the languages that Slint supports as the host programming language. | ||
This tutorial introduces you to the Slint framework in a playful way by implementing a memory game. It combines the Slint language for the graphics with the game rules implemented in C++, Rust, or NodeJS. | ||
|
||
We recommend using [our editor integrations for Slint](https://github.com/slint-ui/slint/tree/master/editors) for following this tutorial. | ||
The game consists of a grid of 16 rectangular tiles. Clicking on a tile uncovers an icon underneath. | ||
There are 8 different icons in total, so each tile has a sibling somewhere in the grid with the | ||
same icon. The objective is to locate all icon pairs. The player can uncover two tiles at the same time. If they | ||
aren't the same, the game obscures the icons again. | ||
If the player uncovers two tiles with the same icon, then they remain visible - they're solved. | ||
|
||
Slint has application templates you can use to create a project with dependencies already set up that follows recommended best practices. | ||
This is how the game looks in action: | ||
|
||
<!-- .. raw:: html --> | ||
|
||
<video autoplay loop muted playsinline src="https://slint.dev/blog/memory-game-tutorial/memory_clip.mp4" class="img-fluid img-thumbnail rounded"></video> | ||
|
||
## Prerequisites | ||
|
||
|
Oops, something went wrong.