Blender  V3.3
ED_space_api.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2008 Blender Foundation. All rights reserved. */
3 
8 #pragma once
9 
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13 
14 struct ARegionType;
15 struct bContext;
16 
17 /* Only called once on startup. storage is global in BKE kernel listbase. */
18 void ED_spacetypes_init(void);
19 void ED_spacemacros_init(void);
20 
21 /* The plugin-able API for export to editors. */
22 
23 /* -------------------------------------------------------------------- */
29 void ED_spacetype_outliner(void);
30 void ED_spacetype_view3d(void);
31 void ED_spacetype_ipo(void);
32 void ED_spacetype_image(void);
33 void ED_spacetype_node(void);
34 void ED_spacetype_buttons(void);
35 void ED_spacetype_info(void);
36 void ED_spacetype_file(void);
37 void ED_spacetype_action(void);
38 void ED_spacetype_nla(void);
39 void ED_spacetype_script(void);
40 void ED_spacetype_text(void);
41 void ED_spacetype_sequencer(void);
42 void ED_spacetype_logic(void);
43 void ED_spacetype_console(void);
44 void ED_spacetype_userpref(void);
45 void ED_spacetype_clip(void);
46 void ED_spacetype_statusbar(void);
47 void ED_spacetype_topbar(void);
48 void ED_spacetype_spreadsheet(void);
49 
52 /* -------------------------------------------------------------------- */
57 void ED_file_init(void);
58 void ED_file_exit(void);
59 
62 #define REGION_DRAW_POST_VIEW 0
63 #define REGION_DRAW_POST_PIXEL 1
64 #define REGION_DRAW_PRE_VIEW 2
65 #define REGION_DRAW_BACKDROP 3
66 
67 void *ED_region_draw_cb_activate(struct ARegionType *art,
68  void (*draw)(const struct bContext *, struct ARegion *, void *),
69  void *customdata,
70  int type);
71 void ED_region_draw_cb_draw(const struct bContext *C, struct ARegion *region, int type);
72 void ED_region_surface_draw_cb_draw(struct ARegionType *art, int type);
73 bool ED_region_draw_cb_exit(struct ARegionType *art, void *handle);
75  void *draw_fn,
76  void (*free)(void *));
77 
78 #ifdef __cplusplus
79 }
80 #endif
void BLI_kdtree_nd_() free(KDTree *tree)
Definition: kdtree_impl.h:102
void ED_file_exit(void)
Definition: space_file.c:1099
void ED_spacetypes_init(void)
Definition: spacetypes.c:60
void ED_spacetype_buttons(void)
void ED_spacetype_console(void)
void ED_spacetype_ipo(void)
Definition: space_graph.c:807
void ED_spacetype_clip(void)
Definition: space_clip.c:1248
void ED_spacetype_file(void)
Definition: space_file.c:998
void ED_spacetype_action(void)
Definition: space_action.c:837
void ED_spacetype_topbar(void)
Definition: space_topbar.c:285
void ED_spacemacros_init(void)
Definition: spacetypes.c:147
void * ED_region_draw_cb_activate(struct ARegionType *art, void(*draw)(const struct bContext *, struct ARegion *, void *), void *customdata, int type)
Definition: spacetypes.c:226
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:275
void ED_spacetype_script(void)
Definition: space_script.c:149
void ED_spacetype_image(void)
Definition: space_image.c:1029
void ED_file_init(void)
Definition: space_file.c:1088
void ED_spacetype_sequencer(void)
void ED_spacetype_info(void)
Definition: space_info.c:251
void ED_spacetype_view3d(void)
void ED_spacetype_outliner(void)
bool ED_region_draw_cb_exit(struct ARegionType *art, void *handle)
Definition: spacetypes.c:241
void ED_spacetype_nla(void)
Definition: space_nla.c:565
void ED_spacetype_node(void)
Definition: space_node.cc:1016
void ED_spacetype_text(void)
Definition: space_text.c:400
void ED_spacetype_logic(void)
void ED_region_draw_cb_draw(const struct bContext *C, struct ARegion *region, int type)
void ED_region_surface_draw_cb_draw(struct ARegionType *art, int type)
Definition: spacetypes.c:270
void ED_spacetype_userpref(void)
void ED_spacetype_statusbar(void)
_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
#define C
Definition: RandGen.cpp:25
struct ARegion * region
Definition: context.c:66