| 1 | // Copyright © SixtyFPS GmbH <info@slint.dev> |
| 2 | // SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0 |
| 3 | |
| 4 | |
| 5 | import { ListView } from "std-widgets.slint" ; |
| 6 | |
| 7 | App := Window { |
| 8 | width: 100px; |
| 9 | height: 600px; |
| 10 | |
| 11 | ListView { |
| 12 | for item in [ |
| 13 | {}, {}, |
| 14 | ] : Rectangle { |
| 15 | drop-shadow-blur: 5px; |
| 16 | HorizontalLayout { |
| 17 | Image { |
| 18 | source: @image-url("../../../logo/slint-logo-square-light-128x128.png" ); |
| 19 | } |
| 20 | } |
| 21 | } |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | |
| 26 | /* |
| 27 | |
| 28 | ```rust |
| 29 | let ui = App::new().unwrap(); |
| 30 | // this should not panic |
| 31 | slint_testing::send_mouse_click(&ui, 50., 50.); |
| 32 | ``` |
| 33 | |
| 34 | */ |
| 35 | |