C++: Document PropertyDescriptor

This commit is contained in:
Simon Hausmann 2021-06-21 13:21:13 +02:00 committed by Simon Hausmann
parent 07dd3ec82f
commit f7ff3ba0db
2 changed files with 14 additions and 0 deletions

View file

@ -645,7 +645,20 @@ public:
}
};
#if !defined(DOXYGEN)
using PropertyDescriptor = sixtyfps::cbindgen_private::PropertyDescriptor;
#else
/// PropertyDescriptor is a simple structure that's used to describe a property declared in .60
/// code. It is returned from in a vector from
/// sixtyfps::interpreter::ComponentDefinition::properties().
struct PropertyDescriptor
{
/// The name of the declared property.
SharedString property_name;
/// The type of the property.
Value::Type property_type;
};
#endif // else !defined(DOXYGEN)
/// ComponentDefinition is a representation of a compiled component from .60 markup.
///

View file

@ -679,6 +679,7 @@ pub unsafe extern "C" fn sixtyfps_interpreter_component_compiler_build_from_path
}
}
// NOTE: The C++ documentation for this exists in sixtyfps_interpreter.h. Keep in sync!
#[derive(Clone)]
#[repr(C)]
pub struct PropertyDescriptor {