Blender  V3.3
Namespaces
idprop_create.cc File Reference
#include <type_traits>
#include "DNA_ID.h"
#include "BKE_idprop.hh"

Go to the source code of this file.

Namespaces

 blender
 
 blender::bke
 
 blender::bke::idprop
 

Functions

Create Functions
std::unique_ptr< IDProperty, IDPropertyDeleter > blender::bke::idprop::create (StringRefNull prop_name, int32_t value)
 Allocate a new IDProperty of type IDP_INT, set its name and value. More...
 
std::unique_ptr< IDProperty, IDPropertyDeleter > blender::bke::idprop::create (StringRefNull prop_name, float value)
 Allocate a new IDProperty of type IDP_FLOAT, set its name and value. More...
 
std::unique_ptr< IDProperty, IDPropertyDeleter > blender::bke::idprop::create (StringRefNull prop_name, double value)
 Allocate a new IDProperty of type IDP_DOUBLE, set its name and value. More...
 
std::unique_ptr< IDProperty, IDPropertyDeleter > blender::bke::idprop::create (StringRefNull prop_name, const StringRefNull value)
 Allocate a new IDProperty of type IDP_STRING, set its name and value. More...
 
static std::unique_ptr< IDProperty, IDPropertyDeleter > blender::bke::idprop::array_create (const StringRefNull prop_name, eIDPropertyType subtype, size_t array_len)
 
static void blender::bke::idprop::array_values_set (IDProperty *property, const void *values, size_t values_len, size_t value_size)
 
template<typename PrimitiveType , eIDPropertyType id_property_subtype>
std::unique_ptr< IDProperty, IDPropertyDeleter > blender::bke::idprop::create_array (StringRefNull prop_name, Span< PrimitiveType > values)
 
std::unique_ptr< IDProperty, IDPropertyDeleter > blender::bke::idprop::create (StringRefNull prop_name, Span< int32_t > values)
 Allocate a new IDProperty of type IDP_ARRAY and subtype IDP_INT. More...
 
std::unique_ptr< IDProperty, IDPropertyDeleter > blender::bke::idprop::create (StringRefNull prop_name, Span< float > values)
 Allocate a new IDProperty of type IDP_ARRAY and subtype IDP_FLOAT. More...
 
std::unique_ptr< IDProperty, IDPropertyDeleter > blender::bke::idprop::create (StringRefNull prop_name, Span< double > values)
 Allocate a new IDProperty of type IDP_ARRAY and subtype IDP_DOUBLE. More...
 
std::unique_ptr< IDProperty, IDPropertyDeleter > blender::bke::idprop::create_group (StringRefNull prop_name)
 Allocate a new IDProperty of type IDP_GROUP. More...