#include "toggle_property.hpp" #include #include #include #include #include IkarusToggleProperty::IkarusToggleProperty(IkarusProject * project, IkarusId id): IkarusProperty{project, id, this} {} IkarusToggleProperty * ikarus_toggle_property_create( struct IkarusProject * project, char const * name, struct IkarusPropertySource * property_source, struct IkarusToggleValue * default_value, IkarusErrorData * error_out ) { return ikarus::util::create_property(project, name, property_source, default_value, error_out); } IkarusToggleValue * ikarus_toggle_property_get_default_value(struct IkarusToggleProperty * property, IkarusErrorData * error_out) { return ikarus::util::get_default_value(property, error_out); } void ikarus_toggle_property_set_default_value( struct IkarusToggleProperty * property, struct IkarusToggleValue * new_default_value, IkarusErrorData * error_out ) { ikarus::util::set_default_value(property, new_default_value, error_out); }