Blender  V2.93
ED_space_api.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  *
16  * The Original Code is Copyright (C) 2008 Blender Foundation.
17  * All rights reserved.
18  */
19 
24 #pragma once
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
30 struct ARegionType;
31 struct bContext;
32 
33 void ED_spacetypes_init(void);
34 void ED_spacemacros_init(void);
35 
36 /* the pluginnable API for export to editors */
37 
38 /* calls for registering default spaces */
39 void ED_spacetype_outliner(void);
40 void ED_spacetype_view3d(void);
41 void ED_spacetype_ipo(void);
42 void ED_spacetype_image(void);
43 void ED_spacetype_node(void);
44 void ED_spacetype_buttons(void);
45 void ED_spacetype_info(void);
46 void ED_spacetype_file(void);
47 void ED_spacetype_action(void);
48 void ED_spacetype_nla(void);
49 void ED_spacetype_script(void);
50 void ED_spacetype_text(void);
51 void ED_spacetype_sequencer(void);
52 void ED_spacetype_logic(void);
53 void ED_spacetype_console(void);
54 void ED_spacetype_userpref(void);
55 void ED_spacetype_clip(void);
56 void ED_spacetype_statusbar(void);
57 void ED_spacetype_topbar(void);
58 void ED_spacetype_spreadsheet(void);
59 
60 /* calls for instancing and freeing spacetype static data
61  * called in WM_init_exit */
62 /* in space_file.c */
63 void ED_file_init(void);
64 void ED_file_exit(void);
65 
66 #define REGION_DRAW_POST_VIEW 0
67 #define REGION_DRAW_POST_PIXEL 1
68 #define REGION_DRAW_PRE_VIEW 2
69 #define REGION_DRAW_BACKDROP 3
70 
71 void *ED_region_draw_cb_activate(struct ARegionType *art,
72  void (*draw)(const struct bContext *, struct ARegion *, void *),
73  void *customdata,
74  int type);
75 void ED_region_draw_cb_draw(const struct bContext *, struct ARegion *, int);
76 void ED_region_draw_cb_exit(struct ARegionType *, void *);
78  void *draw_fn,
79  void (*free)(void *));
80 
81 #ifdef __cplusplus
82 }
83 #endif
void BLI_kdtree_nd_() free(KDTree *tree)
Definition: kdtree_impl.h:116
void ED_file_exit(void)
Definition: space_file.c:1011
void ED_spacetypes_init(void)
Definition: spacetypes.c:74
void ED_spacetype_buttons(void)
void ED_spacetype_console(void)
void ED_spacetype_ipo(void)
Definition: space_graph.c:828
void ED_region_draw_cb_draw(const struct bContext *, struct ARegion *, int)
void ED_spacetype_clip(void)
Definition: space_clip.c:1342
void ED_spacetype_file(void)
Definition: space_file.c:911
void ED_spacetype_action(void)
Definition: space_action.c:854
void ED_spacetype_topbar(void)
Definition: space_topbar.c:240
void ED_spacemacros_init(void)
Definition: spacetypes.c:157
void * ED_region_draw_cb_activate(struct ARegionType *art, void(*draw)(const struct bContext *, struct ARegion *, void *), void *customdata, int type)
Definition: spacetypes.c:238
void ED_spacetype_spreadsheet(void)
void ED_region_draw_cb_remove_by_type(struct ARegionType *art, void *draw_fn, void(*free)(void *))
Definition: spacetypes.c:276
void ED_spacetype_script(void)
Definition: space_script.c:166
void ED_spacetype_image(void)
Definition: space_image.c:1047
void ED_file_init(void)
Definition: space_file.c:1000
void ED_spacetype_sequencer(void)
void ED_spacetype_info(void)
Definition: space_info.c:269
void ED_spacetype_view3d(void)
void ED_spacetype_outliner(void)
void ED_spacetype_nla(void)
Definition: space_nla.c:595
void ED_spacetype_node(void)
Definition: space_node.c:1037
void ED_spacetype_text(void)
Definition: space_text.c:427
void ED_spacetype_logic(void)
void ED_spacetype_userpref(void)
void ED_spacetype_statusbar(void)
void ED_region_draw_cb_exit(struct ARegionType *, void *)
Definition: spacetypes.c:253
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum type