libikarus/include/ikarus/objects/properties/settings/toggle_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
917 B
C

#pragma once
/// \file toggle_property_settings.h
/// \author Folling <folling@ikarus.world>
#include <ikarus/macros.h>
/// \addtogroup property_settings PropertySettings
/// \brief Toggle property settings add additional constraints to toggle properties.
/// \details The following settings are available:
///
/// @{
IKARUS_BEGIN_HEADER
struct IkarusTogglePropertySettings;
/// \brief Sets the default value for a toggle property.
/// \param settings The toggle 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_toggle_property_settings_set_default_value(
struct IkarusTogglePropertySettings * settings, struct IkarusToggleValue * default_value
);
IKARUS_END_HEADER
/// @}