add default values as param to property_create funcs

Signed-off-by: Folling <mail@folling.io>
This commit is contained in:
Folling 2024-01-15 03:37:26 +01:00 committed by Folling
parent a9d9503d82
commit c65211e4ff
No known key found for this signature in database
8 changed files with 24 additions and 8 deletions

View file

@ -24,12 +24,15 @@ struct IkarusToggleProperty;
/// \param property_source The property source to create the property for.
/// \pre \li Must not be null.
/// \pre \li Must exist.
/// \param default_value The default value for the property.
/// \pre \li Must not be null.
/// \param error_out \see errors.h
/// \return The created property or null if an error occurs.
IKA_API IkarusToggleProperty * ikarus_toggle_property_create(
struct IkarusProject * project,
char const * name,
struct IkarusPropertySource * property_source,
struct IkarusToggleValue * default_value,
IkarusErrorData * error_out
);