Blender V2.61 - r43446

BKE_property.h

Go to the documentation of this file.
00001 /*
00002  * ***** BEGIN GPL LICENSE BLOCK *****
00003  *
00004  * This program is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU General Public License
00006  * as published by the Free Software Foundation; either version 2
00007  * of the License, or (at your option) any later version.
00008  *
00009  * This program is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  * GNU General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU General Public License
00015  * along with this program; if not, write to the Free Software Foundation,
00016  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00017  *
00018  * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
00019  * All rights reserved.
00020  *
00021  * The Original Code is: all of this file.
00022  *
00023  * Contributor(s): none yet.
00024  *
00025  * ***** END GPL LICENSE BLOCK *****
00026  */
00027 #ifndef BKE_PROPERTY_H
00028 #define BKE_PROPERTY_H
00029 
00034 struct bProperty;
00035 struct ListBase;
00036 struct Object;
00037 
00038 void free_property(struct bProperty *prop);
00039 void free_properties(struct ListBase *lb);
00040 struct bProperty *copy_property(struct bProperty *prop);
00041 void copy_properties(struct ListBase *lbn, struct ListBase *lbo);
00042 void init_property(struct bProperty *prop);
00043 struct bProperty *new_property(int type);
00044 void unique_property(struct bProperty *first, struct  bProperty *prop, int force);
00045 struct bProperty *get_ob_property(struct Object *ob, const char *name);
00046 void set_ob_property(struct Object *ob, struct bProperty *propc);
00047 int compare_property(struct bProperty *prop, const char *str);
00048 void set_property(struct bProperty *prop, const char *str);
00049 void add_property(struct bProperty *prop, const char *str);
00050 void set_property_valstr(struct bProperty *prop, char *str);
00051 void cp_property(struct bProperty *prop1, struct bProperty *prop2);
00052     
00053 #endif