Blender  V3.3
Classes | Namespaces | Functions
BKE_idprop.hh File Reference
#include "BKE_idprop.h"
#include "BLI_serialize.hh"
#include "BLI_span.hh"

Go to the source code of this file.

Classes

class  blender::bke::idprop::IDPropertyDeleter
 

Namespaces

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

Functions

std::unique_ptr< io::serialize::ArrayValue > blender::bke::idprop::convert_to_serialize_values (const IDProperty *properties)
 Convert the given properties to Value objects for serialization. More...
 
IDProperty from Value
IDPropertyblender::bke::idprop::convert_from_serialize_value (const blender::io::serialize::Value &value)
 Convert the given value to an IDProperty. More...
 
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...
 
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...