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
4export component DrawerLeft {
5 private property <length> logic_width;
6 rect := Rectangle {
7 init => {
8 logic_width = root.width;
9 }
10 @children
11 }
12}
13
14export component A {
15 hello := DrawerLeft { }
16}
17
18export component App inherits Window {
19 world := A { }
20}
21