|
Blender
V2.59
|
00001 /* 00002 * $Id: ED_space_api.h 35016 2011-02-21 07:25:24Z 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 * The Original Code is Copyright (C) 2008 Blender Foundation. 00021 * All rights reserved. 00022 * 00023 * 00024 * Contributor(s): Blender Foundation 00025 * 00026 * ***** END GPL LICENSE BLOCK ***** 00027 */ 00028 00033 #ifndef ED_SPACE_API_H 00034 #define ED_SPACE_API_H 00035 00036 struct ARegionType; 00037 struct bContext; 00038 00039 /* the pluginnable API for export to editors */ 00040 00041 /* calls for registering default spaces */ 00042 void ED_spacetype_outliner(void); 00043 void ED_spacetype_time(void); 00044 void ED_spacetype_view3d(void); 00045 void ED_spacetype_ipo(void); 00046 void ED_spacetype_image(void); 00047 void ED_spacetype_node(void); 00048 void ED_spacetype_buttons(void); 00049 void ED_spacetype_info(void); 00050 void ED_spacetype_file(void); 00051 void ED_spacetype_sound(void); 00052 void ED_spacetype_action(void); 00053 void ED_spacetype_nla(void); 00054 void ED_spacetype_script(void); 00055 void ED_spacetype_text(void); 00056 void ED_spacetype_sequencer(void); 00057 void ED_spacetype_logic(void); 00058 void ED_spacetype_console(void); 00059 void ED_spacetype_userpref(void); 00060 00061 /* calls for instancing and freeing spacetype static data 00062 called in WM_init_exit */ 00063 /* in space_file.c */ 00064 void ED_file_init(void); 00065 void ED_file_exit(void); 00066 00067 #define REGION_DRAW_POST_VIEW 0 00068 #define REGION_DRAW_POST_PIXEL 1 00069 #define REGION_DRAW_PRE_VIEW 2 00070 00071 void *ED_region_draw_cb_activate(struct ARegionType *, 00072 void (*draw)(const struct bContext *, struct ARegion *, void *), 00073 void *custumdata, int type); 00074 void ED_region_draw_cb_draw(const struct bContext *, struct ARegion *, int); 00075 void ED_region_draw_cb_exit(struct ARegionType *, void *); 00076 void *ED_region_draw_cb_customdata(void *handle); 00077 00078 #endif /* ED_SPACE_API_H */ 00079