add js memory tutorial (#2421)

This commit is contained in:
Florian Blasius 2023-03-28 12:10:47 +00:00 committed by GitHub
parent 16fbee01fe
commit c6472f9662
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 597 additions and 2 deletions

View file

@ -0,0 +1,20 @@
// Copyright © SixtyFPS GmbH <info@slint-ui.com>
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-commercial
// ANCHOR: main_window
component MemoryTile inherits Rectangle {
width: 64px;
height: 64px;
background: #3960D5;
Image {
source: @image-url("icons/bus.png");
width: parent.width;
height: parent.height;
}
}
export component MainWindow inherits Window {
MemoryTile {}
}
// ANCHOR_END: main_window