mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 14:21:16 +00:00
C++: Document PropertyDescriptor
This commit is contained in:
parent
07dd3ec82f
commit
f7ff3ba0db
2 changed files with 14 additions and 0 deletions
|
@ -645,7 +645,20 @@ public:
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#if !defined(DOXYGEN)
|
||||||
using PropertyDescriptor = sixtyfps::cbindgen_private::PropertyDescriptor;
|
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.
|
/// ComponentDefinition is a representation of a compiled component from .60 markup.
|
||||||
///
|
///
|
||||||
|
|
|
@ -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)]
|
#[derive(Clone)]
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
pub struct PropertyDescriptor {
|
pub struct PropertyDescriptor {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue