slint/docs/recipes/button_native.slint
Simon Hausmann f88b9f143e Fix doctest
Make the native Rust example compile
2022-04-04 10:01:26 +02:00

13 lines
407 B
Text

// Copyright © SixtyFPS GmbH <info@slint-ui.com>
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-commercial
import { VerticalBox, Button } from "std-widgets.slint";
export Recipe := Window {
property <int> counter: 0;
callback button_pressed <=> button.clicked;
VerticalBox {
button := Button {
text: "Button, pressed \{root.counter} times";
}
}
}