libikarus/include/ikarus/objects/properties/settings/text_property_settings.h
Folling a791dccfd9
split property & values into separate classes and files
Signed-off-by: Folling <mail@folling.io>
2025-04-15 12:07:59 +02:00

31 lines
899 B
C

#pragma once
/// \file text_property_settings.h
/// \author Folling <folling@ikarus.world>
#include <ikarus/macros.h>
/// \addtogroup property_settings PropertySettings
/// \brief Text property settings add additional constraints to text properties.
/// \details The following settings are available:
///
/// @{
IKARUS_BEGIN_HEADER
struct IkarusTextPropertySettings;
/// \brief Sets the default value for a text property.
/// \param settings The text property settings.
/// \pre \li Must not be null.
/// \param default_value The default value.
/// \pre \li Must not be null.
/// \pre \li Must be a valid value for the property.
/// \remark The settings take ownership of the value, the caller must not free it.
IKA_API void ikarus_text_property_settings_set_default_value(
struct IkarusTextPropertySettings * settings, struct IkarusTextValue * default_value
);
IKARUS_END_HEADER
/// @}