mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-30 22:01:13 +00:00
Value comparison in C++
This commit is contained in:
parent
8a14c4fa25
commit
09b7b92dbe
3 changed files with 35 additions and 0 deletions
|
@ -232,6 +232,13 @@ public:
|
|||
|
||||
Type type() const { return cbindgen_private::sixtyfps_interpreter_value_type(&inner); }
|
||||
|
||||
friend bool operator==(const Value &a, const Value &b) {
|
||||
return cbindgen_private::sixtyfps_interpreter_value_eq(&a.inner, &b.inner);
|
||||
}
|
||||
friend bool operator!=(const Value &a, const Value &b) {
|
||||
return !cbindgen_private::sixtyfps_interpreter_value_eq(&a.inner, &b.inner);
|
||||
}
|
||||
|
||||
private:
|
||||
using ValueOpaque = sixtyfps::cbindgen_private::ValueOpaque;
|
||||
ValueOpaque inner;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue