Blender  V2.59
rna_vfont.c
Go to the documentation of this file.
00001 /*
00002  * $Id: rna_vfont.c 35238 2011-02-27 20:20:01Z jesterking $
00003  *
00004  * ***** BEGIN GPL LICENSE BLOCK *****
00005  *
00006  * This program is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU General Public License
00008  * as published by the Free Software Foundation; either version 2
00009  * of the License, or (at your option) any later version.
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, write to the Free Software Foundation,
00018  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00019  *
00020  * Contributor(s): Blender Foundation (2008), Juho Vepsäläinen
00021  *
00022  * ***** END GPL LICENSE BLOCK *****
00023  */
00024 
00030 #include <stdlib.h>
00031 
00032 #include "RNA_define.h"
00033 
00034 #include "rna_internal.h"
00035 
00036 #include "DNA_vfont_types.h"
00037 
00038 #ifdef RNA_RUNTIME
00039 
00040 #else
00041 
00042 void RNA_def_vfont(BlenderRNA *brna)
00043 {
00044         StructRNA *srna;
00045         PropertyRNA *prop;
00046         
00047         srna= RNA_def_struct(brna, "VectorFont", "ID");
00048         RNA_def_struct_ui_text(srna, "Vector Font", "Vector font for Text objects");
00049         RNA_def_struct_sdna(srna, "VFont");
00050         RNA_def_struct_ui_icon(srna, ICON_FILE_FONT);
00051 
00052         prop= RNA_def_property(srna, "filepath", PROP_STRING, PROP_FILEPATH);
00053         RNA_def_property_clear_flag(prop, PROP_EDITABLE);
00054         RNA_def_property_string_sdna(prop, NULL, "name");
00055         RNA_def_property_ui_text(prop, "File Path", "");
00056 
00057         prop= RNA_def_property(srna, "packed_file", PROP_POINTER, PROP_NONE);
00058         RNA_def_property_pointer_sdna(prop, NULL, "packedfile");
00059         RNA_def_property_ui_text(prop, "Packed File", "");
00060 }
00061 
00062 #endif
00063