mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-30 22:01:13 +00:00
Some docs regarding the last model changes in the interpreter
This commit is contained in:
parent
02bfdda0e3
commit
653e7d0c5d
5 changed files with 38 additions and 23 deletions
|
@ -324,7 +324,9 @@ public:
|
|||
}
|
||||
|
||||
/// Returns a std::optional that contains a vector of values if the type of this Value is
|
||||
/// Type::Array, otherwise an empty optional is returned.
|
||||
/// Type::Model, otherwise an empty optional is returned.
|
||||
///
|
||||
/// The vector will be constructed by serializing all the elements of the model.
|
||||
inline std::optional<sixtyfps::SharedVector<Value>> to_array() const;
|
||||
|
||||
/// Returns a std::optional that contains a brush if the type of this Value is
|
||||
|
@ -371,7 +373,7 @@ public:
|
|||
}
|
||||
/// Constructs a new Value that holds the boolean \a b.
|
||||
Value(bool b) { cbindgen_private::sixtyfps_interpreter_value_new_bool(b, &inner); }
|
||||
/// Constructs a new Value that holds the value vector \a v.
|
||||
/// Constructs a new Value that holds the value vector \a v as a model.
|
||||
inline Value(const SharedVector<Value> &v);
|
||||
/// Constructs a new Value that holds the value model \a m.
|
||||
Value(const std::shared_ptr<sixtyfps::Model<Value>> &m);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue