Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions api/cpp/cbindgen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ fn gen_corelib(
"SwipeGestureHandler",
"Flickable",
"SimpleText",
"StyledTextItem",
"ComplexText",
"Path",
"WindowItem",
Expand Down
26 changes: 26 additions & 0 deletions tests/cases/elements/styledtext.slint
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// Copyright © SixtyFPS GmbH <[email protected]>
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0

export component TestCase inherits Window {

st := StyledText {
text: @markdown("Hello **World**: {}", "_abc_");
font-size: 24px;
color: red;
}

out property <bool> test: true;
}

/*
```rust
let instance = TestCase::new().unwrap();
assert!(instance.get_test());
```

```cpp
auto handle = TestCase::create();
const TestCase &instance = *handle;
assert(instance.get_test());
```
*/
Loading