mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-30 22:01:13 +00:00
Minor doc fix for Value
This commit is contained in:
parent
ab99d9b19e
commit
9e58b39317
1 changed files with 4 additions and 0 deletions
|
@ -184,6 +184,9 @@ private:
|
|||
/// different overloaded constructors and the to_xxx() functions to access the
|
||||
//// value within.
|
||||
///
|
||||
/// It is also possible to query the type the value holds by calling the Value::type()
|
||||
/// function.
|
||||
///
|
||||
/// ```
|
||||
/// Value v(42.0); // Creates a value that holds a double with the value 42.
|
||||
///
|
||||
|
@ -195,6 +198,7 @@ private:
|
|||
class Value
|
||||
{
|
||||
public:
|
||||
/// Constructs a new value of type Value::Type::Void.
|
||||
Value() { cbindgen_private::sixtyfps_interpreter_value_new(&inner); }
|
||||
|
||||
Value(const Value &other) { sixtyfps_interpreter_value_clone(&other.inner, &inner); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue