1// Copyright © SixtyFPS GmbH <info@slint.dev>
2// SPDX-License-Identifier: MIT
3
4#[allow(dead_code)]
5fn main() {
6 MainWindow::new().unwrap().run().unwrap();
7}
8slint::slint! {
9// ANCHOR: tile
10component MemoryTile inherits Rectangle {
11 width: 64px;
12 height: 64px;
13 background: #3960D5;
14
15 Image {
16 source: @image-url("icons/bus.png");
17 width: parent.width;
18 height: parent.height;
19 }
20}
21
22export component MainWindow inherits Window {
23 MemoryTile {}
24}
25// ANCHOR_END: tile
26}
27