31 lines
917 B
C
31 lines
917 B
C
#pragma once
|
|
|
|
/// \file number_property_settings.h
|
|
/// \author Folling <folling@ikarus.world>
|
|
|
|
#include <ikarus/macros.h>
|
|
|
|
/// \addtogroup property_settings PropertySettings
|
|
/// \brief Number property settings add additional constraints to number properties.
|
|
/// \details The following settings are available:
|
|
///
|
|
/// @{
|
|
|
|
IKARUS_BEGIN_HEADER
|
|
|
|
struct IkarusNumberPropertySettings;
|
|
|
|
/// \brief Sets the default value for a number property.
|
|
/// \param settings The number 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_number_property_settings_set_default_value(
|
|
struct IkarusNumberPropertySettings * settings, struct IkarusNumberValue * default_value
|
|
);
|
|
|
|
IKARUS_END_HEADER
|
|
|
|
/// @}
|