mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-28 04:45:13 +00:00
Start implementing some code that passes argument to functions and signals
This commit is contained in:
parent
a192ffe283
commit
a6504ee61b
6 changed files with 100 additions and 53 deletions
|
@ -58,6 +58,9 @@ struct SharedString
|
|||
return std::string_view(a) != std::string_view(b);
|
||||
}
|
||||
|
||||
friend std::ostream& operator<< (std::ostream& stream, const SharedString& shared_string) {
|
||||
return stream << std::string_view(shared_string);
|
||||
}
|
||||
private:
|
||||
/// Use SharedString::from_number
|
||||
explicit SharedString(double n) { cbindgen_private::sixtyfps_shared_string_from_number(this, n); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue