Blender V2.61 - r43446
|
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 * Contributor(s): Blender Foundation (2008), Juho Vepsäläinen 00019 * 00020 * ***** END GPL LICENSE BLOCK ***** 00021 */ 00022 00028 #include <stdlib.h> 00029 00030 #include "RNA_define.h" 00031 00032 #include "rna_internal.h" 00033 00034 #include "DNA_vfont_types.h" 00035 00036 #ifdef RNA_RUNTIME 00037 00038 #else 00039 00040 void RNA_def_vfont(BlenderRNA *brna) 00041 { 00042 StructRNA *srna; 00043 PropertyRNA *prop; 00044 00045 srna= RNA_def_struct(brna, "VectorFont", "ID"); 00046 RNA_def_struct_ui_text(srna, "Vector Font", "Vector font for Text objects"); 00047 RNA_def_struct_sdna(srna, "VFont"); 00048 RNA_def_struct_ui_icon(srna, ICON_FILE_FONT); 00049 00050 prop= RNA_def_property(srna, "filepath", PROP_STRING, PROP_FILEPATH); 00051 RNA_def_property_clear_flag(prop, PROP_EDITABLE); 00052 RNA_def_property_string_sdna(prop, NULL, "name"); 00053 RNA_def_property_ui_text(prop, "File Path", ""); 00054 00055 prop= RNA_def_property(srna, "packed_file", PROP_POINTER, PROP_NONE); 00056 RNA_def_property_pointer_sdna(prop, NULL, "packedfile"); 00057 RNA_def_property_ui_text(prop, "Packed File", ""); 00058 } 00059 00060 #endif 00061