1 | // Copyright © SixtyFPS GmbH <info@slint.dev> |
---|---|
2 | // SPDX-License-Identifier: MIT |
3 | |
4 | #[allow(dead_code)] |
5 | // ANCHOR: main |
6 | fn main() { |
7 | MainWindow::new().unwrap().run().unwrap(); |
8 | } |
9 | |
10 | slint::slint! { |
11 | export component MainWindow inherits Window { |
12 | Text { |
13 | text: "hello world"; |
14 | color: green; |
15 | } |
16 | } |
17 | } |
18 | // ANCHOR_END: main |
19 |