LEFT | RIGHT |
1 /* | 1 /* |
2 * ***** BEGIN GPL LICENSE BLOCK ***** | 2 * ***** BEGIN GPL LICENSE BLOCK ***** |
3 * | 3 * |
4 * This program is free software; you can redistribute it and/or | 4 * This program is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU General Public License | 5 * modify it under the terms of the GNU General Public License |
6 * as published by the Free Software Foundation; either version 2 | 6 * as published by the Free Software Foundation; either version 2 |
7 * of the License, or (at your option) any later version.· | 7 * of the License, or (at your option) any later version.· |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 10 matching lines...) Expand all Loading... |
21 *· | 21 *· |
22 * Contributor(s): Blender Foundation | 22 * Contributor(s): Blender Foundation |
23 * | 23 * |
24 * ***** END GPL LICENSE BLOCK ***** | 24 * ***** END GPL LICENSE BLOCK ***** |
25 */ | 25 */ |
26 | 26 |
27 /** \file ED_screen.h | 27 /** \file ED_screen.h |
28 * \ingroup editors | 28 * \ingroup editors |
29 */ | 29 */ |
30 | 30 |
31 #ifndef ED_SCREEN_H | 31 #ifndef __ED_SCREEN_H__ |
32 #define ED_SCREEN_H | 32 #define __ED_SCREEN_H__ |
33 | 33 |
34 #include "DNA_screen_types.h" | 34 #include "DNA_screen_types.h" |
35 #include "DNA_space_types.h" | 35 #include "DNA_space_types.h" |
36 #include "DNA_view2d_types.h" | 36 #include "DNA_view2d_types.h" |
37 #include "DNA_view3d_types.h" | 37 #include "DNA_view3d_types.h" |
38 | 38 |
39 struct wmWindowManager; | 39 struct wmWindowManager; |
40 struct wmWindow; | 40 struct wmWindow; |
41 struct wmNotifier; | 41 struct wmNotifier; |
42 struct wmEvent; | 42 struct wmEvent; |
43 struct wmKeyConfig; | 43 struct wmKeyConfig; |
44 struct bContext; | 44 struct bContext; |
45 struct SpaceType; | 45 struct SpaceType; |
46 struct Scene; | 46 struct Scene; |
47 struct bScreen; | 47 struct bScreen; |
48 struct ARegion; | 48 struct ARegion; |
49 struct uiBlock; | 49 struct uiBlock; |
50 struct rcti; | 50 struct rcti; |
51 | 51 |
52 /* regions */ | 52 /* regions */ |
53 void» ED_region_do_listen(struct ARegion *ar, struct wmNotifier *note); | 53 void ED_region_do_listen(struct ARegion *ar, struct wmNotifier *note); |
54 void» ED_region_do_draw(struct bContext *C, struct ARegion *ar); | 54 void ED_region_do_draw(struct bContext *C, struct ARegion *ar); |
55 void» ED_region_exit(struct bContext *C, struct ARegion *ar); | 55 void ED_region_exit(struct bContext *C, struct ARegion *ar); |
56 void» ED_region_pixelspace(struct ARegion *ar); | 56 void ED_region_pixelspace(struct ARegion *ar); |
57 void» ED_region_set(const struct bContext *C, struct ARegion *ar); | 57 void ED_region_set(const struct bContext *C, struct ARegion *ar); |
58 void» ED_region_init(struct bContext *C, struct ARegion *ar); | 58 void ED_region_init(struct bContext *C, struct ARegion *ar); |
59 void» ED_region_tag_redraw(struct ARegion *ar); | 59 void ED_region_tag_redraw(struct ARegion *ar); |
60 void» ED_region_tag_redraw_partial(struct ARegion *ar, struct rcti *rct); | 60 void ED_region_tag_redraw_partial(struct ARegion *ar, struct rcti *rct); |
61 void» ED_region_tag_redraw_overlay(struct ARegion *ar); | 61 void ED_region_tag_redraw_overlay(struct ARegion *ar); |
62 void» ED_region_panels_init(struct wmWindowManager *wm, struct ARegion *ar); | 62 void ED_region_panels_init(struct wmWindowManager *wm, struct ARegion *ar); |
63 void» ED_region_panels(const struct bContext *C, struct ARegion *ar, int verti
cal, const char *context, int contextnr); | 63 void ED_region_panels(const struct bContext *C, struct ARegion *ar, int verti
cal, const char *context, int contextnr); |
64 void» ED_region_header_init(struct ARegion *ar); | 64 void ED_region_header_init(struct ARegion *ar); |
65 void» ED_region_header(const struct bContext *C, struct ARegion *ar); | 65 void ED_region_header(const struct bContext *C, struct ARegion *ar); |
66 void» ED_region_toggle_hidden(struct bContext *C, struct ARegion *ar); | 66 void ED_region_toggle_hidden(struct bContext *C, struct ARegion *ar); |
67 void» region_scissor_winrct(struct ARegion *ar, struct rcti *winrct); | 67 void region_scissor_winrct(struct ARegion *ar, struct rcti *winrct); |
| 68 void ED_region_info_draw(struct ARegion *ar, const char *text, int block, flo
at alpha); |
| 69 void ED_region_grid_draw(struct ARegion *ar, float zoomx, float zoomy); |
68 | 70 |
69 /* spaces */ | 71 /* spaces */ |
70 void» ED_spacetypes_init(void); | 72 void ED_spacetypes_init(void); |
71 void» ED_spacetypes_keymap(struct wmKeyConfig *keyconf); | 73 void ED_spacetypes_keymap(struct wmKeyConfig *keyconf); |
72 int» » ED_area_header_switchbutton(const struct bContext *C, struct uiB
lock *block, int yco); | 74 int ED_area_header_switchbutton(const struct bContext *C, struct uiBlock *bl
ock, int yco); |
73 int» » ED_area_header_standardbuttons(const struct bContext *C, struct
uiBlock *block, int yco); | 75 int ED_area_header_standardbuttons(const struct bContext *C, struct uiBlock
*block, int yco); |
74 void» ED_area_overdraw(struct bContext *C); | 76 void ED_area_overdraw(struct bContext *C); |
75 void» ED_area_overdraw_flush(struct ScrArea *sa, struct ARegion *ar); | 77 void ED_area_overdraw_flush(struct ScrArea *sa, struct ARegion *ar); |
76 | 78 |
77 | 79 |
78 /* areas */ | 80 /* areas */ |
79 void» ED_area_initialize(struct wmWindowManager *wm, struct wmWindow *win, str
uct ScrArea *sa); | 81 void ED_area_initialize(struct wmWindowManager *wm, struct wmWindow *win, str
uct ScrArea *sa); |
80 void» ED_area_exit(struct bContext *C, struct ScrArea *sa); | 82 void ED_area_exit(struct bContext *C, struct ScrArea *sa); |
81 int» » ED_screen_area_active(const struct bContext *C); | 83 int ED_screen_area_active(const struct bContext *C); |
82 void» ED_area_do_listen(ScrArea *sa, struct wmNotifier *note); | 84 void ED_area_do_listen(ScrArea *sa, struct wmNotifier *note); |
83 void» ED_area_tag_redraw(ScrArea *sa); | 85 void ED_area_tag_redraw(ScrArea *sa); |
84 void» ED_area_tag_redraw_regiontype(ScrArea *sa, int type); | 86 void ED_area_tag_redraw_regiontype(ScrArea *sa, int type); |
85 void» ED_area_tag_refresh(ScrArea *sa); | 87 void ED_area_tag_refresh(ScrArea *sa); |
86 void» ED_area_do_refresh(struct bContext *C, ScrArea *sa); | 88 void ED_area_do_refresh(struct bContext *C, ScrArea *sa); |
87 void» ED_area_headerprint(ScrArea *sa, const char *str); | 89 void ED_area_headerprint(ScrArea *sa, const char *str); |
88 void» ED_area_newspace(struct bContext *C, ScrArea *sa, int type); | 90 void ED_area_newspace(struct bContext *C, ScrArea *sa, int type); |
89 void» ED_area_prevspace(struct bContext *C, ScrArea *sa); | 91 void ED_area_prevspace(struct bContext *C, ScrArea *sa); |
90 void» ED_area_swapspace(struct bContext *C, ScrArea *sa1, ScrArea *sa2); | 92 void ED_area_swapspace(struct bContext *C, ScrArea *sa1, ScrArea *sa2); |
91 int» » ED_area_headersize(void); | 93 int ED_area_headersize(void); |
92 | 94 |
93 /* screens */ | 95 /* screens */ |
94 void» ED_screens_initialize(struct wmWindowManager *wm); | 96 void ED_screens_initialize(struct wmWindowManager *wm); |
95 void» ED_screen_draw(struct wmWindow *win); | 97 void ED_screen_draw(struct wmWindow *win); |
96 void» ED_screen_refresh(struct wmWindowManager *wm, struct wmWindow *win); | 98 void ED_screen_refresh(struct wmWindowManager *wm, struct wmWindow *win); |
97 void» ED_screen_do_listen(struct bContext *C, struct wmNotifier *note); | 99 void ED_screen_do_listen(struct bContext *C, struct wmNotifier *note); |
98 bScreen *ED_screen_duplicate(struct wmWindow *win, struct bScreen *sc); | 100 bScreen *ED_screen_duplicate(struct wmWindow *win, struct bScreen *sc); |
99 bScreen *ED_screen_add(struct wmWindow *win, struct Scene *scene, const char *na
me); | 101 bScreen *ED_screen_add(struct wmWindow *win, struct Scene *scene, const char *na
me); |
100 void» ED_screen_set(struct bContext *C, struct bScreen *sc); | 102 void ED_screen_set(struct bContext *C, struct bScreen *sc); |
101 void» ED_screen_delete(struct bContext *C, struct bScreen *sc); | 103 void ED_screen_delete(struct bContext *C, struct bScreen *sc); |
102 void» ED_screen_set_scene(struct bContext *C, struct Scene *scene); | 104 void ED_screen_set_scene(struct bContext *C, struct bScreen *screen, struct S
cene *scene); |
103 void» ED_screen_delete_scene(struct bContext *C, struct Scene *scene); | 105 void ED_screen_delete_scene(struct bContext *C, struct Scene *scene); |
104 void» ED_screen_set_subwinactive(struct bContext *C, struct wmEvent *event); | 106 void ED_screen_set_subwinactive(struct bContext *C, struct wmEvent *event); |
105 void» ED_screen_exit(struct bContext *C, struct wmWindow *window, struct bScre
en *screen); | 107 void ED_screen_exit(struct bContext *C, struct wmWindow *window, struct bScre
en *screen); |
106 void» ED_screen_animation_timer(struct bContext *C, int redraws, int refresh,
int sync, int enable); | 108 void ED_screen_animation_timer(struct bContext *C, int redraws, int refresh,
int sync, int enable); |
107 void» ED_screen_animation_timer_update(struct bScreen *screen, int redraws, in
t refresh); | 109 void ED_screen_animation_timer_update(struct bScreen *screen, int redraws, in
t refresh); |
108 ScrArea *ED_screen_full_newspace(struct bContext *C, ScrArea *sa, int type); | 110 ScrArea *ED_screen_full_newspace(struct bContext *C, ScrArea *sa, int type); |
109 void» ED_screen_full_prevspace(struct bContext *C, ScrArea *sa); | 111 void ED_screen_full_prevspace(struct bContext *C, ScrArea *sa); |
110 void» ED_screen_full_restore(struct bContext *C, ScrArea *sa); | 112 void ED_screen_full_restore(struct bContext *C, ScrArea *sa); |
111 struct ScrArea *ED_screen_full_toggle(struct bContext *C, struct wmWindow *win,
struct ScrArea *sa); | 113 struct ScrArea *ED_screen_full_toggle(struct bContext *C, struct wmWindow *win,
struct ScrArea *sa); |
112 | 114 |
113 void» ED_screen_new_window(struct bContext *C, struct rcti *position, int type
); | 115 /* anim */ |
| 116 void ED_update_for_newframe(struct Main *bmain, struct Scene *scene, struct b
Screen *screen, int mute); |
114 | 117 |
115 /* anim */ | 118 void ED_refresh_viewport_fps(struct bContext *C); |
116 void» ED_update_for_newframe(struct Main *bmain, struct Scene *scene, struct b
Screen *screen, int mute); | |
117 | |
118 void » ED_refresh_viewport_fps(struct bContext *C); | |
119 int ED_screen_animation_play(struct bContext *C, int sync, int mode); | 119 int ED_screen_animation_play(struct bContext *C, int sync, int mode); |
120 | 120 |
121 /* screen keymaps */ | 121 /* screen keymaps */ |
122 void» ED_operatortypes_screen(void); | 122 void ED_operatortypes_screen(void); |
123 void» ED_keymap_screen(struct wmKeyConfig *keyconf); | 123 void ED_keymap_screen(struct wmKeyConfig *keyconf); |
124 | 124 |
125 /* operators; context poll callbacks */ | 125 /* operators; context poll callbacks */ |
126 int» » ED_operator_screenactive(struct bContext *C); | 126 int ED_operator_screenactive(struct bContext *C); |
127 int» » ED_operator_screen_mainwinactive(struct bContext *C); | 127 int ED_operator_screen_mainwinactive(struct bContext *C); |
128 int» » ED_operator_areaactive(struct bContext *C); | 128 int ED_operator_areaactive(struct bContext *C); |
129 int» » ED_operator_regionactive(struct bContext *C); | 129 int ED_operator_regionactive(struct bContext *C); |
130 | 130 |
131 int» » ED_operator_scene_editable(struct bContext *C); | 131 int ED_operator_scene_editable(struct bContext *C); |
132 int» » ED_operator_objectmode(struct bContext *C); | 132 int ED_operator_objectmode(struct bContext *C); |
133 | 133 |
134 int» » ED_operator_view3d_active(struct bContext *C); | 134 int ED_operator_view3d_active(struct bContext *C); |
135 int» » ED_operator_region_view3d_active(struct bContext *C); | 135 int ED_operator_region_view3d_active(struct bContext *C); |
136 int» » ED_operator_animview_active(struct bContext *C); | 136 int ED_operator_animview_active(struct bContext *C); |
137 int» » ED_operator_timeline_active(struct bContext *C); | 137 int ED_operator_timeline_active(struct bContext *C); |
138 int» » ED_operator_outliner_active(struct bContext *C); | 138 int ED_operator_outliner_active(struct bContext *C); |
139 int» » ED_operator_outliner_active_no_editobject(struct bContext *C); | 139 int ED_operator_outliner_active_no_editobject(struct bContext *C); |
140 int» » ED_operator_file_active(struct bContext *C); | 140 int ED_operator_file_active(struct bContext *C); |
141 int» » ED_operator_action_active(struct bContext *C); | 141 int ED_operator_action_active(struct bContext *C); |
142 int» » ED_operator_buttons_active(struct bContext *C); | 142 int ED_operator_buttons_active(struct bContext *C); |
143 int» » ED_operator_node_active(struct bContext *C); | 143 int ED_operator_node_active(struct bContext *C); |
144 int» » ED_operator_graphedit_active(struct bContext *C); | 144 int ED_operator_graphedit_active(struct bContext *C); |
145 int» » ED_operator_sequencer_active(struct bContext *C); | 145 int ED_operator_sequencer_active(struct bContext *C); |
146 int» » ED_operator_image_active(struct bContext *C); | 146 int ED_operator_image_active(struct bContext *C); |
147 int» » ED_operator_nla_active(struct bContext *C); | 147 int ED_operator_nla_active(struct bContext *C); |
148 int» » ED_operator_logic_active(struct bContext *C); | 148 int ED_operator_logic_active(struct bContext *C); |
149 int» » ED_operator_info_active(struct bContext *C); | 149 int ED_operator_info_active(struct bContext *C); |
150 int» » ED_operator_console_active(struct bContext *C); | 150 int ED_operator_console_active(struct bContext *C); |
151 | 151 |
152 | 152 |
153 int» » ED_operator_object_active(struct bContext *C); | 153 int ED_operator_object_active(struct bContext *C); |
154 int» » ED_operator_object_active_editable(struct bContext *C); | 154 int ED_operator_object_active_editable(struct bContext *C); |
155 int» » ED_operator_object_active_editable_mesh(struct bContext *C); | 155 int ED_operator_object_active_editable_mesh(struct bContext *C); |
156 int» » ED_operator_object_active_editable_font(struct bContext *C); | 156 int ED_operator_object_active_editable_font(struct bContext *C); |
157 int» » ED_operator_editmesh(struct bContext *C); | 157 int ED_operator_editmesh(struct bContext *C); |
158 int» » ED_operator_editmesh_view3d(struct bContext *C); | 158 int ED_operator_editmesh_view3d(struct bContext *C); |
159 int» » ED_operator_editmesh_region_view3d(struct bContext *C); | 159 int ED_operator_editmesh_region_view3d(struct bContext *C); |
160 int» » ED_operator_editarmature(struct bContext *C); | 160 int ED_operator_editarmature(struct bContext *C); |
161 int» » ED_operator_editcurve(struct bContext *C); | 161 int ED_operator_editcurve(struct bContext *C); |
162 int» » ED_operator_editsurf(struct bContext *C); | 162 int ED_operator_editcurve_3d(struct bContext *C); |
163 int» » ED_operator_editsurfcurve(struct bContext *C); | 163 int ED_operator_editsurf(struct bContext *C); |
164 int» » ED_operator_editsurfcurve_region_view3d(struct bContext *C); | 164 int ED_operator_editsurfcurve(struct bContext *C); |
165 int» » ED_operator_editfont(struct bContext *C); | 165 int ED_operator_editsurfcurve_region_view3d(struct bContext *C); |
| 166 int ED_operator_editfont(struct bContext *C); |
| 167 int ED_operator_editlattice(struct bContext *C); |
166 int ED_operator_editlattice(struct bContext *C); | 168 int ED_operator_editlattice(struct bContext *C); |
167 int ED_operator_editmball(struct bContext *C); | 169 int ED_operator_editmball(struct bContext *C); |
168 int ED_operator_uvedit(struct bContext *C); | 170 int ED_operator_uvedit(struct bContext *C); |
169 int ED_operator_uvedit_no_uv_sculpt(struct bContext *C); | |
170 int ED_operator_uvmap(struct bContext *C); | 171 int ED_operator_uvmap(struct bContext *C); |
171 int ED_operator_uvmap_mesh(struct bContext *C); | |
172 int ED_operator_uv_seam_tag_active(struct bContext *C); | |
173 int ED_operator_posemode(struct bContext *C); | 172 int ED_operator_posemode(struct bContext *C); |
174 | 173 |
175 | 174 |
176 /* default keymaps, bitflags */ | |
177 #define ED_KEYMAP_UI 1 | |
178 #define ED_KEYMAP_VIEW2D 2 | |
179 #define ED_KEYMAP_MARKERS 4 | |
180 #define ED_KEYMAP_ANIMATION 8 | |
181 #define ED_KEYMAP_FRAMES 16 | |
182 #define ED_KEYMAP_GPENCIL 32 | |
183 #define ED_KEYMAP_HEADER 64 | |
184 | |
185 #endif /* ED_SCREEN_H */ | |
186 | |
LEFT | RIGHT |