Add missing C++ sixtyfps::ComponentDefinition::name()

It was already present in Rust
This commit is contained in:
Simon Hausmann 2021-06-07 11:30:22 +02:00
parent 6a4cd0087f
commit fb19588c8c
3 changed files with 29 additions and 2 deletions

View file

@ -709,6 +709,14 @@ public:
cbindgen_private::sixtyfps_interpreter_component_definition_properties(&inner, &props);
return props;
}
/// Returns the name of this Component as written in the .60 file
sixtyfps::SharedString name() const
{
sixtyfps::SharedString name;
cbindgen_private::sixtyfps_interpreter_component_definition_name(&inner, &name);
return name;
}
};
using Diagnostic = sixtyfps::cbindgen_private::CDiagnostic;