Blender V2.61 - r43446
Functions

property.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
#include <string.h>
#include <ctype.h>
#include "MEM_guardedalloc.h"
#include "DNA_property_types.h"
#include "DNA_object_types.h"
#include "BLI_blenlib.h"
#include "BKE_property.h"

Go to the source code of this file.

Functions

void free_property (bProperty *prop)
void free_properties (ListBase *lb)
bPropertycopy_property (bProperty *prop)
void copy_properties (ListBase *lbn, ListBase *lbo)
void init_property (bProperty *prop)
bPropertynew_property (int type)
static bPropertyget_property__internal (bProperty *first, bProperty *self, const char *name)
void unique_property (bProperty *first, bProperty *prop, int force)
bPropertyget_ob_property (Object *ob, const char *name)
void set_ob_property (Object *ob, bProperty *propc)
int compare_property (bProperty *prop, const char *str)
void set_property (bProperty *prop, const char *str)
void add_property (bProperty *prop, const char *str)
void set_property_valstr (bProperty *prop, char *str)
void cp_property (bProperty *prop1, bProperty *prop2)

Detailed Description

Definition in file property.c.


Function Documentation

void add_property ( bProperty prop,
const char *  str 
)

Definition at line 264 of file property.c.

References bProperty::data, GPROP_BOOL, GPROP_FLOAT, GPROP_INT, GPROP_STRING, GPROP_TIME, and bProperty::type.

Referenced by ply_read().

int compare_property ( bProperty prop,
const char *  str 
)
void copy_properties ( ListBase lbn,
ListBase lbo 
)
bProperty* copy_property ( bProperty prop) [read]
void cp_property ( bProperty prop1,
bProperty prop2 
)

Definition at line 305 of file property.c.

References set_property(), set_property_valstr(), and str.

void free_properties ( ListBase lb)

Definition at line 56 of file property.c.

References BLI_remlink(), ListBase::first, and free_property().

Referenced by copy_properties(), free_object(), and game_property_clear_exec().

void free_property ( bProperty prop)

Definition at line 48 of file property.c.

References bProperty::data, MEM_freeN(), and bProperty::poin.

Referenced by free_properties(), game_property_remove(), and set_ob_property().

bProperty* get_ob_property ( Object ob,
const char *  name 
) [read]
static bProperty* get_property__internal ( bProperty first,
bProperty self,
const char *  name 
) [static]

Definition at line 131 of file property.c.

References bProperty::name, bProperty::next, NULL, and p.

Referenced by unique_property().

void init_property ( bProperty prop)
bProperty* new_property ( int  type) [read]

Definition at line 116 of file property.c.

References init_property(), MEM_callocN(), bProperty::name, and bProperty::type.

Referenced by game_property_new().

void set_ob_property ( Object ob,
bProperty propc 
)
void set_property ( bProperty prop,
const char *  str 
)
void set_property_valstr ( bProperty prop,
char *  str 
)
void unique_property ( bProperty first,
bProperty prop,
int  force 
)