33 lines
1.1 KiB
C++
33 lines
1.1 KiB
C++
#include "text_property.hpp"
|
|
|
|
#include <cppbase/result.hpp>
|
|
|
|
#include <ikarus/objects/properties/property.h>
|
|
|
|
#include <objects/properties/property_source.hpp>
|
|
#include <objects/properties/util.hpp>
|
|
#include <values/value.hpp>
|
|
|
|
IkarusTextProperty::IkarusTextProperty(IkarusProject * project, IkarusId id):
|
|
IkarusProperty{project, id, this} {}
|
|
|
|
IkarusTextProperty * ikarus_text_property_create(
|
|
struct IkarusProject * project,
|
|
char const * name,
|
|
struct IkarusPropertySource * property_source,
|
|
IkarusErrorData * error_out
|
|
) {
|
|
return ikarus::util::create_property<IkarusTextProperty>(project, name, property_source, error_out);
|
|
}
|
|
|
|
IkarusTextValue * ikarus_text_property_get_default_value(IkarusTextProperty * property, IkarusErrorData * error_out) {
|
|
return ikarus::util::get_default_value<IkarusTextProperty>(property, error_out);
|
|
}
|
|
|
|
void ikarus_text_property_set_default_value(
|
|
IkarusTextProperty * property,
|
|
IkarusTextValue * new_default_value,
|
|
IkarusErrorData * error_out
|
|
) {
|
|
ikarus::util::set_default_value<IkarusTextProperty>(property, new_default_value, error_out);
|
|
}
|