Blender  V2.93
ED_screen.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 #include "DNA_screen_types.h"
27 #include "DNA_space_types.h"
28 #include "DNA_view2d_types.h"
29 #include "DNA_view3d_types.h"
30 #include "DNA_workspace_types.h"
31 
32 #include "DNA_object_enums.h"
33 
34 #include "BLI_compiler_attrs.h"
35 
36 #ifdef __cplusplus
37 extern "C" {
38 #endif
39 
40 struct ARegion;
41 struct Depsgraph;
42 struct IDProperty;
43 struct Main;
44 struct MenuType;
45 struct Scene;
46 struct SpaceLink;
47 struct WorkSpace;
49 struct bContext;
50 struct bScreen;
51 struct rcti;
52 struct uiBlock;
53 struct uiLayout;
54 struct wmKeyConfig;
55 struct wmMsgSubscribeKey;
56 struct wmMsgSubscribeValue;
57 struct wmNotifier;
58 struct wmOperatorType;
62 struct wmWindow;
63 struct wmWindowManager;
64 
65 /* regions */
67 void ED_region_do_layout(struct bContext *C, struct ARegion *region);
68 void ED_region_do_draw(struct bContext *C, struct ARegion *region);
69 void ED_region_exit(struct bContext *C, struct ARegion *region);
70 void ED_region_remove(struct bContext *C, struct ScrArea *area, struct ARegion *region);
71 void ED_region_pixelspace(struct ARegion *region);
72 void ED_region_update_rect(struct ARegion *region);
73 void ED_region_floating_init(struct ARegion *region);
74 void ED_region_tag_redraw(struct ARegion *region);
75 void ED_region_tag_redraw_partial(struct ARegion *region, const struct rcti *rct, bool rebuild);
76 void ED_region_tag_redraw_cursor(struct ARegion *region);
77 void ED_region_tag_redraw_no_rebuild(struct ARegion *region);
78 void ED_region_tag_refresh_ui(struct ARegion *region);
80 
81 void ED_region_search_filter_update(const struct ScrArea *area, struct ARegion *region);
82 const char *ED_area_region_search_filter_get(const struct ScrArea *area,
83  const struct ARegion *region);
84 
85 void ED_region_panels_init(struct wmWindowManager *wm, struct ARegion *region);
86 void ED_region_panels_ex(const struct bContext *C, struct ARegion *region, const char *contexts[]);
87 void ED_region_panels(const struct bContext *C, struct ARegion *region);
89  struct ARegion *region,
90  struct ListBase *paneltypes,
91  const char *contexts[],
92  const char *category_override);
94  struct ARegion *region,
95  struct ListBase *paneltypes,
96  const char *contexts[],
97  const char *category_override);
98 
99 void ED_region_panels_layout(const struct bContext *C, struct ARegion *region);
100 void ED_region_panels_draw(const struct bContext *C, struct ARegion *region);
101 
102 void ED_region_header_init(struct ARegion *region);
103 void ED_region_header(const struct bContext *C, struct ARegion *region);
104 void ED_region_header_layout(const struct bContext *C, struct ARegion *region);
105 void ED_region_header_draw(const struct bContext *C, struct ARegion *region);
106 
107 void ED_region_cursor_set(struct wmWindow *win, struct ScrArea *area, struct ARegion *region);
108 void ED_region_toggle_hidden(struct bContext *C, struct ARegion *region);
110  struct ScrArea *area,
111  struct ARegion *region);
112 /* screen_ops.c */
114  struct ScrArea *area,
115  struct ARegion *region);
116 
117 void ED_region_info_draw(struct ARegion *region,
118  const char *text,
119  float fill_color[4],
120  const bool full_redraw);
122  const char *text_array[],
123  float fill_color[4],
124  const bool full_redraw);
125 void ED_region_image_metadata_panel_draw(struct ImBuf *ibuf, struct uiLayout *layout);
126 void ED_region_grid_draw(struct ARegion *region, float zoomx, float zoomy, float x0, float y0);
127 float ED_region_blend_alpha(struct ARegion *region);
128 void ED_region_visible_rect_calc(struct ARegion *region, struct rcti *rect);
129 const rcti *ED_region_visible_rect(ARegion *region);
130 bool ED_region_is_overlap(int spacetype, int regiontype);
131 
132 int ED_region_snap_size_test(const struct ARegion *region);
133 bool ED_region_snap_size_apply(struct ARegion *region, int snap_flag);
134 
135 /* message_bus callbacks */
137  struct wmMsgSubscribeKey *msg_key,
138  struct wmMsgSubscribeValue *msg_val);
140  struct wmMsgSubscribeKey *msg_key,
141  struct wmMsgSubscribeValue *msg_val);
142 
145 
146 /* message bus */
148 
149 /* spaces */
150 void ED_spacetypes_keymap(struct wmKeyConfig *keyconf);
151 int ED_area_header_switchbutton(const struct bContext *C, struct uiBlock *block, int yco);
152 
153 /* areas */
154 void ED_area_init(struct wmWindowManager *wm, struct wmWindow *win, struct ScrArea *area);
155 void ED_area_exit(struct bContext *C, struct ScrArea *area);
156 int ED_screen_area_active(const struct bContext *C);
157 void ED_screen_global_areas_refresh(struct wmWindow *win);
158 void ED_screen_global_areas_sync(struct wmWindow *win);
164 void ED_area_do_refresh(struct bContext *C, ScrArea *area);
165 struct AZone *ED_area_azones_update(ScrArea *area, const int mouse_xy[]);
166 void ED_area_status_text(ScrArea *area, const char *str);
167 void ED_area_newspace(struct bContext *C, ScrArea *area, int type, const bool skip_region_exit);
168 void ED_area_prevspace(struct bContext *C, ScrArea *area);
169 void ED_area_swapspace(struct bContext *C, ScrArea *sa1, ScrArea *sa2);
170 int ED_area_headersize(void);
171 int ED_area_footersize(void);
175 bool ED_area_is_global(const ScrArea *area);
176 int ED_region_global_size_y(void);
178  struct wmWindow *win,
179  struct ScrArea *area);
180 bool ED_area_has_shared_border(struct ScrArea *a, struct ScrArea *b);
181 
182 ScrArea *ED_screen_areas_iter_first(const struct wmWindow *win, const bScreen *screen);
183 ScrArea *ED_screen_areas_iter_next(const bScreen *screen, const ScrArea *area);
189 #define ED_screen_areas_iter(win, screen, area_name) \
190  for (ScrArea *area_name = ED_screen_areas_iter_first(win, screen); area_name != NULL; \
191  area_name = ED_screen_areas_iter_next(screen, area_name))
192 #define ED_screen_verts_iter(win, screen, vert_name) \
193  for (ScrVert *vert_name = (win)->global_areas.vertbase.first ? \
194  (win)->global_areas.vertbase.first : \
195  (screen)->vertbase.first; \
196  vert_name != NULL; \
197  vert_name = (vert_name == (win)->global_areas.vertbase.last) ? (screen)->vertbase.first : \
198  vert_name->next)
199 
200 /* screens */
201 void ED_screens_init(struct Main *bmain, struct wmWindowManager *wm);
202 void ED_screen_draw_edges(struct wmWindow *win);
203 void ED_screen_draw_join_shape(struct ScrArea *sa1, struct ScrArea *sa2);
204 void ED_screen_draw_split_preview(struct ScrArea *area, const int dir, const float fac);
205 void ED_screen_refresh(struct wmWindowManager *wm, struct wmWindow *win);
207  struct wmWindow *win,
208  struct bScreen *screen);
209 void ED_screen_do_listen(struct bContext *C, struct wmNotifier *note);
210 bool ED_screen_change(struct bContext *C, struct bScreen *screen);
211 void ED_screen_scene_change(struct bContext *C, struct wmWindow *win, struct Scene *scene);
212 void ED_screen_set_active_region(struct bContext *C, struct wmWindow *win, const int xy[2]);
213 void ED_screen_exit(struct bContext *C, struct wmWindow *window, struct bScreen *screen);
214 void ED_screen_animation_timer(struct bContext *C, int redraws, int sync, int enable);
215 void ED_screen_animation_timer_update(struct bScreen *screen, int redraws);
221 struct ScrArea *ED_screen_state_toggle(struct bContext *C,
222  struct wmWindow *win,
223  struct ScrArea *area,
224  const short state);
226  const char *title,
227  int x,
228  int y,
229  int sizex,
230  int sizey,
231  eSpace_Type space_type,
232  int display_type,
233  bool dialog);
234 void ED_screens_header_tools_menu_create(struct bContext *C, struct uiLayout *layout, void *arg);
235 void ED_screens_footer_tools_menu_create(struct bContext *C, struct uiLayout *layout, void *arg);
237  struct uiLayout *layout,
238  void *arg);
239 bool ED_screen_stereo3d_required(const struct bScreen *screen, const struct Scene *scene);
240 Scene *ED_screen_scene_find(const struct bScreen *screen, const struct wmWindowManager *wm);
242  const struct wmWindowManager *wm,
243  struct wmWindow **r_window);
245  const struct SpaceLink *sl,
246  const bool only_visible);
247 struct wmWindow *ED_screen_window_find(const struct bScreen *screen,
248  const struct wmWindowManager *wm);
249 void ED_screen_preview_render(const struct bScreen *screen,
250  int size_x,
251  int size_y,
252  unsigned int *r_rect) ATTR_NONNULL();
253 
254 /* workspaces */
255 struct WorkSpace *ED_workspace_add(struct Main *bmain, const char *name) ATTR_NONNULL();
256 bool ED_workspace_change(struct WorkSpace *workspace_new,
257  struct bContext *C,
258  struct wmWindowManager *wm,
259  struct wmWindow *win) ATTR_NONNULL();
260 struct WorkSpace *ED_workspace_duplicate(struct WorkSpace *workspace_old,
261  struct Main *bmain,
262  struct wmWindow *win);
263 bool ED_workspace_delete(struct WorkSpace *workspace,
264  struct Main *bmain,
265  struct bContext *C,
266  struct wmWindowManager *wm) ATTR_NONNULL();
269  struct Main *bmain,
270  struct WorkSpace *workspace,
271  struct WorkSpaceLayout *layout_new,
272  const struct WorkSpaceLayout *layout_fallback_base,
273  struct wmWindow *win) ATTR_NONNULL();
274 struct WorkSpaceLayout *ED_workspace_layout_add(struct Main *bmain,
275  struct WorkSpace *workspace,
276  struct wmWindow *win,
277  const char *name) ATTR_NONNULL();
279  struct WorkSpace *workspace,
280  const struct WorkSpaceLayout *layout_old,
281  struct wmWindow *win) ATTR_NONNULL();
282 bool ED_workspace_layout_delete(struct WorkSpace *workspace,
283  struct WorkSpaceLayout *layout_old,
284  struct bContext *C) ATTR_NONNULL();
285 bool ED_workspace_layout_cycle(struct WorkSpace *workspace,
286  const short direction,
287  struct bContext *C) ATTR_NONNULL();
288 
289 void ED_workspace_status_text(struct bContext *C, const char *str);
290 
291 /* anim */
292 void ED_update_for_newframe(struct Main *bmain, struct Depsgraph *depsgraph);
293 
294 void ED_refresh_viewport_fps(struct bContext *C);
295 int ED_screen_animation_play(struct bContext *C, int sync, int mode);
298 
299 /* screen keymaps */
300 void ED_operatortypes_screen(void);
301 void ED_keymap_screen(struct wmKeyConfig *keyconf);
302 /* workspace keymaps */
303 void ED_operatortypes_workspace(void);
304 
305 /* operators; context poll callbacks */
306 bool ED_operator_screenactive(struct bContext *C);
309 bool ED_operator_areaactive(struct bContext *C);
310 bool ED_operator_regionactive(struct bContext *C);
311 
312 bool ED_operator_scene(struct bContext *C);
314 bool ED_operator_objectmode(struct bContext *C);
315 
316 bool ED_operator_view3d_active(struct bContext *C);
321 bool ED_operator_file_active(struct bContext *C);
322 bool ED_operator_action_active(struct bContext *C);
324 bool ED_operator_node_active(struct bContext *C);
325 bool ED_operator_node_editable(struct bContext *C);
329 bool ED_operator_image_active(struct bContext *C);
330 bool ED_operator_nla_active(struct bContext *C);
331 bool ED_operator_info_active(struct bContext *C);
333 
334 bool ED_operator_object_active(struct bContext *C);
341 bool ED_operator_editable_mesh(struct bContext *C);
342 bool ED_operator_editmesh(struct bContext *C);
346 bool ED_operator_editarmature(struct bContext *C);
347 bool ED_operator_editcurve(struct bContext *C);
348 bool ED_operator_editcurve_3d(struct bContext *C);
349 bool ED_operator_editsurf(struct bContext *C);
350 bool ED_operator_editsurfcurve(struct bContext *C);
352 bool ED_operator_editfont(struct bContext *C);
353 bool ED_operator_editlattice(struct bContext *C);
354 bool ED_operator_editmball(struct bContext *C);
355 bool ED_operator_uvedit(struct bContext *C);
357 bool ED_operator_uvmap(struct bContext *C);
360 bool ED_operator_posemode(struct bContext *C);
362 bool ED_operator_mask(struct bContext *C);
363 bool ED_operator_camera(struct bContext *C);
364 
365 /* screen_user_menu.c */
366 
369 
371  const struct wmOperatorType *ot,
372  struct IDProperty *prop,
373  short opcontext);
375  const struct MenuType *mt);
377  const char *context_data_path,
378  const char *prop_id,
379  int prop_index);
380 
382  const char *ui_name,
383  const struct wmOperatorType *ot,
384  const struct IDProperty *prop,
385  short opcontext);
387  const char *ui_name,
388  const struct MenuType *mt);
390  const char *ui_name,
391  const char *context_data_path,
392  const char *prop_id,
393  int prop_index);
394 
395 void ED_screen_user_menu_item_remove(struct ListBase *lb, struct bUserMenuItem *umi);
397 
398 /* Cache display helpers */
399 
400 void ED_region_cache_draw_background(struct ARegion *region);
401 void ED_region_cache_draw_curfra_label(const int framenr, const float x, const float y);
403  const int num_segments,
404  const int *points,
405  const int sfra,
406  const int efra);
407 
408 /* area_utils.c */
410  const struct wmRegionMessageSubscribeParams *params);
411 int ED_region_generic_tools_region_snap_size(const struct ARegion *region, int size, int axis);
412 
413 /* area_query.c */
414 bool ED_region_overlap_isect_x(const ARegion *region, const int event_x);
415 bool ED_region_overlap_isect_y(const ARegion *region, const int event_y);
416 bool ED_region_overlap_isect_xy(const ARegion *region, const int event_xy[2]);
417 bool ED_region_overlap_isect_any_xy(const ScrArea *area, const int event_xy[2]);
419  const int event_x,
420  const int margin);
422  const int event_y,
423  const int margin);
425  const int event_xy[2],
426  const int margin);
427 
428 bool ED_region_panel_category_gutter_calc_rect(const ARegion *region, rcti *r_region_gutter);
429 bool ED_region_panel_category_gutter_isect_xy(const ARegion *region, const int event_xy[2]);
430 
431 bool ED_region_contains_xy(const struct ARegion *region, const int event_xy[2]);
432 
433 /* interface_region_hud.c */
434 struct ARegionType *ED_area_type_hud(int space_type);
435 void ED_area_type_hud_clear(struct wmWindowManager *wm, ScrArea *area_keep);
436 void ED_area_type_hud_ensure(struct bContext *C, struct ScrArea *area);
437 
438 /* default keymaps, bitflags (matches order of evaluation). */
439 enum {
440  ED_KEYMAP_UI = (1 << 1),
441  ED_KEYMAP_GIZMO = (1 << 2),
442  ED_KEYMAP_TOOL = (1 << 3),
443  ED_KEYMAP_VIEW2D = (1 << 4),
445  ED_KEYMAP_FRAMES = (1 << 7),
446  ED_KEYMAP_HEADER = (1 << 8),
447  ED_KEYMAP_FOOTER = (1 << 9),
448  ED_KEYMAP_GPENCIL = (1 << 10),
449  ED_KEYMAP_NAVBAR = (1 << 11),
450 };
451 
452 /* SCREEN_OT_space_context_cycle direction */
453 enum {
456 };
457 
458 #ifdef __cplusplus
459 }
460 #endif
#define ATTR_NONNULL(...)
unsigned int uint
Definition: BLI_sys_types.h:83
struct Depsgraph Depsgraph
Definition: DEG_depsgraph.h:51
eSpace_Type
void ED_region_info_draw(struct ARegion *region, const char *text, float fill_color[4], const bool full_redraw)
Definition: area.c:3510
bool ED_operator_editmesh_region_view3d(struct bContext *C)
Definition: screen_ops.c:418
void ED_region_exit(struct bContext *C, struct ARegion *region)
Definition: screen_edit.c:572
void ED_region_grid_draw(struct ARegion *region, float zoomx, float zoomy, float x0, float y0)
Definition: area.c:3538
ScrArea * ED_screen_state_maximized_create(struct bContext *C)
Definition: screen_edit.c:1308
void ED_area_tag_redraw(ScrArea *area)
Definition: area.c:745
bool ED_operator_editcurve_3d(struct bContext *C)
Definition: screen_ops.c:569
void ED_screen_do_listen(struct bContext *C, struct wmNotifier *note)
Definition: screen_edit.c:466
void ED_area_update_region_sizes(struct wmWindowManager *wm, struct wmWindow *win, struct ScrArea *area)
Definition: area.c:1865
void ED_region_do_layout(struct bContext *C, struct ARegion *region)
Definition: area.c:505
struct bUserMenu * ED_screen_user_menu_ensure(struct bContext *C)
bScreen * ED_screen_animation_no_scrub(const struct wmWindowManager *wm)
bool ED_area_has_shared_border(struct ScrArea *a, struct ScrArea *b)
Definition: area.c:1900
void ED_screen_global_areas_sync(struct wmWindow *win)
Definition: screen_edit.c:945
float ED_region_blend_alpha(struct ARegion *region)
Definition: screen_ops.c:5116
void ED_region_header(const struct bContext *C, struct ARegion *region)
bool ED_operator_posemode(struct bContext *C)
Definition: screen_ops.c:484
bool ED_operator_file_active(struct bContext *C)
Definition: screen_ops.c:277
ScrArea * ED_screen_area_find_with_spacedata(const bScreen *screen, const struct SpaceLink *sl, const bool only_visible)
void ED_region_visibility_change_update(struct bContext *C, struct ScrArea *area, struct ARegion *region)
Definition: area.c:2032
void ED_region_tag_redraw_partial(struct ARegion *region, const struct rcti *rct, bool rebuild)
void ED_region_tag_redraw_cursor(struct ARegion *region)
Definition: area.c:679
void ED_operatortypes_screen(void)
Definition: screen_ops.c:5478
bool ED_operator_editsurfcurve(struct bContext *C)
Definition: screen_ops.c:541
bool ED_operator_sequencer_active(struct bContext *C)
Definition: screen_ops.c:319
void ED_screen_full_prevspace(struct bContext *C, ScrArea *area)
Definition: screen_edit.c:1168
bool ED_region_panel_category_gutter_isect_xy(const ARegion *region, const int event_xy[2])
Definition: area_query.c:98
bool ED_operator_areaactive(struct bContext *C)
Definition: screen_ops.c:119
void ED_screen_exit(struct bContext *C, struct wmWindow *window, struct bScreen *screen)
Definition: screen_edit.c:625
void ED_workspace_scene_data_sync(struct WorkSpaceInstanceHook *hook, Scene *scene) ATTR_NONNULL()
bUserMenu ** ED_screen_user_menus_find(const struct bContext *C, uint *r_len)
void ED_region_image_metadata_panel_draw(struct ImBuf *ibuf, struct uiLayout *layout)
Definition: area.c:3531
bool ED_operator_node_active(struct bContext *C)
Definition: screen_ops.c:292
void ED_screen_user_menu_item_add_operator(struct ListBase *lb, const char *ui_name, const struct wmOperatorType *ot, const struct IDProperty *prop, short opcontext)
int ED_area_global_size_y(const ScrArea *area)
Definition: area.c:3377
void ED_region_do_msg_notify_tag_redraw(struct bContext *C, struct wmMsgSubscribeKey *msg_key, struct wmMsgSubscribeValue *msg_val)
bool ED_operator_posemode_local(struct bContext *C)
Definition: screen_ops.c:500
struct WorkSpaceLayout * ED_workspace_layout_add(struct Main *bmain, struct WorkSpace *workspace, struct wmWindow *win, const char *name) ATTR_NONNULL()
bool ED_operator_image_active(struct bContext *C)
Definition: screen_ops.c:329
void ED_screens_init(struct Main *bmain, struct wmWindowManager *wm)
Definition: screen_edit.c:532
bool ED_operator_scene(struct bContext *C)
Definition: screen_ops.c:183
void ED_region_visibility_change_update_animated(struct bContext *C, struct ScrArea *area, struct ARegion *region)
Definition: screen_ops.c:5170
void ED_region_cursor_set(struct wmWindow *win, struct ScrArea *area, struct ARegion *region)
Definition: area.c:2012
bool ED_operator_editcurve(struct bContext *C)
Definition: screen_ops.c:560
int ED_region_snap_size_test(const struct ARegion *region)
bool ED_operator_object_active_editable_mesh(struct bContext *C)
Definition: screen_ops.c:384
void ED_area_do_mgs_subscribe_for_tool_ui(const struct wmRegionMessageSubscribeParams *params)
bool ED_operator_screenactive(struct bContext *C)
Definition: screen_ops.c:133
bool ED_operator_object_active_local_editable(struct bContext *C)
Definition: screen_ops.c:378
void ED_operatortypes_workspace(void)
int ED_area_global_min_size_y(const ScrArea *area)
Definition: area.c:3382
void ED_screen_draw_split_preview(struct ScrArea *area, const int dir, const float fac)
Definition: screen_draw.c:476
bool ED_operator_posemode_context(struct bContext *C)
Definition: screen_ops.c:471
bool ED_region_overlap_isect_any_xy(const ScrArea *area, const int event_xy[2])
Definition: area_query.c:64
void ED_area_do_msg_notify_tag_refresh(struct bContext *C, struct wmMsgSubscribeKey *msg_key, struct wmMsgSubscribeValue *msg_val)
void ED_region_tag_redraw_editor_overlays(struct ARegion *region)
Definition: area.c:706
void ED_screen_user_menu_register(void)
void ED_screen_animation_timer_update(struct bScreen *screen, int redraws)
Definition: screen_edit.c:1602
int ED_region_generic_tools_region_snap_size(const struct ARegion *region, int size, int axis)
struct ScrArea * ED_screen_state_toggle(struct bContext *C, struct wmWindow *win, struct ScrArea *area, const short state)
Definition: screen_edit.c:1324
bool ED_operator_graphedit_active(struct bContext *C)
Definition: screen_ops.c:314
ScrArea * ED_screen_temp_space_open(struct bContext *C, const char *title, int x, int y, int sizex, int sizey, eSpace_Type space_type, int display_type, bool dialog)
Definition: screen_edit.c:1438
ScrArea * ED_screen_areas_iter_next(const bScreen *screen, const ScrArea *area)
Definition: area.c:3411
const char * ED_area_region_search_filter_get(const struct ScrArea *area, const struct ARegion *region)
bool ED_operator_buttons_active(struct bContext *C)
Definition: screen_ops.c:287
bool ED_operator_editmball(struct bContext *C)
Definition: screen_ops.c:607
void ED_area_status_text(ScrArea *area, const char *str)
Definition: area.c:815
Scene * ED_screen_scene_find_with_window(const struct bScreen *screen, const struct wmWindowManager *wm, struct wmWindow **r_window)
void ED_area_prevspace(struct bContext *C, ScrArea *area)
Definition: area.c:2515
void ED_region_remove(struct bContext *C, struct ScrArea *area, struct ARegion *region)
Definition: screen_edit.c:563
bool ED_operator_outliner_active_no_editobject(struct bContext *C)
Definition: screen_ops.c:264
bool ED_region_overlap_isect_x_with_margin(const ARegion *region, const int event_x, const int margin)
Definition: area_query.c:107
bool ED_screen_stereo3d_required(const struct bScreen *screen, const struct Scene *scene)
void ED_area_tag_redraw_no_rebuild(ScrArea *area)
Definition: area.c:754
struct bUserMenuItem_Prop * ED_screen_user_menu_item_find_prop(struct ListBase *lb, const char *context_data_path, const char *prop_id, int prop_index)
void ED_screens_footer_tools_menu_create(struct bContext *C, struct uiLayout *layout, void *arg)
void ED_region_tag_refresh_ui(struct ARegion *region)
Definition: area.c:695
int ED_area_global_max_size_y(const ScrArea *area)
Definition: area.c:3387
void ED_region_generic_tools_region_message_subscribe(const struct wmRegionMessageSubscribeParams *params)
bool ED_operator_animview_active(struct bContext *C)
Definition: screen_ops.c:246
void ED_region_toggle_hidden(struct bContext *C, struct ARegion *region)
Definition: area.c:2059
void ED_region_do_listen(struct wmRegionListenerParams *params)
Definition: area.c:144
bool ED_operator_editsurfcurve_region_view3d(struct bContext *C)
Definition: screen_ops.c:550
void ED_region_pixelspace(struct ARegion *region)
Definition: area.c:137
struct bUserMenuItem_Menu * ED_screen_user_menu_item_find_menu(struct ListBase *lb, const struct MenuType *mt)
bool ED_region_overlap_isect_y(const ARegion *region, const int event_y)
Definition: area_query.c:47
void ED_screen_animation_timer(struct bContext *C, int redraws, int sync, int enable)
Definition: screen_edit.c:1517
bool ED_operator_object_active_editable_ex(struct bContext *C, const Object *ob)
bool ED_operator_editmesh_auto_smooth(struct bContext *C)
Definition: screen_ops.c:428
bool ED_operator_screenactive_nobackground(struct bContext *C)
Definition: screen_ops.c:144
void ED_screens_header_tools_menu_create(struct bContext *C, struct uiLayout *layout, void *arg)
struct WorkSpaceLayout * ED_workspace_screen_change_ensure_unused_layout(struct Main *bmain, struct WorkSpace *workspace, struct WorkSpaceLayout *layout_new, const struct WorkSpaceLayout *layout_fallback_base, struct wmWindow *win) ATTR_NONNULL()
int ED_area_headersize(void)
Definition: area.c:3363
void ED_screen_user_menu_item_remove(struct ListBase *lb, struct bUserMenuItem *umi)
struct bUserMenuItem_Op * ED_screen_user_menu_item_find_operator(struct ListBase *lb, const struct wmOperatorType *ot, struct IDProperty *prop, short opcontext)
void ED_region_panels(const struct bContext *C, struct ARegion *region)
bool ED_operator_editmesh_view3d(struct bContext *C)
Definition: screen_ops.c:413
void ED_screens_navigation_bar_tools_menu_create(struct bContext *C, struct uiLayout *layout, void *arg)
bool ED_area_is_global(const ScrArea *area)
Definition: area.c:3393
int ED_screen_animation_play(struct bContext *C, int sync, int mode)
Definition: screen_ops.c:4641
void ED_region_tag_redraw_no_rebuild(struct ARegion *region)
Definition: area.c:686
void ED_area_newspace(struct bContext *C, ScrArea *area, int type, const bool skip_region_exit)
Definition: area.c:2375
void ED_refresh_viewport_fps(struct bContext *C)
Definition: screen_edit.c:1486
bool ED_operator_object_active_editable(struct bContext *C)
Definition: screen_ops.c:366
void ED_region_panels_ex(const struct bContext *C, struct ARegion *region, const char *contexts[])
bool ED_operator_regionactive(struct bContext *C)
Definition: screen_ops.c:105
void ED_region_panels_draw(const struct bContext *C, struct ARegion *region)
struct WorkSpaceLayout * ED_workspace_layout_duplicate(struct Main *bmain, struct WorkSpace *workspace, const struct WorkSpaceLayout *layout_old, struct wmWindow *win) ATTR_NONNULL()
bool ED_operator_console_active(struct bContext *C)
Definition: screen_ops.c:344
Scene * ED_screen_scene_find(const struct bScreen *screen, const struct wmWindowManager *wm)
void ED_region_visible_rect_calc(struct ARegion *region, struct rcti *rect)
bool ED_operator_outliner_active(struct bContext *C)
Definition: screen_ops.c:259
bool ED_operator_uvedit_space_image(struct bContext *C)
Definition: screen_ops.c:518
void ED_region_floating_init(struct ARegion *region)
Definition: area.c:2002
bool ED_operator_editable_mesh(struct bContext *C)
Definition: screen_ops.c:398
bool ED_workspace_change(struct WorkSpace *workspace_new, struct bContext *C, struct wmWindowManager *wm, struct wmWindow *win) ATTR_NONNULL()
Change the active workspace.
bool ED_region_property_search(const struct bContext *C, struct ARegion *region, struct ListBase *paneltypes, const char *contexts[], const char *category_override)
bool ED_operator_info_active(struct bContext *C)
Definition: screen_ops.c:339
void ED_keymap_screen(struct wmKeyConfig *keyconf)
Definition: screen_ops.c:5569
void ED_area_do_mgs_subscribe_for_tool_header(const struct wmRegionMessageSubscribeParams *params)
@ SPACE_CONTEXT_CYCLE_NEXT
Definition: ED_screen.h:455
@ SPACE_CONTEXT_CYCLE_PREV
Definition: ED_screen.h:454
bool ED_region_is_overlap(int spacetype, int regiontype)
Definition: area.c:1259
bool ED_region_snap_size_apply(struct ARegion *region, int snap_flag)
Definition: area.c:3794
bool ED_operator_editarmature(struct bContext *C)
Definition: screen_ops.c:437
void ED_spacetypes_keymap(struct wmKeyConfig *keyconf)
Definition: spacetypes.c:190
struct ARegionType * ED_area_type_hud(int space_type)
bool ED_operator_node_editable(struct bContext *C)
Definition: screen_ops.c:303
void ED_update_for_newframe(struct Main *bmain, struct Depsgraph *depsgraph)
Definition: screen_edit.c:1617
void ED_region_message_subscribe(struct wmRegionMessageSubscribeParams *params)
Definition: area.c:3760
ScrArea * ED_screen_full_newspace(struct bContext *C, ScrArea *area, int type)
Definition: screen_edit.c:1139
void ED_region_cache_draw_background(struct ARegion *region)
Definition: area.c:3693
void ED_area_exit(struct bContext *C, struct ScrArea *area)
Definition: screen_edit.c:603
bool ED_workspace_layout_delete(struct WorkSpace *workspace, struct WorkSpaceLayout *layout_old, struct bContext *C) ATTR_NONNULL()
void ED_area_tag_redraw_regiontype(ScrArea *area, int type)
Definition: area.c:763
bScreen * ED_screen_animation_playing(const struct wmWindowManager *wm)
void ED_region_header_layout(const struct bContext *C, struct ARegion *region)
struct WorkSpace * ED_workspace_duplicate(struct WorkSpace *workspace_old, struct Main *bmain, struct wmWindow *win)
void ED_screen_draw_edges(struct wmWindow *win)
Definition: screen_draw.c:363
void ED_region_do_draw(struct bContext *C, struct ARegion *region)
Definition: area.c:529
void ED_region_panels_init(struct wmWindowManager *wm, struct ARegion *region)
Definition: area.c:3090
bool ED_region_overlap_isect_xy(const ARegion *region, const int event_xy[2])
Definition: area_query.c:58
void ED_screen_set_active_region(struct bContext *C, struct wmWindow *win, const int xy[2])
Definition: screen_edit.c:719
bool ED_operator_uvmap(struct bContext *C)
Definition: screen_ops.c:525
void ED_region_cache_draw_curfra_label(const int framenr, const float x, const float y)
Definition: area.c:3707
void ED_region_tag_redraw(struct ARegion *region)
Definition: area.c:667
bool ED_operator_editlattice(struct bContext *C)
Definition: screen_ops.c:598
void ED_region_header_init(struct ARegion *region)
Definition: area.c:3358
bool ED_operator_uvedit(struct bContext *C)
Definition: screen_ops.c:511
void ED_area_tag_refresh(ScrArea *area)
Definition: area.c:774
void ED_screen_refresh(struct wmWindowManager *wm, struct wmWindow *win)
Definition: screen_edit.c:496
bool ED_operator_camera(struct bContext *C)
Definition: screen_ops.c:642
bool ED_operator_view3d_active(struct bContext *C)
Definition: screen_ops.c:230
bool ED_operator_editmesh(struct bContext *C)
Definition: screen_ops.c:404
bool ED_operator_nla_active(struct bContext *C)
Definition: screen_ops.c:334
void ED_region_panels_layout_ex(const struct bContext *C, struct ARegion *region, struct ListBase *paneltypes, const char *contexts[], const char *category_override)
int ED_area_footersize(void)
Definition: area.c:3369
struct WorkSpace * ED_workspace_add(struct Main *bmain, const char *name) ATTR_NONNULL()
bool ED_operator_object_active_local_editable_ex(struct bContext *C, const Object *ob)
Definition: screen_ops.c:373
void ED_region_search_filter_update(const struct ScrArea *area, struct ARegion *region)
void ED_region_cache_draw_cached_segments(struct ARegion *region, const int num_segments, const int *points, const int sfra, const int efra)
Definition: area.c:3732
void ED_screen_user_menu_item_add_prop(ListBase *lb, const char *ui_name, const char *context_data_path, const char *prop_id, int prop_index)
bool ED_operator_sequencer_active_editable(struct bContext *C)
Definition: screen_ops.c:324
void ED_area_do_listen(struct wmSpaceTypeListenerParams *params)
Definition: area.c:167
bool ED_region_panel_category_gutter_calc_rect(const ARegion *region, rcti *r_region_gutter)
Definition: area_query.c:76
void ED_screen_draw_join_shape(struct ScrArea *sa1, struct ScrArea *sa2)
Definition: screen_draw.c:435
bool ED_operator_objectmode(struct bContext *C)
Definition: screen_ops.c:201
void ED_area_type_hud_clear(struct wmWindowManager *wm, ScrArea *area_keep)
void ED_area_do_refresh(struct bContext *C, ScrArea *area)
Definition: area.c:176
void ED_screen_ensure_updated(struct wmWindowManager *wm, struct wmWindow *win, struct bScreen *screen)
Definition: screen_edit.c:552
bool ED_operator_mask(struct bContext *C)
Definition: screen_ops.c:616
bool ED_operator_screen_mainwinactive(struct bContext *C)
Definition: screen_ops.c:168
void ED_screen_preview_render(const struct bScreen *screen, int size_x, int size_y, unsigned int *r_rect) ATTR_NONNULL()
bool ED_workspace_delete(struct WorkSpace *workspace, struct Main *bmain, struct bContext *C, struct wmWindowManager *wm) ATTR_NONNULL()
struct wmWindow * ED_screen_window_find(const struct bScreen *screen, const struct wmWindowManager *wm)
bool ED_operator_editsurf(struct bContext *C)
Definition: screen_ops.c:580
bool ED_region_overlap_isect_x(const ARegion *region, const int event_x)
Definition: area_query.c:36
bool ED_operator_scene_editable(struct bContext *C)
Definition: screen_ops.c:192
ScrArea * ED_screen_areas_iter_first(const struct wmWindow *win, const bScreen *screen)
bool ED_workspace_layout_cycle(struct WorkSpace *workspace, const short direction, struct bContext *C) ATTR_NONNULL()
bool ED_operator_object_active(struct bContext *C)
Definition: screen_ops.c:355
void ED_area_init(struct wmWindowManager *wm, struct wmWindow *win, struct ScrArea *area)
Definition: area.c:1906
void ED_screen_scene_change(struct bContext *C, struct wmWindow *win, struct Scene *scene)
Definition: screen_edit.c:1099
void ED_area_swapspace(struct bContext *C, ScrArea *sa1, ScrArea *sa2)
Definition: area.c:2346
void ED_region_panels_layout(const struct bContext *C, struct ARegion *region)
@ ED_KEYMAP_NAVBAR
Definition: ED_screen.h:449
@ ED_KEYMAP_UI
Definition: ED_screen.h:440
@ ED_KEYMAP_ANIMATION
Definition: ED_screen.h:444
@ ED_KEYMAP_HEADER
Definition: ED_screen.h:446
@ ED_KEYMAP_TOOL
Definition: ED_screen.h:442
@ ED_KEYMAP_GPENCIL
Definition: ED_screen.h:448
@ ED_KEYMAP_GIZMO
Definition: ED_screen.h:441
@ ED_KEYMAP_VIEW2D
Definition: ED_screen.h:443
@ ED_KEYMAP_FRAMES
Definition: ED_screen.h:445
@ ED_KEYMAP_FOOTER
Definition: ED_screen.h:447
bool ED_operator_editfont(struct bContext *C)
Definition: screen_ops.c:589
void ED_screen_user_menu_item_add_menu(struct ListBase *lb, const char *ui_name, const struct MenuType *mt)
bool ED_region_contains_xy(const struct ARegion *region, const int event_xy[2])
void ED_screen_full_restore(struct bContext *C, ScrArea *area)
Definition: screen_edit.c:1198
void ED_region_update_rect(struct ARegion *region)
Definition: area.c:1996
void ED_area_type_hud_ensure(struct bContext *C, struct ScrArea *area)
bool ED_operator_posemode_exclusive(struct bContext *C)
check for pose mode (no mixed modes)
Definition: screen_ops.c:453
bool ED_operator_region_view3d_active(struct bContext *C)
Definition: screen_ops.c:235
void ED_region_header_draw(const struct bContext *C, struct ARegion *region)
int ED_region_global_size_y(void)
Definition: area.c:3432
bool ED_operator_object_active_editable_font(struct bContext *C)
Definition: screen_ops.c:391
bool ED_region_overlap_isect_y_with_margin(const ARegion *region, const int event_y, const int margin)
Definition: area_query.c:121
void ED_workspace_status_text(struct bContext *C, const char *str)
Definition: area.c:840
void ED_screen_global_areas_refresh(struct wmWindow *win)
Definition: screen_edit.c:962
void ED_screen_restore_temp_type(struct bContext *C, ScrArea *area)
Definition: screen_edit.c:1181
bool ED_region_overlap_isect_xy_with_margin(const ARegion *region, const int event_xy[2], const int margin)
Definition: area_query.c:135
bool ED_operator_action_active(struct bContext *C)
Definition: screen_ops.c:282
void ED_region_info_draw_multiline(ARegion *region, const char *text_array[], float fill_color[4], const bool full_redraw)
Definition: area.c:3437
struct AZone * ED_area_azones_update(ScrArea *area, const int mouse_xy[])
bool ED_screen_change(struct bContext *C, struct bScreen *screen)
Change the active screen.
Definition: screen_edit.c:1039
int ED_area_header_switchbutton(const struct bContext *C, struct uiBlock *block, int yco)
const rcti * ED_region_visible_rect(ARegion *region)
Definition: area.c:3682
int ED_screen_area_active(const struct bContext *C)
_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
_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 const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint y
#define C
Definition: RandGen.cpp:39
static DBVT_INLINE btScalar size(const btDbvtVolume &a)
Definition: btDbvt.cpp:52
Scene scene
const Depsgraph * depsgraph
#define str(s)
uiWidgetBaseParameters params[MAX_WIDGET_BASE_BATCH]
static ulong state[N]
static unsigned a[3]
Definition: RandGen.cpp:92
static void area(int d1, int d2, int e1, int e2, float weights[2])
Definition: BKE_main.h:116
Wrapper for bScreen.
struct IDProperty * prop
wmOperatorType * ot
Definition: wm_files.c:3156