Blender  V3.3
ED_screen.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 #include "DNA_screen_types.h"
11 #include "DNA_space_types.h"
12 #include "DNA_view2d_types.h"
13 #include "DNA_view3d_types.h"
14 #include "DNA_workspace_types.h"
15 
16 #include "DNA_object_enums.h"
17 
18 #include "WM_types.h"
19 
20 #include "BLI_compiler_attrs.h"
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
26 struct ARegion;
27 struct Depsgraph;
28 struct IDProperty;
29 struct Main;
30 struct MenuType;
31 struct Scene;
32 struct SpaceLink;
33 struct WorkSpace;
35 struct bContext;
36 struct bScreen;
37 struct rcti;
38 struct uiBlock;
39 struct uiLayout;
40 struct wmKeyConfig;
41 struct wmMsgSubscribeKey;
42 struct wmMsgSubscribeValue;
43 struct wmNotifier;
44 struct wmOperatorType;
48 struct wmWindow;
49 struct wmWindowManager;
50 
51 /* regions */
55 void ED_region_do_layout(struct bContext *C, struct ARegion *region);
57 void ED_region_do_draw(struct bContext *C, struct ARegion *region);
58 void ED_region_exit(struct bContext *C, struct ARegion *region);
63 void ED_region_remove(struct bContext *C, struct ScrArea *area, struct ARegion *region);
64 void ED_region_pixelspace(const struct ARegion *region);
68 void ED_region_update_rect(struct ARegion *region);
72 void ED_region_floating_init(struct ARegion *region);
73 void ED_region_tag_redraw(struct ARegion *region);
74 void ED_region_tag_redraw_partial(struct ARegion *region, const struct rcti *rct, bool rebuild);
75 void ED_region_tag_redraw_cursor(struct ARegion *region);
76 void ED_region_tag_redraw_no_rebuild(struct ARegion *region);
77 void ED_region_tag_refresh_ui(struct ARegion *region);
83 
87 void ED_region_search_filter_update(const struct ScrArea *area, struct ARegion *region);
91 const char *ED_area_region_search_filter_get(const struct ScrArea *area,
92  const struct ARegion *region);
93 
94 void ED_region_panels_init(struct wmWindowManager *wm, struct ARegion *region);
95 void ED_region_panels_ex(const struct bContext *C, struct ARegion *region, const char *contexts[]);
96 void ED_region_panels(const struct bContext *C, struct ARegion *region);
103  struct ARegion *region,
104  struct ListBase *paneltypes,
105  const char *contexts[],
106  const char *category_override);
112  struct ARegion *region,
113  struct ListBase *paneltypes,
114  const char *contexts[],
115  const char *category_override);
116 
117 void ED_region_panels_layout(const struct bContext *C, struct ARegion *region);
118 void ED_region_panels_draw(const struct bContext *C, struct ARegion *region);
119 
120 void ED_region_header_init(struct ARegion *region);
121 void ED_region_header(const struct bContext *C, struct ARegion *region);
122 void ED_region_header_layout(const struct bContext *C, struct ARegion *region);
123 void ED_region_header_draw(const struct bContext *C, struct ARegion *region);
124 
125 void ED_region_cursor_set(struct wmWindow *win, struct ScrArea *area, struct ARegion *region);
129 void ED_region_toggle_hidden(struct bContext *C, struct ARegion *region);
134  struct ScrArea *area,
135  struct ARegion *region);
136 /* screen_ops.c */
137 
142  struct ScrArea *area,
143  struct ARegion *region);
144 
145 void ED_region_info_draw(struct ARegion *region,
146  const char *text,
147  float fill_color[4],
148  bool full_redraw);
150  const char *text_array[],
151  float fill_color[4],
152  bool full_redraw);
153 void ED_region_image_metadata_panel_draw(struct ImBuf *ibuf, struct uiLayout *layout);
154 void ED_region_grid_draw(struct ARegion *region, float zoomx, float zoomy, float x0, float y0);
155 float ED_region_blend_alpha(struct ARegion *region);
156 void ED_region_visible_rect_calc(struct ARegion *region, struct rcti *rect);
157 const rcti *ED_region_visible_rect(ARegion *region);
161 bool ED_region_is_overlap(int spacetype, int regiontype);
162 
163 int ED_region_snap_size_test(const struct ARegion *region);
164 bool ED_region_snap_size_apply(struct ARegion *region, int snap_flag);
165 
166 /* message_bus callbacks */
168  struct wmMsgSubscribeKey *msg_key,
169  struct wmMsgSubscribeValue *msg_val);
171  struct wmMsgSubscribeKey *msg_key,
172  struct wmMsgSubscribeValue *msg_val);
173 
179 
180 /* message bus */
181 
186 
187 /* spaces */
188 
193 void ED_spacetypes_keymap(struct wmKeyConfig *keyconf);
197 int ED_area_header_switchbutton(const struct bContext *C, struct uiBlock *block, int yco);
198 
199 /* areas */
203 void ED_area_init(struct wmWindowManager *wm, struct wmWindow *win, struct ScrArea *area);
204 void ED_area_exit(struct bContext *C, struct ScrArea *area);
205 int ED_screen_area_active(const struct bContext *C);
206 void ED_screen_global_areas_refresh(struct wmWindow *win);
207 void ED_screen_global_areas_sync(struct wmWindow *win);
217 void ED_area_do_refresh(struct bContext *C, ScrArea *area);
218 struct AZone *ED_area_azones_update(ScrArea *area, const int mouse_xy[2]);
222 void ED_area_status_text(ScrArea *area, const char *str);
226 void ED_area_newspace(struct bContext *C, ScrArea *area, int type, bool skip_region_exit);
227 void ED_area_prevspace(struct bContext *C, ScrArea *area);
228 void ED_area_swapspace(struct bContext *C, ScrArea *sa1, ScrArea *sa2);
229 int ED_area_headersize(void);
230 int ED_area_footersize(void);
237 bool ED_area_is_global(const ScrArea *area);
244 int ED_region_global_size_y(void);
246  struct wmWindow *win,
247  struct ScrArea *area);
248 bool ED_area_has_shared_border(struct ScrArea *a, struct ScrArea *b);
249 ScrArea *ED_area_offscreen_create(struct wmWindow *win, eSpace_Type space_type);
251  struct wmWindow *win,
252  struct ScrArea *area);
253 
258 ScrArea *ED_area_find_under_cursor(const struct bContext *C, int spacetype, const int xy[2]);
259 
260 ScrArea *ED_screen_areas_iter_first(const struct wmWindow *win, const bScreen *screen);
261 ScrArea *ED_screen_areas_iter_next(const bScreen *screen, const ScrArea *area);
267 #define ED_screen_areas_iter(win, screen, area_name) \
268  for (ScrArea *area_name = ED_screen_areas_iter_first(win, screen); area_name != NULL; \
269  area_name = ED_screen_areas_iter_next(screen, area_name))
270 #define ED_screen_verts_iter(win, screen, vert_name) \
271  for (ScrVert *vert_name = (win)->global_areas.vertbase.first ? \
272  (win)->global_areas.vertbase.first : \
273  (screen)->vertbase.first; \
274  vert_name != NULL; \
275  vert_name = (vert_name == (win)->global_areas.vertbase.last) ? (screen)->vertbase.first : \
276  vert_name->next)
277 
278 /* screens */
279 
283 void ED_screens_init(struct Main *bmain, struct wmWindowManager *wm);
287 void ED_screen_draw_edges(struct wmWindow *win);
288 
293 void ED_screen_refresh(struct wmWindowManager *wm, struct wmWindow *win);
295  struct wmWindow *win,
296  struct bScreen *screen);
297 void ED_screen_do_listen(struct bContext *C, struct wmNotifier *note);
306 bool ED_screen_change(struct bContext *C, struct bScreen *screen);
307 void ED_screen_scene_change(struct bContext *C,
308  struct wmWindow *win,
309  struct Scene *scene,
310  bool refresh_toolsystem);
315 void ED_screen_set_active_region(struct bContext *C, struct wmWindow *win, const int xy[2]);
316 void ED_screen_exit(struct bContext *C, struct wmWindow *window, struct bScreen *screen);
321 void ED_screen_animation_timer(struct bContext *C, int redraws, int sync, int enable);
322 void ED_screen_animation_timer_update(struct bScreen *screen, int redraws);
351 struct ScrArea *ED_screen_state_toggle(struct bContext *C,
352  struct wmWindow *win,
353  struct ScrArea *area,
354  short state);
364  const char *title,
365  int x,
366  int y,
367  int sizex,
368  int sizey,
369  eSpace_Type space_type,
370  int display_type,
371  bool dialog);
372 void ED_screens_header_tools_menu_create(struct bContext *C, struct uiLayout *layout, void *arg);
373 void ED_screens_footer_tools_menu_create(struct bContext *C, struct uiLayout *layout, void *arg);
375  struct uiLayout *layout,
376  void *arg);
380 bool ED_screen_stereo3d_required(const struct bScreen *screen, const struct Scene *scene);
381 Scene *ED_screen_scene_find(const struct bScreen *screen, const struct wmWindowManager *wm);
387  const struct wmWindowManager *wm,
388  struct wmWindow **r_window);
390  const struct SpaceLink *sl,
391  bool only_visible);
392 struct wmWindow *ED_screen_window_find(const struct bScreen *screen,
393  const struct wmWindowManager *wm);
397 void ED_screen_preview_render(const struct bScreen *screen,
398  int size_x,
399  int size_y,
400  unsigned int *r_rect) ATTR_NONNULL();
401 
402 /* workspaces */
403 
404 struct WorkSpace *ED_workspace_add(struct Main *bmain, const char *name) ATTR_NONNULL();
414 bool ED_workspace_change(struct WorkSpace *workspace_new,
415  struct bContext *C,
416  struct wmWindowManager *wm,
417  struct wmWindow *win) ATTR_NONNULL();
422 struct WorkSpace *ED_workspace_duplicate(struct WorkSpace *workspace_old,
423  struct Main *bmain,
424  struct wmWindow *win);
428 bool ED_workspace_delete(struct WorkSpace *workspace,
429  struct Main *bmain,
430  struct bContext *C,
431  struct wmWindowManager *wm) ATTR_NONNULL();
444  struct Main *bmain,
445  struct WorkSpace *workspace,
446  struct WorkSpaceLayout *layout_new,
447  const struct WorkSpaceLayout *layout_fallback_base,
448  struct wmWindow *win) ATTR_NONNULL();
452 struct WorkSpaceLayout *ED_workspace_layout_add(struct Main *bmain,
453  struct WorkSpace *workspace,
454  struct wmWindow *win,
455  const char *name) ATTR_NONNULL();
457  struct WorkSpace *workspace,
458  const struct WorkSpaceLayout *layout_old,
459  struct wmWindow *win) ATTR_NONNULL();
464 bool ED_workspace_layout_delete(struct WorkSpace *workspace,
465  struct WorkSpaceLayout *layout_old,
466  struct bContext *C) ATTR_NONNULL();
467 bool ED_workspace_layout_cycle(struct WorkSpace *workspace, short direction, struct bContext *C)
468  ATTR_NONNULL();
469 
470 void ED_workspace_status_text(struct bContext *C, const char *str);
471 
472 /* anim */
476 void ED_update_for_newframe(struct Main *bmain, struct Depsgraph *depsgraph);
477 
481 void ED_refresh_viewport_fps(struct bContext *C);
485 int ED_screen_animation_play(struct bContext *C, int sync, int mode);
491 
492 /* screen keymaps */
493 /* called in spacetypes.c */
494 void ED_operatortypes_screen(void);
495 /* called in spacetypes.c */
496 void ED_keymap_screen(struct wmKeyConfig *keyconf);
500 void ED_operatortypes_workspace(void);
501 
502 /* operators; context poll callbacks */
503 
504 bool ED_operator_screenactive(struct bContext *C);
510 bool ED_operator_areaactive(struct bContext *C);
511 bool ED_operator_regionactive(struct bContext *C);
512 
513 bool ED_operator_scene(struct bContext *C);
515 bool ED_operator_objectmode(struct bContext *C);
521 
522 bool ED_operator_view3d_active(struct bContext *C);
535 bool ED_operator_file_active(struct bContext *C);
544 bool ED_operator_action_active(struct bContext *C);
546 bool ED_operator_node_active(struct bContext *C);
547 bool ED_operator_node_editable(struct bContext *C);
551 bool ED_operator_image_active(struct bContext *C);
552 bool ED_operator_nla_active(struct bContext *C);
553 bool ED_operator_info_active(struct bContext *C);
555 
556 bool ED_operator_object_active(struct bContext *C);
557 bool ED_operator_object_active_editable_ex(struct bContext *C, const Object *ob);
566 bool ED_operator_editable_mesh(struct bContext *C);
567 bool ED_operator_editmesh(struct bContext *C);
571 bool ED_operator_editarmature(struct bContext *C);
572 bool ED_operator_editcurve(struct bContext *C);
573 bool ED_operator_editcurve_3d(struct bContext *C);
574 bool ED_operator_editsurf(struct bContext *C);
575 bool ED_operator_editsurfcurve(struct bContext *C);
577 bool ED_operator_editfont(struct bContext *C);
578 bool ED_operator_editlattice(struct bContext *C);
579 bool ED_operator_editmball(struct bContext *C);
583 bool ED_operator_uvedit(struct bContext *C);
585 bool ED_operator_uvmap(struct bContext *C);
596 bool ED_operator_posemode(struct bContext *C);
598 bool ED_operator_camera_poll(struct bContext *C);
599 
600 /* screen_user_menu.c */
601 
604 
606  const struct wmOperatorType *ot,
607  struct IDProperty *prop,
610  const struct MenuType *mt);
612  const char *context_data_path,
613  const char *prop_id,
614  int prop_index);
615 
617  const char *ui_name,
618  const struct wmOperatorType *ot,
619  const struct IDProperty *prop,
620  wmOperatorCallContext opcontext);
622  const char *ui_name,
623  const struct MenuType *mt);
625  const char *ui_name,
626  const char *context_data_path,
627  const char *prop_id,
628  int prop_index);
629 
630 void ED_screen_user_menu_item_remove(struct ListBase *lb, struct bUserMenuItem *umi);
632 
633 /* Cache display helpers */
634 
635 void ED_region_cache_draw_background(struct ARegion *region);
636 void ED_region_cache_draw_curfra_label(int framenr, float x, float y);
638  struct ARegion *region, int num_segments, const int *points, int sfra, int efra);
639 
640 /* area_utils.c */
641 
646  const struct wmRegionMessageSubscribeParams *params);
650 int ED_region_generic_tools_region_snap_size(const struct ARegion *region, int size, int axis);
651 
652 /* area_query.c */
653 
654 bool ED_region_overlap_isect_x(const ARegion *region, int event_x);
655 bool ED_region_overlap_isect_y(const ARegion *region, int event_y);
656 bool ED_region_overlap_isect_xy(const ARegion *region, const int event_xy[2]);
657 bool ED_region_overlap_isect_any_xy(const ScrArea *area, const int event_xy[2]);
658 bool ED_region_overlap_isect_x_with_margin(const ARegion *region, int event_x, int margin);
659 bool ED_region_overlap_isect_y_with_margin(const ARegion *region, int event_y, int margin);
661  const int event_xy[2],
662  int margin);
663 
664 bool ED_region_panel_category_gutter_calc_rect(const ARegion *region, rcti *r_region_gutter);
665 bool ED_region_panel_category_gutter_isect_xy(const ARegion *region, const int event_xy[2]);
666 
671 bool ED_region_contains_xy(const struct ARegion *region, const int event_xy[2]);
679 ARegion *ED_area_find_region_xy_visual(const ScrArea *area, int regiontype, const int event_xy[2]);
680 
681 /* interface_region_hud.c */
682 
683 struct ARegionType *ED_area_type_hud(int space_type);
684 void ED_area_type_hud_clear(struct wmWindowManager *wm, ScrArea *area_keep);
685 void ED_area_type_hud_ensure(struct bContext *C, struct ScrArea *area);
686 
690 enum {
691  ED_KEYMAP_UI = (1 << 1),
692  ED_KEYMAP_GIZMO = (1 << 2),
693  ED_KEYMAP_TOOL = (1 << 3),
694  ED_KEYMAP_VIEW2D = (1 << 4),
696  ED_KEYMAP_FRAMES = (1 << 7),
697  ED_KEYMAP_HEADER = (1 << 8),
698  ED_KEYMAP_FOOTER = (1 << 9),
699  ED_KEYMAP_GPENCIL = (1 << 10),
700  ED_KEYMAP_NAVBAR = (1 << 11),
701 };
702 
704 typedef enum eScreenCycle {
708 
709 #ifdef __cplusplus
710 }
711 #endif
#define ATTR_NONNULL(...)
unsigned int uint
Definition: BLI_sys_types.h:67
struct Depsgraph Depsgraph
Definition: DEG_depsgraph.h:35
eSpace_Type
bool ED_operator_editmesh_region_view3d(struct bContext *C)
Definition: screen_ops.c:447
void ED_region_exit(struct bContext *C, struct ARegion *region)
Definition: screen_edit.c:686
void ED_region_info_draw(struct ARegion *region, const char *text, float fill_color[4], bool full_redraw)
Definition: area.c:3591
ARegion * ED_area_find_region_xy_visual(const ScrArea *area, int regiontype, const int event_xy[2])
Definition: area_query.c:178
bool ED_operator_spreadsheet_active(struct bContext *C)
Definition: screen_ops.c:292
void ED_region_grid_draw(struct ARegion *region, float zoomx, float zoomy, float x0, float y0)
Definition: area.c:3619
void ED_area_tag_redraw(ScrArea *area)
Definition: area.c:729
bool ED_operator_editcurve_3d(struct bContext *C)
Definition: screen_ops.c:615
void ED_screen_do_listen(struct bContext *C, struct wmNotifier *note)
Definition: screen_edit.c:583
@ ED_KEYMAP_NAVBAR
Definition: ED_screen.h:700
@ ED_KEYMAP_UI
Definition: ED_screen.h:691
@ ED_KEYMAP_ANIMATION
Definition: ED_screen.h:695
@ ED_KEYMAP_HEADER
Definition: ED_screen.h:697
@ ED_KEYMAP_TOOL
Definition: ED_screen.h:693
@ ED_KEYMAP_GPENCIL
Definition: ED_screen.h:699
@ ED_KEYMAP_GIZMO
Definition: ED_screen.h:692
@ ED_KEYMAP_VIEW2D
Definition: ED_screen.h:694
@ ED_KEYMAP_FRAMES
Definition: ED_screen.h:696
@ ED_KEYMAP_FOOTER
Definition: ED_screen.h:698
bool ED_region_overlap_isect_y(const ARegion *region, int event_y)
Definition: area_query.c:33
void ED_area_update_region_sizes(struct wmWindowManager *wm, struct wmWindow *win, struct ScrArea *area)
Definition: area.c:1862
void ED_region_do_layout(struct bContext *C, struct ARegion *region)
Definition: area.c:494
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:1897
void ED_screen_global_areas_sync(struct wmWindow *win)
Definition: screen_edit.c:1053
float ED_region_blend_alpha(struct ARegion *region)
Definition: screen_ops.c:5311
void ED_region_header(const struct bContext *C, struct ARegion *region)
void ED_region_pixelspace(const struct ARegion *region)
bool ED_operator_posemode(struct bContext *C)
Definition: screen_ops.c:530
bool ED_operator_file_active(struct bContext *C)
Definition: screen_ops.c:271
void ED_region_visibility_change_update(struct bContext *C, struct ScrArea *area, struct ARegion *region)
Definition: area.c:2086
bool ED_operator_asset_browsing_active(struct bContext *C)
Definition: screen_ops.c:284
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:667
bool ED_region_overlap_isect_x(const ARegion *region, int event_x)
Definition: area_query.c:22
void ED_operatortypes_screen(void)
Definition: screen_ops.c:5669
bool ED_operator_editsurfcurve(struct bContext *C)
Definition: screen_ops.c:587
bool ED_operator_sequencer_active(struct bContext *C)
Definition: screen_ops.c:334
void ED_screen_full_prevspace(struct bContext *C, ScrArea *area)
Definition: screen_edit.c:1275
bool ED_region_panel_category_gutter_isect_xy(const ARegion *region, const int event_xy[2])
Definition: area_query.c:84
bool ED_region_overlap_isect_xy_with_margin(const ARegion *region, const int event_xy[2], int margin)
Definition: area_query.c:121
bool ED_operator_areaactive(struct bContext *C)
Definition: screen_ops.c:105
void ED_screen_exit(struct bContext *C, struct wmWindow *window, struct bScreen *screen)
Definition: screen_edit.c:736
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:3612
bool ED_operator_node_active(struct bContext *C)
Definition: screen_ops.c:307
int ED_area_global_size_y(const ScrArea *area)
Definition: area.c:3433
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:546
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:344
void ED_screens_init(struct Main *bmain, struct wmWindowManager *wm)
Definition: screen_edit.c:650
bool ED_operator_scene(struct bContext *C)
Definition: screen_ops.c:168
void ED_region_visibility_change_update_animated(struct bContext *C, struct ScrArea *area, struct ARegion *region)
Definition: screen_ops.c:5362
void ED_region_cursor_set(struct wmWindow *win, struct ScrArea *area, struct ARegion *region)
Definition: area.c:2067
bool ED_operator_editcurve(struct bContext *C)
Definition: screen_ops.c:606
int ED_region_snap_size_test(const struct ARegion *region)
bool ED_operator_object_active_editable_mesh(struct bContext *C)
Definition: screen_ops.c:413
void ED_area_do_mgs_subscribe_for_tool_ui(const struct wmRegionMessageSubscribeParams *params)
bool ED_operator_screenactive(struct bContext *C)
Definition: screen_ops.c:119
bool ED_operator_object_active_local_editable(struct bContext *C)
Definition: screen_ops.c:407
void ED_operatortypes_workspace(void)
int ED_area_global_min_size_y(const ScrArea *area)
Definition: area.c:3438
bool ED_operator_posemode_context(struct bContext *C)
Definition: screen_ops.c:517
bool ED_region_overlap_isect_any_xy(const ScrArea *area, const int event_xy[2])
Definition: area_query.c:50
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:690
void ED_screen_user_menu_register(void)
void ED_screen_animation_timer_update(struct bScreen *screen, int redraws)
Definition: screen_edit.c:1680
int ED_region_generic_tools_region_snap_size(const struct ARegion *region, int size, int axis)
bool ED_operator_graphedit_active(struct bContext *C)
Definition: screen_ops.c:329
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:1522
ScrArea * ED_screen_areas_iter_next(const bScreen *screen, const ScrArea *area)
Definition: area.c:3498
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:302
bool ED_operator_editmball(struct bContext *C)
Definition: screen_ops.c:653
void ED_area_status_text(ScrArea *area, const char *str)
Definition: area.c:792
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:2567
void ED_region_remove(struct bContext *C, struct ScrArea *area, struct ARegion *region)
Definition: screen_edit.c:677
bool ED_operator_outliner_active_no_editobject(struct bContext *C)
Definition: screen_ops.c:258
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:738
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:683
int ED_area_global_max_size_y(const ScrArea *area)
Definition: area.c:3443
void ED_region_generic_tools_region_message_subscribe(const struct wmRegionMessageSubscribeParams *params)
ScrArea * ED_area_offscreen_create(struct wmWindow *win, eSpace_Type space_type)
Definition: area.c:1995
bool ED_operator_animview_active(struct bContext *C)
Definition: screen_ops.c:240
void ED_region_toggle_hidden(struct bContext *C, struct ARegion *region)
Definition: area.c:2117
void ED_region_do_listen(struct wmRegionListenerParams *params)
Definition: area.c:127
bool ED_operator_editsurfcurve_region_view3d(struct bContext *C)
Definition: screen_ops.c:596
void ED_screen_scene_change(struct bContext *C, struct wmWindow *win, struct Scene *scene, bool refresh_toolsystem)
Definition: screen_edit.c:1195
struct bUserMenuItem_Menu * ED_screen_user_menu_item_find_menu(struct ListBase *lb, const struct MenuType *mt)
void ED_screen_animation_timer(struct bContext *C, int redraws, int sync, int enable)
Definition: screen_edit.c:1595
bool ED_operator_object_active_editable_ex(struct bContext *C, const Object *ob)
Definition: screen_ops.c:376
bool ED_operator_editmesh_auto_smooth(struct bContext *C)
Definition: screen_ops.c:457
bool ED_operator_screenactive_nobackground(struct bContext *C)
Definition: screen_ops.c:130
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:3422
void ED_screen_user_menu_item_remove(struct ListBase *lb, struct bUserMenuItem *umi)
void ED_region_panels(const struct bContext *C, struct ARegion *region)
bool ED_operator_editmesh_view3d(struct bContext *C)
Definition: screen_ops.c:442
ScrArea * ED_area_find_under_cursor(const struct bContext *C, int spacetype, const int xy[2])
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:3449
int ED_screen_animation_play(struct bContext *C, int sync, int mode)
Definition: screen_ops.c:4811
void ED_region_tag_redraw_no_rebuild(struct ARegion *region)
Definition: area.c:674
bool ED_operator_file_browsing_active(struct bContext *C)
Definition: screen_ops.c:276
bool ED_operator_object_active_local_editable_posemode_exclusive(struct bContext *C)
Definition: screen_ops.c:501
void ED_refresh_viewport_fps(struct bContext *C)
Definition: screen_edit.c:1570
bool ED_operator_object_active_editable(struct bContext *C)
Definition: screen_ops.c:396
void ED_region_panels_ex(const struct bContext *C, struct ARegion *region, const char *contexts[])
bScreen * ED_screen_state_maximized_create(struct bContext *C)
Definition: screen_edit.c:1410
bool ED_operator_regionactive(struct bContext *C)
Definition: screen_ops.c:91
void ED_region_cache_draw_curfra_label(int framenr, float x, float y)
Definition: area.c:3788
void ED_region_panels_draw(const struct bContext *C, struct ARegion *region)
void ED_screen_user_menu_item_add_operator(struct ListBase *lb, const char *ui_name, const struct wmOperatorType *ot, const struct IDProperty *prop, wmOperatorCallContext opcontext)
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:359
bool ED_operator_camera_poll(struct bContext *C)
Definition: screen_ops.c:662
struct bUserMenuItem_Op * ED_screen_user_menu_item_find_operator(struct ListBase *lb, const struct wmOperatorType *ot, struct IDProperty *prop, wmOperatorCallContext opcontext)
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:253
bool ED_operator_uvedit_space_image(struct bContext *C)
Definition: screen_ops.c:564
void ED_region_floating_init(struct ARegion *region)
Definition: area.c:2057
bool ED_operator_editable_mesh(struct bContext *C)
Definition: screen_ops.c:427
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:354
void ED_keymap_screen(struct wmKeyConfig *keyconf)
Definition: screen_ops.c:5758
void ED_region_info_draw_multiline(ARegion *region, const char *text_array[], float fill_color[4], bool full_redraw)
Definition: area.c:3518
void ED_area_do_mgs_subscribe_for_tool_header(const struct wmRegionMessageSubscribeParams *params)
bool ED_region_is_overlap(int spacetype, int regiontype)
Definition: area.c:1248
bool ED_region_snap_size_apply(struct ARegion *region, int snap_flag)
Definition: area.c:3872
bool ED_operator_editarmature(struct bContext *C)
Definition: screen_ops.c:466
void ED_spacetypes_keymap(struct wmKeyConfig *keyconf)
Definition: spacetypes.c:178
struct ARegionType * ED_area_type_hud(int space_type)
bool ED_operator_node_editable(struct bContext *C)
Definition: screen_ops.c:318
void ED_update_for_newframe(struct Main *bmain, struct Depsgraph *depsgraph)
Definition: screen_edit.c:1694
void ED_region_message_subscribe(struct wmRegionMessageSubscribeParams *params)
Definition: area.c:3838
ScrArea * ED_screen_full_newspace(struct bContext *C, ScrArea *area, int type)
Definition: screen_edit.c:1242
void ED_region_cache_draw_background(struct ARegion *region)
Definition: area.c:3774
void ED_area_exit(struct bContext *C, struct ScrArea *area)
Definition: screen_edit.c:714
struct AZone * ED_area_azones_update(ScrArea *area, const int mouse_xy[2])
Definition: screen_ops.c:974
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:747
bScreen * ED_screen_animation_playing(const struct wmWindowManager *wm)
void ED_region_header_layout(const struct bContext *C, struct ARegion *region)
void ED_region_cache_draw_cached_segments(struct ARegion *region, int num_segments, const int *points, int sfra, int efra)
Definition: area.c:3813
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:151
void ED_region_do_draw(struct bContext *C, struct ARegion *region)
Definition: area.c:517
void ED_region_panels_init(struct wmWindowManager *wm, struct ARegion *region)
Definition: area.c:3153
bool ED_region_overlap_isect_xy(const ARegion *region, const int event_xy[2])
Definition: area_query.c:44
void ED_screen_set_active_region(struct bContext *C, struct wmWindow *win, const int xy[2])
Definition: screen_edit.c:829
bool ED_operator_uvmap(struct bContext *C)
Definition: screen_ops.c:571
void ED_region_tag_redraw(struct ARegion *region)
Definition: area.c:655
bool ED_operator_editlattice(struct bContext *C)
Definition: screen_ops.c:644
void ED_region_header_init(struct ARegion *region)
Definition: area.c:3417
bool ED_region_overlap_isect_x_with_margin(const ARegion *region, int event_x, int margin)
Definition: area_query.c:93
bool ED_operator_uvedit(struct bContext *C)
Definition: screen_ops.c:557
void ED_area_tag_refresh(ScrArea *area)
Definition: area.c:758
void ED_screen_refresh(struct wmWindowManager *wm, struct wmWindow *win)
Definition: screen_edit.c:611
bool ED_operator_view3d_active(struct bContext *C)
Definition: screen_ops.c:225
struct ScrArea * ED_screen_state_toggle(struct bContext *C, struct wmWindow *win, struct ScrArea *area, short state)
Definition: screen_edit.c:1415
bool ED_operator_editmesh(struct bContext *C)
Definition: screen_ops.c:433
bool ED_operator_nla_active(struct bContext *C)
Definition: screen_ops.c:349
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:3428
struct WorkSpace * ED_workspace_add(struct Main *bmain, const char *name) ATTR_NONNULL()
void ED_area_newspace(struct bContext *C, ScrArea *area, int type, bool skip_region_exit)
Definition: area.c:2427
bool ED_operator_object_active_local_editable_ex(struct bContext *C, const Object *ob)
Definition: screen_ops.c:402
void ED_region_search_filter_update(const struct ScrArea *area, struct ARegion *region)
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:339
void ED_area_do_listen(struct wmSpaceTypeListenerParams *params)
Definition: area.c:159
bool ED_region_panel_category_gutter_calc_rect(const ARegion *region, rcti *r_region_gutter)
Definition: area_query.c:62
void ED_area_offscreen_free(struct wmWindowManager *wm, struct wmWindow *win, struct ScrArea *area)
Definition: area.c:2035
bool ED_operator_objectmode(struct bContext *C)
Definition: screen_ops.c:186
void ED_area_type_hud_clear(struct wmWindowManager *wm, ScrArea *area_keep)
bool ED_operator_objectmode_poll_msg(struct bContext *C)
Definition: screen_ops.c:206
void ED_area_do_refresh(struct bContext *C, ScrArea *area)
Definition: area.c:167
void ED_screen_ensure_updated(struct wmWindowManager *wm, struct wmWindow *win, struct bScreen *screen)
Definition: screen_edit.c:670
bool ED_operator_screen_mainwinactive(struct bContext *C)
Definition: screen_ops.c:153
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:626
ScrArea * ED_screen_area_find_with_spacedata(const bScreen *screen, const struct SpaceLink *sl, bool only_visible)
bool ED_operator_scene_editable(struct bContext *C)
Definition: screen_ops.c:177
ScrArea * ED_screen_areas_iter_first(const struct wmWindow *win, const bScreen *screen)
bool ED_operator_object_active(struct bContext *C)
Definition: screen_ops.c:370
void ED_area_init(struct wmWindowManager *wm, struct wmWindow *win, struct ScrArea *area)
Definition: area.c:1902
void ED_area_swapspace(struct bContext *C, ScrArea *sa1, ScrArea *sa2)
Definition: area.c:2401
void ED_region_panels_layout(const struct bContext *C, struct ARegion *region)
bool ED_operator_editfont(struct bContext *C)
Definition: screen_ops.c:635
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])
bool ED_region_overlap_isect_y_with_margin(const ARegion *region, int event_y, int margin)
Definition: area_query.c:107
void ED_screen_full_restore(struct bContext *C, ScrArea *area)
Definition: screen_edit.c:1304
void ED_region_update_rect(struct ARegion *region)
Definition: area.c:2052
void ED_area_type_hud_ensure(struct bContext *C, struct ScrArea *area)
bool ED_operator_posemode_exclusive(struct bContext *C)
Definition: screen_ops.c:494
bool ED_operator_region_view3d_active(struct bContext *C)
Definition: screen_ops.c:230
bool ED_workspace_layout_cycle(struct WorkSpace *workspace, short direction, struct bContext *C) ATTR_NONNULL()
void ED_region_header_draw(const struct bContext *C, struct ARegion *region)
int ED_region_global_size_y(void)
Definition: area.c:3513
bool ED_operator_object_active_editable_font(struct bContext *C)
Definition: screen_ops.c:420
void ED_workspace_status_text(struct bContext *C, const char *str)
Definition: area.c:816
void ED_screen_global_areas_refresh(struct wmWindow *win)
Definition: screen_edit.c:1070
void ED_screen_restore_temp_type(struct bContext *C, ScrArea *area)
Definition: screen_edit.c:1288
bool ED_operator_action_active(struct bContext *C)
Definition: screen_ops.c:297
bool ED_screen_change(struct bContext *C, struct bScreen *screen)
Change the active screen.
Definition: screen_edit.c:1135
int ED_area_header_switchbutton(const struct bContext *C, struct uiBlock *block, int yco)
eScreenCycle
Definition: ED_screen.h:704
@ SPACE_CONTEXT_CYCLE_NEXT
Definition: ED_screen.h:706
@ SPACE_CONTEXT_CYCLE_PREV
Definition: ED_screen.h:705
const rcti * ED_region_visible_rect(ARegion *region)
Definition: area.c:3763
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 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
_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
wmOperatorCallContext
Definition: WM_types.h:199
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]
const int state
static unsigned a[3]
Definition: RandGen.cpp:78
static void area(int d1, int d2, int e1, int e2, float weights[2])
static const pxr::TfToken b("b", pxr::TfToken::Immortal)
Definition: BKE_main.h:121
Wrapper for bScreen.
struct IDProperty * prop
int xy[2]
Definition: wm_draw.c:135
wmOperatorType * ot
Definition: wm_files.c:3479