mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-08 01:20:19 +00:00
add js memory tutorial (#2421)
This commit is contained in:
parent
16fbee01fe
commit
c6472f9662
23 changed files with 597 additions and 2 deletions
20
docs/tutorial/node/src/memory_tile.slint
Normal file
20
docs/tutorial/node/src/memory_tile.slint
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue