Blender
V3.3
|
#include "DNA_screen_types.h"
#include "DNA_space_types.h"
#include "DNA_view2d_types.h"
#include "DNA_view3d_types.h"
#include "DNA_workspace_types.h"
#include "DNA_object_enums.h"
#include "WM_types.h"
#include "BLI_compiler_attrs.h"
Go to the source code of this file.
Macros | |
#define | ED_screen_areas_iter(win, screen, area_name) |
#define | ED_screen_verts_iter(win, screen, vert_name) |
Typedefs | |
typedef enum eScreenCycle | eScreenCycle |
Enumerations | |
enum | { ED_KEYMAP_UI = (1 << 1) , ED_KEYMAP_GIZMO = (1 << 2) , ED_KEYMAP_TOOL = (1 << 3) , ED_KEYMAP_VIEW2D = (1 << 4) , ED_KEYMAP_ANIMATION = (1 << 6) , ED_KEYMAP_FRAMES = (1 << 7) , ED_KEYMAP_HEADER = (1 << 8) , ED_KEYMAP_FOOTER = (1 << 9) , ED_KEYMAP_GPENCIL = (1 << 10) , ED_KEYMAP_NAVBAR = (1 << 11) } |
enum | eScreenCycle { SPACE_CONTEXT_CYCLE_PREV , SPACE_CONTEXT_CYCLE_NEXT } |
#define ED_screen_areas_iter | ( | win, | |
screen, | |||
area_name | |||
) |
Iterate over all areas visible in the screen (screen as in everything visible in the window, not just bScreen).
Definition at line 267 of file ED_screen.h.
#define ED_screen_verts_iter | ( | win, | |
screen, | |||
vert_name | |||
) |
Definition at line 270 of file ED_screen.h.
typedef enum eScreenCycle eScreenCycle |
SCREEN_OT_space_context_cycle direction.
anonymous enum |
Default key-maps, bit-flags (matches order of evaluation).
Enumerator | |
---|---|
ED_KEYMAP_UI | |
ED_KEYMAP_GIZMO | |
ED_KEYMAP_TOOL | |
ED_KEYMAP_VIEW2D | |
ED_KEYMAP_ANIMATION | |
ED_KEYMAP_FRAMES | |
ED_KEYMAP_HEADER | |
ED_KEYMAP_FOOTER | |
ED_KEYMAP_GPENCIL | |
ED_KEYMAP_NAVBAR |
Definition at line 690 of file ED_screen.h.
enum eScreenCycle |
SCREEN_OT_space_context_cycle direction.
Enumerator | |
---|---|
SPACE_CONTEXT_CYCLE_PREV | |
SPACE_CONTEXT_CYCLE_NEXT |
Definition at line 704 of file ED_screen.h.
Definition at line 974 of file screen_ops.c.
References blender::compositor::area(), area_actionzone_refresh_xy(), and xy.
Referenced by ED_area_update_region_sizes(), ED_screen_set_active_region(), and wm_event_do_handlers().
void ED_area_do_listen | ( | struct wmSpaceTypeListenerParams * | params | ) |
Only exported for WM.
Definition at line 159 of file area.c.
References params.
Referenced by wm_event_do_notifiers().
void ED_area_do_mgs_subscribe_for_tool_header | ( | const struct wmRegionMessageSubscribeParams * | params | ) |
Follow ARegionType.message_subscribe.
Referenced by ED_spacetype_image(), ED_spacetype_sequencer(), and ED_spacetype_view3d().
void ED_area_do_mgs_subscribe_for_tool_ui | ( | const struct wmRegionMessageSubscribeParams * | params | ) |
Referenced by ED_spacetype_image(), ED_spacetype_node(), ED_spacetype_sequencer(), and ED_spacetype_view3d().
void ED_area_do_msg_notify_tag_refresh | ( | struct bContext * | C, |
struct wmMsgSubscribeKey * | msg_key, | ||
struct wmMsgSubscribeValue * | msg_val | ||
) |
Referenced by file_main_region_message_subscribe().
Only exported for WM.
Definition at line 167 of file area.c.
References blender::compositor::area(), and C.
Referenced by wm_event_do_refresh_wm_and_depsgraph(), and wm_handler_fileselect_do().
Definition at line 714 of file screen_edit.c.
References blender::compositor::area(), C, CTX_wm_area(), CTX_wm_area_set(), CTX_wm_manager(), CTX_wm_window(), ED_region_exit(), LISTBASE_FOREACH, NULL, WM_event_modal_handler_area_replace(), and WM_event_remove_handlers().
Referenced by ED_area_newspace(), ED_area_swapspace(), ED_screen_exit(), screen_delarea(), and WM_event_remove_handlers().
ARegion* ED_area_find_region_xy_visual | ( | const ScrArea * | area, |
int | regiontype, | ||
const int | event_xy[2] | ||
) |
Similar to BKE_area_find_region_xy() but when event_xy intersects an overlapping region, this returns the region that is visually under the cursor. E.g. when over the transparent part of the region, it returns the region underneath.
The overlapping region is determined using the ED_region_contains_xy() query.
Definition at line 178 of file area_query.c.
References blender::compositor::area(), ED_region_contains_xy(), ELEM, LISTBASE_FOREACH, NULL, and RGN_TYPE_ANY.
Referenced by wm_drags_draw(), and wm_event_do_handlers_area_regions().
Search all screens, even non-active or overlapping (multiple windows), return the most-likely area of interest. xy is relative to active window, like all similar functions.
Referenced by area_swap_modal().
int ED_area_footersize | ( | void | ) |
Definition at line 3428 of file area.c.
References ED_area_headersize().
Referenced by region_rect_recursive().
int ED_area_global_max_size_y | ( | const ScrArea * | area | ) |
Definition at line 3443 of file area.c.
References blender::compositor::area(), BLI_assert, ED_area_is_global(), round_fl_to_int(), and UI_DPI_FAC.
Referenced by area_move_set_limits().
int ED_area_global_min_size_y | ( | const ScrArea * | area | ) |
Definition at line 3438 of file area.c.
References blender::compositor::area(), BLI_assert, ED_area_is_global(), round_fl_to_int(), and UI_DPI_FAC.
Referenced by area_move_set_limits().
int ED_area_global_size_y | ( | const ScrArea * | area | ) |
Definition at line 3433 of file area.c.
References blender::compositor::area(), BLI_assert, ED_area_is_global(), round_fl_to_int(), and UI_DPI_FAC.
Referenced by screen_geom_vertices_scale(), and WM_window_screen_rect_calc().
Definition at line 1897 of file area.c.
References Freestyle::a, area_getorientation(), and usdtokens::b().
Referenced by ED_buttons_should_sync_with_outliner().
Returns offset for next button in header.
Referenced by uiTemplateHeader().
int ED_area_headersize | ( | void | ) |
Definition at line 3422 of file area.c.
References HEADER_PADDING_Y, and UI_DPI_FAC.
Referenced by area_move_set_limits(), area_split_allowed(), ED_area_footersize(), ED_region_global_size_y(), region_rect_recursive(), screen_geom_find_area_split_point(), screen_geom_vertices_scale_pass(), screen_global_header_size(), and sequencer_refresh().
void ED_area_init | ( | struct wmWindowManager * | wm, |
struct wmWindow * | win, | ||
struct ScrArea * | area | ||
) |
Called in screen_refresh, or screens_init, also area size changes.
Definition at line 1902 of file area.c.
References blender::compositor::area(), area_azone_init(), area_calc_totrct(), AREA_FLAG_ACTIVE_TOOL_UPDATE, AREA_FLAG_REGION_SIZE_UPDATE, BKE_regiontype_from_id_or_first(), BKE_spacetype_from_id(), BKE_workspace_active_screen_get(), ED_area_is_global(), ed_default_handlers(), G, G_TRANSFORM_WM, GLOBAL_AREA_IS_HIDDEN, LISTBASE_FOREACH, NULL, region_azones_add(), region_rect_recursive(), region_subwindow(), SPACE_VIEW3D, UI_blocklist_free(), WM_toolsystem_refresh_screen_area(), WM_TOOLSYSTEM_SPACE_MASK, WM_window_get_active_view_layer(), WM_window_get_active_workspace(), WM_window_rect_calc(), and wmWindow::workspace_hook.
Referenced by clip_refresh(), ED_area_newspace(), ED_area_swapspace(), ED_region_visibility_change_update(), ED_region_visibility_change_update_animated(), ED_screen_refresh(), file_ensure_valid_region_state(), region_blend_end(), and sequencer_refresh().
Definition at line 3449 of file area.c.
References blender::compositor::area(), and NULL.
Referenced by area_azone_init(), area_close_poll(), area_move_apply_do(), ED_area_global_max_size_y(), ED_area_global_min_size_y(), ED_area_global_size_y(), ED_area_init(), ED_region_do_draw(), file_context(), fullscreen_azone_init(), region_background_color_id(), region_rect_recursive(), screen_area_edge_from_cursor(), screen_area_menu_items(), and screen_maximize_area_poll().
skip_region_exit | Skip calling area exit callback. Set for opening temp spaces. |
Definition at line 2427 of file area.c.
References blender::compositor::area(), BKE_spacetype_from_id(), BLI_addhead(), BLI_freelinkN(), BLI_listbase_clear(), BLI_listbase_is_empty(), BLI_remlink(), C, CTX_wm_manager(), CTX_wm_window(), ED_area_exit(), ED_area_init(), ED_area_tag_redraw(), ED_area_tag_refresh(), SpaceLink::link_flag, LISTBASE_FOREACH, NC_SPACE, ND_SPACE_CHANGED, NULL, region_align_info_from_area(), region_align_info_to_area(), SpaceLink::regionbase, RGN_TYPE_NUM, scene, SPACE_FLAG_TYPE_TEMPORARY, SPACE_FLAG_TYPE_WAS_ACTIVE, usdtokens::st(), type, WM_event_add_mousemove(), WM_event_add_notifier(), and WM_window_get_active_scene().
Referenced by ED_area_prevspace(), ED_screen_full_newspace(), ED_screen_temp_space_open(), render_view_open(), and WM_window_open().
ScrArea* ED_area_offscreen_create | ( | struct wmWindow * | win, |
eSpace_Type | space_type | ||
) |
Definition at line 1995 of file area.c.
References blender::compositor::area(), area_offscreen_init(), MEM_callocN, screen_area_spacelink_add(), and WM_window_get_active_scene().
Referenced by wm_xr_session_actions_update().
void ED_area_offscreen_free | ( | struct wmWindowManager * | wm, |
struct wmWindow * | win, | ||
struct ScrArea * | area | ||
) |
Definition at line 2035 of file area.c.
References blender::compositor::area(), area_offscreen_exit(), BKE_screen_area_free(), and MEM_freeN.
Referenced by wm_xr_runtime_data_free().
Definition at line 2567 of file area.c.
References blender::compositor::area(), AREA_FLAG_STACKED_FULLSCREEN, area_get_prevspace(), C, ED_area_newspace(), ED_area_tag_redraw(), SpaceLink::link_flag, NC_SPACE, ND_SPACE_CHANGED, NULL, SPACE_FLAG_TYPE_TEMPORARY, SpaceLink::spacetype, and WM_event_add_notifier().
Referenced by ED_screen_full_prevspace(), ED_screen_restore_temp_type(), render_view_cancel_exec(), render_view_show_invoke(), and wm_handler_fileselect_do().
const char* ED_area_region_search_filter_get | ( | const struct ScrArea * | area, |
const struct ARegion * | region | ||
) |
Returns the search string if the space type and region type support property search.
Use NULL to disable it.
Definition at line 792 of file area.c.
References blender::compositor::area(), BLI_str_rstrip(), BLI_strncpy(), ED_region_tag_redraw(), LISTBASE_FOREACH, MEM_mallocN, MEM_SAFE_FREE, NULL, RGN_TYPE_HEADER, str, and UI_MAX_DRAW_STR.
Referenced by applyAlign(), applyBakeTime(), applyBevelWeight(), applyBoneEnvelope(), applyBoneRoll(), applyBoneSize(), applyCrease(), applyCurveShrinkFatten(), applyEdgeSlide(), applyGPOpacity(), applyGPShrinkFatten(), applyMaskShrinkFatten(), applyMirror(), applyNormalRotation(), applyPushPull(), applyResize(), applyRotation(), applySeqSlide(), applyShear(), applyShrinkFatten(), applySkinResize(), applyTilt(), applyTimeScale(), applyTimeSlide(), applyTimeTranslate(), applyToSphere(), applyTrackball(), applyTranslation(), applyVertSlide(), Bend(), ed_marker_move_exit(), ed_marker_move_update_header(), ED_screen_state_toggle(), ED_slider_destroy(), edbm_bevel_exit(), edbm_inset_exit(), edbm_inset_update_header(), gpencil_interpolate_exit(), gpencil_interpolate_modal(), gpencil_interpolate_status_indicators(), gpencil_uv_transform_exit(), gpencil_uv_transform_update_header(), graph_slider_exit(), interactive_value_exit(), interactive_value_update(), minimize_stretch_exit(), minimize_stretch_iteration(), point_normals_cancel(), point_normals_update_header(), pose_slide_draw_status(), pose_slide_modal(), poselib_blend_apply(), poselib_blend_cleanup(), poselib_preview_apply(), poselib_preview_cleanup(), radial_control_cancel(), radial_control_update_header(), sequencer_slip_modal(), sequencer_slip_update_header(), ui_handler_wait_for_input_remove(), viewRedrawPost(), and WM_operator_name_call_ptr_with_depends_on_cursor().
Definition at line 2401 of file area.c.
References BKE_screen_area_free(), C, CTX_wm_manager(), CTX_wm_window(), ED_area_data_copy(), ED_area_exit(), ED_area_init(), ED_area_tag_redraw(), ED_area_tag_refresh(), MEM_callocN, MEM_freeN, and WM_event_add_mousemove().
Referenced by area_swap_exec(), and area_swap_modal().
Definition at line 729 of file area.c.
References blender::compositor::area(), ED_region_tag_redraw(), and LISTBASE_FOREACH.
Referenced by action_listener(), action_refresh(), actkeys_viewall(), area_actionzone_refresh_xy(), area_dupli_invoke(), area_join_modal(), area_move_apply_do(), area_split_apply(), area_split_exit(), area_split_modal(), area_swap_modal(), bookmark_add_exec(), bookmark_cleanup_exec(), bookmark_delete_exec(), bookmark_move_exec(), box_select_exec(), buttons_area_listener(), buttons_area_redraw(), buttons_clear_filter_exec(), clip_listener(), clip_rebuild_proxy_exec(), clip_refresh(), console_clear_exec(), console_clear_line_exec(), console_delete_exec(), console_history_append_exec(), console_history_cycle_exec(), console_indent_exec(), console_insert_exec(), console_modal_select_apply(), console_move_exec(), console_paste_exec(), console_scrollback_append_exec(), console_selectword_invoke(), console_unindent_exec(), do_view3d_region_buttons(), ED_area_newspace(), ED_area_prevspace(), ED_area_swapspace(), ED_area_type_hud_clear(), ED_editors_init(), ED_imbuf_sample_exit(), ED_region_visibility_change_update(), ED_screen_restore_temp_type(), ED_spreadsheet_context_paths_set_geometry_node(), ED_view3d_quadview_update(), ED_workspace_layout_duplicate(), ED_workspace_status_text(), file_draw_check_ex(), file_filenum_exec(), file_highlight_invoke(), file_refresh(), file_rename_exec(), file_select_all_exec(), file_view_selected_exec(), gesture_modal_end(), graph_listener(), graph_refresh(), graphkeys_clear_ghostcurves_exec(), graphkeys_create_ghostcurves_exec(), header_toggle_menus_exec(), image_listener(), image_sample_apply(), image_sample_line_exec(), localview_exec(), nla_listener(), nlaedit_viewall(), blender::ed::space_node::node_area_listener(), outliner_id_remap(), blender::ed::space_node::pick_input_link_by_link_intersect(), previewrange_clear_exec(), proj_paint_add_slot(), redraw_timer_window_swap(), region_blend_end(), region_flip_exec(), region_quadview_exec(), region_scale_modal(), report_delete_exec(), report_replay_exec(), report_select_all_exec(), reset_exec(), reset_recent_exec(), blender::ed::space_node::sample_apply(), blender::ed::space_node::sample_exit(), scroll_exit(), select_report_pick_exec(), seq_build_proxy(), seq_proxy_build_job(), sequencer_listener(), sequencer_preview_add_sound(), sequencer_refresh(), sequencer_sample_apply(), sequencer_thumbnail_init_job(), sequencer_view_all_preview_exec(), template_texture_show(), text_autocomplete_invoke(), text_autocomplete_modal(), text_listener(), text_scroll_apply(), text_scroll_exec(), text_scroll_modal(), toggle_pin_exec(), toggle_xray_exec(), update_context_path_from_context(), update_pinned_context_path_if_outdated(), view_zoomdrag_apply(), view_zoomstep_apply_ex(), viewRedrawForce(), WM_window_cursor_keymap_status_refresh(), and WM_window_status_area_tag_redraw().
Definition at line 738 of file area.c.
References blender::compositor::area(), ED_region_tag_redraw_no_rebuild(), and LISTBASE_FOREACH.
Referenced by area_actionzone_refresh_xy(), and area_move_apply_do().
Definition at line 747 of file area.c.
References blender::compositor::area(), ED_region_tag_redraw(), and LISTBASE_FOREACH.
Referenced by SCULPT_flush_update_done(), and space_view3d_listener().
Definition at line 758 of file area.c.
References blender::compositor::area().
Referenced by action_listener(), bookmark_add_exec(), bookmark_cleanup_exec(), bookmark_delete_exec(), ED_area_do_msg_notify_tag_refresh(), ED_area_newspace(), ED_area_swapspace(), ED_screen_state_toggle(), file_listener(), file_reset_filelist_showing_main_data(), graph_init(), graph_listener(), image_listener(), nla_init(), nla_listener(), blender::ed::space_node::node_area_tag_recalc_auto_compositing(), blender::ed::space_node::node_area_tag_tree_recalc(), screen_state_to_nonnormal(), and view3d_main_region_listener().
struct ARegionType* ED_area_type_hud | ( | int | space_type | ) |
Definition at line 220 of file interface_region_hud.cc.
References AREAMINX, ARegionType::draw, ED_KEYMAP_UI, ED_KEYMAP_VIEW2D, ARegionType::free, HEADERY, hud_panels_register(), hud_region_draw(), hud_region_free(), hud_region_init(), hud_region_layout(), ARegionType::init, ARegionType::keymapflag, ARegionType::layout, ARegionType::lock, ARegionType::prefsizex, ARegionType::prefsizey, ARegionType::regionid, and RGN_TYPE_HUD.
Referenced by ED_spacetype_clip(), ED_spacetype_image(), ED_spacetype_ipo(), ED_spacetype_sequencer(), and ED_spacetype_view3d().
void ED_area_type_hud_clear | ( | struct wmWindowManager * | wm, |
ScrArea * | area_keep | ||
) |
Definition at line 267 of file interface_region_hud.cc.
References blender::compositor::area(), bScreen::areabase, ED_area_tag_redraw(), ED_region_tag_redraw(), hud_region_hide(), LISTBASE_FOREACH, RGN_FLAG_HIDDEN, RGN_TYPE_HUD, wmWindowManager::windows, and WM_window_get_active_screen().
Referenced by ED_area_type_hud_ensure(), and wm_operator_finished().
Definition at line 287 of file interface_region_hud.cc.
References blender::compositor::area(), AREA_FLAG_REGION_SIZE_UPDATE, BKE_area_find_region_type(), BKE_regiontype_from_id(), BLI_assert, C, CTX_wm_manager(), CTX_wm_region(), CTX_wm_region_set(), CTX_wm_window(), View2D::cur, ED_area_type_hud_clear(), ED_area_update_region_sizes(), ED_region_floating_init(), ED_region_tag_redraw(), ARegion::flag, hud_region_add(), hud_region_hide(), hud_region_layout(), init, last_redo_poll(), View2D::maxzoom, View2D::minzoom, ARegion::regiondata, HudRegionData::regionid, ARegion::regiontype, RGN_FLAG_HIDDEN, RGN_FLAG_HIDDEN_BY_USER, RGN_FLAG_TOO_SMALL, RGN_TYPE_HUD, View2D::tot, ARegion::type, ARegion::v2d, ARegion::visible, ARegion::winx, View2D::winx, ARegion::winy, View2D::winy, rctf::xmax, and rctf::ymax.
Referenced by wm_operator_finished().
void ED_area_update_region_sizes | ( | struct wmWindowManager * | wm, |
struct wmWindow * | win, | ||
struct ScrArea * | area | ||
) |
Definition at line 1862 of file area.c.
References blender::compositor::area(), area_azone_init(), area_calc_totrct(), AREA_FLAG_REGION_SIZE_UPDATE, ED_area_azones_update(), wmWindow::eventstate, LISTBASE_FOREACH, region_azones_add(), region_rect_recursive(), region_subwindow(), WM_window_get_active_screen(), WM_window_rect_calc(), and wmEvent::xy.
Referenced by ED_area_type_hud_ensure(), and wm_draw_window_offscreen().
void ED_keymap_screen | ( | struct wmKeyConfig * | keyconf | ) |
Definition at line 5758 of file screen_ops.c.
References blend_file_drop_copy(), blend_file_drop_poll(), keymap_modal_set(), NULL, UI_drop_color_copy(), UI_drop_color_poll(), WM_dropbox_add(), WM_dropboxmap_find(), and WM_keymap_ensure().
Referenced by ED_spacetypes_keymap().
Definition at line 297 of file screen_ops.c.
References C, ed_spacetype_test(), and SPACE_ACTION.
Referenced by action_layer_next_poll(), action_layer_prev_poll(), action_new_poll(), ACTION_OT_clean(), ACTION_OT_clickselect(), ACTION_OT_copy(), ACTION_OT_delete(), ACTION_OT_duplicate(), ACTION_OT_easing_type(), ACTION_OT_extrapolation_type(), ACTION_OT_handle_type(), ACTION_OT_interpolation_type(), ACTION_OT_keyframe_insert(), ACTION_OT_keyframe_type(), ACTION_OT_mirror(), ACTION_OT_paste(), ACTION_OT_previewrange_set(), ACTION_OT_sample(), ACTION_OT_select_all(), ACTION_OT_select_box(), ACTION_OT_select_circle(), ACTION_OT_select_column(), ACTION_OT_select_lasso(), ACTION_OT_select_leftright(), ACTION_OT_select_less(), ACTION_OT_select_linked(), ACTION_OT_select_more(), ACTION_OT_snap(), ACTION_OT_view_all(), ACTION_OT_view_frame(), ACTION_OT_view_selected(), action_pushdown_poll(), action_stash_create_poll(), action_unlink_poll(), and actkeys_framejump_poll().
Generic for any view2d which uses anim_ops.
Definition at line 240 of file screen_ops.c.
References C, CTX_wm_operator_poll_msg_set(), CTX_wm_space_data(), ED_operator_areaactive(), ELEM, SPACE_ACTION, SPACE_GRAPH, SPACE_NLA, SPACE_SEQ, and SpaceLink::spacetype.
Referenced by ANIM_OT_previewrange_clear(), and ANIM_OT_previewrange_set().
Definition at line 105 of file screen_ops.c.
References C, CTX_wm_area(), CTX_wm_screen(), CTX_wm_window(), and NULL.
Referenced by ANIM_OT_keyframe_clear_v3d(), ANIM_OT_keyframe_delete_v3d(), ANIM_OT_keyframe_insert_menu(), ANIM_OT_keying_set_active_set(), area_close_poll(), delete_orientation_poll(), ED_operator_animview_active(), ed_spacetype_test(), region_flip_poll(), region_toggle_poll(), screen_maximize_area_poll(), SCREEN_OT_area_dupli(), SCREEN_OT_header_toggle_menus(), SCREEN_OT_region_scale(), and TRANSFORM_OT_create_orientation().
Definition at line 284 of file screen_ops.c.
References C, CTX_wm_space_file(), ED_fileselect_is_asset_browser(), ed_spacetype_test(), and SPACE_FILE.
Referenced by asset_library_refresh_exec(), and asset_library_refresh_poll().
Definition at line 302 of file screen_ops.c.
References C, ed_spacetype_test(), and SPACE_PROPERTIES.
Referenced by BUTTONS_OT_clear_filter(), BUTTONS_OT_context_menu(), BUTTONS_OT_start_filter(), and BUTTONS_OT_toggle_pin().
Definition at line 662 of file screen_ops.c.
References C, CTX_data_pointer_get_type(), PointerRNA::data, ID_IS_LINKED, and NULL.
Referenced by VIEW3D_OT_background_image_remove().
Definition at line 359 of file screen_ops.c.
References C, ed_spacetype_test(), and SPACE_CONSOLE.
Referenced by CONSOLE_OT_clear(), CONSOLE_OT_clear_line(), CONSOLE_OT_copy(), CONSOLE_OT_delete(), CONSOLE_OT_history_append(), CONSOLE_OT_history_cycle(), CONSOLE_OT_indent(), CONSOLE_OT_indent_or_autocomplete(), CONSOLE_OT_insert(), CONSOLE_OT_move(), CONSOLE_OT_paste(), CONSOLE_OT_scrollback_append(), CONSOLE_OT_select_set(), CONSOLE_OT_select_word(), and CONSOLE_OT_unindent().
Definition at line 427 of file screen_ops.c.
References C, ED_mesh_context(), ID_IS_LINKED, ID_IS_OVERRIDE_LIBRARY, mesh, and NULL.
Referenced by MESH_OT_customdata_custom_splitnormals_add(), and MESH_OT_customdata_custom_splitnormals_clear().
Definition at line 466 of file screen_ops.c.
References C, CTX_data_edit_object(), Object::data, NULL, OB_ARMATURE, and Object::type.
Referenced by armature_layers_poll(), ARMATURE_OT_align(), ARMATURE_OT_autoside_names(), ARMATURE_OT_bone_layers(), ARMATURE_OT_bone_primitive_add(), ARMATURE_OT_calculate_roll(), ARMATURE_OT_click_extrude(), ARMATURE_OT_delete(), ARMATURE_OT_dissolve(), ARMATURE_OT_duplicate(), ARMATURE_OT_extrude(), ARMATURE_OT_fill(), ARMATURE_OT_flip_names(), ARMATURE_OT_hide(), ARMATURE_OT_parent_clear(), ARMATURE_OT_parent_set(), ARMATURE_OT_reveal(), ARMATURE_OT_roll_clear(), ARMATURE_OT_select_all(), ARMATURE_OT_select_hierarchy(), ARMATURE_OT_select_less(), ARMATURE_OT_select_linked(), ARMATURE_OT_select_mirror(), ARMATURE_OT_select_more(), ARMATURE_OT_select_similar(), ARMATURE_OT_separate(), ARMATURE_OT_shortest_path_pick(), ARMATURE_OT_split(), ARMATURE_OT_subdivide(), ARMATURE_OT_switch_direction(), ARMATURE_OT_symmetrize(), armature_select_linked_pick_poll(), and ED_keymap_armature().
Definition at line 606 of file screen_ops.c.
References C, CTX_data_edit_object(), Object::data, NULL, OB_CURVES_LEGACY, and Object::type.
Referenced by CURVE_OT_de_select_first(), CURVE_OT_de_select_last(), CURVE_OT_decimate(), CURVE_OT_dissolve_verts(), CURVE_OT_draw(), CURVE_OT_handle_type_set(), CURVE_OT_normals_make_consistent(), CURVE_OT_select_next(), CURVE_OT_select_previous(), CURVE_OT_spline_type_set(), CURVE_OT_tilt_clear(), and CURVE_OT_vertex_add().
Definition at line 615 of file screen_ops.c.
References C, CTX_data_edit_object(), CU_3D, Object::data, Curve::editnurb, Curve::flag, NULL, OB_CURVES_LEGACY, return(), and Object::type.
Referenced by TRANSFORM_OT_tilt().
Definition at line 635 of file screen_ops.c.
References C, CTX_data_edit_object(), Object::data, NULL, OB_FONT, and Object::type.
Referenced by ED_keymap_curve(), FONT_OT_case_set(), FONT_OT_case_toggle(), FONT_OT_change_character(), FONT_OT_change_spacing(), FONT_OT_delete(), FONT_OT_line_break(), FONT_OT_move(), FONT_OT_move_select(), FONT_OT_select_all(), FONT_OT_style_set(), FONT_OT_style_toggle(), FONT_OT_text_copy(), FONT_OT_text_cut(), FONT_OT_text_insert(), FONT_OT_text_paste(), and FONT_OT_text_paste_from_file().
Definition at line 644 of file screen_ops.c.
References C, CTX_data_edit_object(), Object::data, NULL, OB_LATTICE, and Object::type.
Referenced by ED_keymap_lattice(), hook_op_edit_poll(), LATTICE_OT_flip(), LATTICE_OT_select_all(), LATTICE_OT_select_less(), LATTICE_OT_select_mirror(), LATTICE_OT_select_more(), LATTICE_OT_select_random(), LATTICE_OT_select_ungrouped(), make_regular_poll(), and vertex_parent_set_poll().
Definition at line 653 of file screen_ops.c.
References C, CTX_data_edit_object(), Object::data, NULL, OB_MBALL, and Object::type.
Referenced by ED_keymap_metaball(), MBALL_OT_delete_metaelems(), MBALL_OT_duplicate_metaelems(), MBALL_OT_hide_metaelems(), MBALL_OT_reveal_metaelems(), MBALL_OT_select_all(), MBALL_OT_select_random_metaelems(), and MBALL_OT_select_similar().
Definition at line 433 of file screen_ops.c.
References BKE_editmesh_from_object(), C, CTX_data_edit_object(), NULL, OB_MESH, and Object::type.
Referenced by ED_keymap_mesh(), ED_operator_editmesh_region_view3d(), ED_operator_editmesh_view3d(), edbm_select_ungrouped_poll(), edbm_separate_exec(), EDBM_view3d_poll(), hook_op_edit_poll(), MESH_OT_average_normals(), MESH_OT_beautify_fill(), MESH_OT_bevel(), MESH_OT_bisect(), MESH_OT_blend_from_shape(), MESH_OT_bridge_edge_loops(), MESH_OT_colors_reverse(), MESH_OT_colors_rotate(), MESH_OT_decimate(), MESH_OT_delete(), MESH_OT_delete_edgeloop(), MESH_OT_delete_loose(), MESH_OT_dissolve_degenerate(), MESH_OT_dissolve_edges(), MESH_OT_dissolve_faces(), MESH_OT_dissolve_limited(), MESH_OT_dissolve_mode(), MESH_OT_dissolve_verts(), MESH_OT_duplicate(), MESH_OT_edge_collapse(), MESH_OT_edge_face_add(), MESH_OT_edge_rotate(), MESH_OT_edge_split(), MESH_OT_edges_select_sharp(), MESH_OT_extrude_context(), MESH_OT_extrude_edges_indiv(), MESH_OT_extrude_faces_indiv(), MESH_OT_extrude_region(), MESH_OT_extrude_repeat(), MESH_OT_extrude_verts_indiv(), MESH_OT_face_make_planar(), MESH_OT_face_split_by_edges(), MESH_OT_faces_select_linked_flat(), MESH_OT_faces_shade_flat(), MESH_OT_faces_shade_smooth(), MESH_OT_fill(), MESH_OT_fill_grid(), MESH_OT_fill_holes(), MESH_OT_flip_normals(), MESH_OT_hide(), MESH_OT_inset(), MESH_OT_intersect(), MESH_OT_intersect_boolean(), MESH_OT_loop_multi_select(), MESH_OT_loop_to_region(), MESH_OT_mark_seam(), MESH_OT_mark_sharp(), MESH_OT_merge(), MESH_OT_merge_normals(), MESH_OT_mod_weighted_strength(), MESH_OT_normals_make_consistent(), MESH_OT_normals_tools(), MESH_OT_offset_edge_loops(), MESH_OT_point_normals(), MESH_OT_poke(), MESH_OT_quads_convert_to_tris(), MESH_OT_region_to_loop(), MESH_OT_remove_doubles(), MESH_OT_reveal(), MESH_OT_screw(), MESH_OT_select_all(), MESH_OT_select_axis(), MESH_OT_select_face_by_sides(), MESH_OT_select_interior_faces(), MESH_OT_select_less(), MESH_OT_select_linked(), MESH_OT_select_linked_pick(), MESH_OT_select_loose(), MESH_OT_select_mirror(), MESH_OT_select_mode(), MESH_OT_select_more(), MESH_OT_select_non_manifold(), MESH_OT_select_nth(), MESH_OT_select_random(), MESH_OT_select_similar(), MESH_OT_select_similar_region(), MESH_OT_set_normals_from_faces(), MESH_OT_shape_propagate_to_all(), MESH_OT_shortest_path_select(), MESH_OT_smooth_normals(), MESH_OT_solidify(), MESH_OT_sort_elements(), MESH_OT_spin(), MESH_OT_split(), MESH_OT_split_normals(), MESH_OT_subdivide(), MESH_OT_subdivide_edgering(), MESH_OT_symmetrize(), MESH_OT_symmetry_snap(), MESH_OT_tris_convert_to_quads(), MESH_OT_unsubdivide(), MESH_OT_uvs_reverse(), MESH_OT_uvs_rotate(), MESH_OT_vert_connect(), MESH_OT_vert_connect_concave(), MESH_OT_vert_connect_nonplanar(), MESH_OT_vert_connect_path(), MESH_OT_vertices_smooth(), MESH_OT_vertices_smooth_laplacian(), MESH_OT_wireframe(), TRANSFORM_OT_edge_bevelweight(), TRANSFORM_OT_edge_crease(), TRANSFORM_OT_rotate_normal(), TRANSFORM_OT_shrink_fatten(), TRANSFORM_OT_skin_resize(), TRANSFORM_OT_vert_crease(), and vertex_parent_set_poll().
Definition at line 457 of file screen_ops.c.
References BKE_editmesh_from_object(), C, CTX_data_edit_object(), Object::data, ME_AUTOSMOOTH, NULL, OB_MESH, and Object::type.
Definition at line 447 of file screen_ops.c.
References C, CTX_wm_operator_poll_msg_set(), CTX_wm_region_view3d(), and ED_operator_editmesh().
Referenced by MESH_OT_dupli_extrude_cursor(), MESH_OT_edgering_select(), MESH_OT_knife_project(), MESH_OT_loop_select(), MESH_OT_loopcut(), MESH_OT_shortest_path_pick(), TRANSFORM_OT_edge_slide(), and TRANSFORM_OT_vert_slide().
Definition at line 442 of file screen_ops.c.
References C, ED_operator_editmesh(), and ED_operator_view3d_active().
Referenced by MESH_OT_knife_tool(), and MESH_OT_primitive_cube_add_gizmo().
Definition at line 626 of file screen_ops.c.
References C, CTX_data_edit_object(), Object::data, NULL, OB_SURF, and Object::type.
Referenced by CURVE_OT_select_row(), and CURVE_OT_spin().
Definition at line 587 of file screen_ops.c.
References C, CTX_data_edit_object(), Object::data, ELEM, NULL, OB_CURVES_LEGACY, OB_SURF, and Object::type.
Referenced by CURVE_OT_cyclic_toggle(), CURVE_OT_delete(), CURVE_OT_duplicate(), CURVE_OT_extrude(), CURVE_OT_hide(), CURVE_OT_make_segment(), CURVE_OT_radius_set(), CURVE_OT_reveal(), CURVE_OT_select_all(), CURVE_OT_select_less(), CURVE_OT_select_linked(), CURVE_OT_select_more(), CURVE_OT_select_nth(), CURVE_OT_select_random(), CURVE_OT_select_similar(), CURVE_OT_separate(), CURVE_OT_shade_flat(), CURVE_OT_shade_smooth(), CURVE_OT_smooth(), CURVE_OT_smooth_radius(), CURVE_OT_smooth_tilt(), CURVE_OT_smooth_weight(), CURVE_OT_spline_weight_set(), CURVE_OT_split(), CURVE_OT_subdivide(), CURVE_OT_switch_direction(), ED_keymap_curve(), ED_operator_editsurfcurve_region_view3d(), hook_op_edit_poll(), and vertex_parent_set_poll().
Definition at line 596 of file screen_ops.c.
References C, CTX_wm_operator_poll_msg_set(), CTX_wm_region_view3d(), and ED_operator_editsurfcurve().
Referenced by CURVE_OT_select_linked_pick(), and CURVE_OT_shortest_path_pick().
Definition at line 271 of file screen_ops.c.
References C, ed_spacetype_test(), and SPACE_FILE.
Referenced by FILE_OT_edit_directory_path(), FILE_OT_highlight(), FILE_OT_select(), FILE_OT_select_all(), FILE_OT_select_box(), FILE_OT_select_walk(), FILE_OT_smoothscroll(), FILE_OT_sort_column_ui_context(), FILE_OT_start_filter(), and FILE_OT_view_selected().
Definition at line 276 of file screen_ops.c.
References C, CTX_wm_space_file(), ED_fileselect_is_file_browser(), ed_spacetype_test(), and SPACE_FILE.
Referenced by file_bookmark_move_poll(), file_delete_poll(), file_filenum_poll(), file_operator_poll(), FILE_OT_bookmark_add(), FILE_OT_bookmark_cleanup(), FILE_OT_bookmark_delete(), FILE_OT_directory_new(), FILE_OT_execute(), FILE_OT_filepath_drop(), FILE_OT_hidedot(), FILE_OT_mouse_execute(), FILE_OT_next(), FILE_OT_parent(), FILE_OT_previous(), FILE_OT_refresh(), FILE_OT_rename(), FILE_OT_reset_recent(), and FILE_OT_select_bookmark().
Definition at line 329 of file screen_ops.c.
References C, ed_spacetype_test(), and SPACE_GRAPH.
Referenced by GRAPH_OT_ghost_curves_clear(), GRAPH_OT_hide(), GRAPH_OT_previewrange_set(), GRAPH_OT_reveal(), GRAPH_OT_view_all(), GRAPH_OT_view_frame(), GRAPH_OT_view_selected(), graph_panel_drivers_popover_poll(), and graphview_cursor_poll().
Definition at line 344 of file screen_ops.c.
References C, ed_spacetype_test(), and SPACE_IMAGE.
Referenced by RENDER_OT_view_cancel().
Definition at line 354 of file screen_ops.c.
References C, ed_spacetype_test(), and SPACE_INFO.
Referenced by INFO_OT_report_copy(), INFO_OT_report_delete(), INFO_OT_report_replay(), INFO_OT_select_all(), INFO_OT_select_box(), and INFO_OT_select_pick().
Definition at line 349 of file screen_ops.c.
References C, ed_spacetype_test(), and SPACE_NLA.
Referenced by action_new_poll(), nla_action_unlink_poll(), NLA_OT_channels_click(), NLA_OT_click_select(), NLA_OT_previewrange_set(), NLA_OT_select_leftright(), NLA_OT_view_all(), NLA_OT_view_frame(), NLA_OT_view_selected(), nlaop_poll_tweakmode_off(), and nlaop_poll_tweakmode_on().
Definition at line 307 of file screen_ops.c.
References C, CTX_wm_space_node(), and SpaceNode::edittree.
Referenced by blender::ed::space_node::composite_node_active(), blender::ed::space_node::node_group_operator_active_poll(), blender::ed::space_node::NODE_OT_backimage_sample(), blender::ed::space_node::NODE_OT_clipboard_copy(), blender::ed::space_node::NODE_OT_find_node(), blender::ed::space_node::NODE_OT_hide_socket_toggle(), blender::ed::space_node::NODE_OT_hide_toggle(), blender::ed::space_node::NODE_OT_options_toggle(), blender::ed::space_node::NODE_OT_preview_toggle(), blender::ed::space_node::NODE_OT_resize(), blender::ed::space_node::NODE_OT_select(), blender::ed::space_node::NODE_OT_select_all(), blender::ed::space_node::NODE_OT_select_box(), blender::ed::space_node::NODE_OT_select_circle(), blender::ed::space_node::NODE_OT_select_grouped(), blender::ed::space_node::NODE_OT_select_lasso(), blender::ed::space_node::NODE_OT_select_linked_from(), blender::ed::space_node::NODE_OT_select_linked_to(), blender::ed::space_node::NODE_OT_select_same_type_step(), blender::ed::space_node::NODE_OT_view_all(), and blender::ed::space_node::NODE_OT_view_selected().
Definition at line 318 of file screen_ops.c.
References BKE_id_is_editable(), C, CTX_data_main(), CTX_wm_space_node(), SpaceNode::edittree, and bNodeTree::id.
Referenced by blender::ed::space_node::composite_node_editable(), blender::ed::space_node::node_active_link_viewer_poll(), blender::ed::space_node::node_add_collection_poll(), blender::ed::space_node::node_add_file_poll(), blender::ed::space_node::node_add_group_poll(), blender::ed::space_node::node_add_mask_poll(), blender::ed::space_node::node_add_object_poll(), blender::ed::space_node::node_group_operator_editable(), blender::ed::space_node::NODE_OT_add_reroute(), blender::ed::space_node::NODE_OT_attach(), blender::ed::space_node::NODE_OT_clipboard_paste(), blender::ed::space_node::NODE_OT_delete(), blender::ed::space_node::NODE_OT_delete_reconnect(), blender::ed::space_node::NODE_OT_detach(), blender::ed::space_node::NODE_OT_duplicate(), blender::ed::space_node::NODE_OT_insert_offset(), blender::ed::space_node::NODE_OT_join(), blender::ed::space_node::NODE_OT_link(), blender::ed::space_node::NODE_OT_link_make(), blender::ed::space_node::NODE_OT_links_cut(), blender::ed::space_node::NODE_OT_links_detach(), blender::ed::space_node::NODE_OT_links_mute(), blender::ed::space_node::NODE_OT_mute_toggle(), blender::ed::space_node::NODE_OT_node_copy_color(), blender::ed::space_node::NODE_OT_parent_set(), blender::ed::space_node::NODE_OT_tree_socket_add(), blender::ed::space_node::NODE_OT_tree_socket_change_type(), blender::ed::space_node::NODE_OT_tree_socket_move(), blender::ed::space_node::NODE_OT_tree_socket_remove(), and blender::ed::space_node::node_shader_script_update_poll().
Definition at line 370 of file screen_ops.c.
References C, ED_object_active_context(), ed_object_hidden(), and NULL.
Referenced by OBJECT_OT_bake_image(), OBJECT_OT_geometry_node_tree_copy_assign(), OBJECT_OT_geometry_nodes_input_attribute_toggle(), OBJECT_OT_make_links_data(), OBJECT_OT_parent_set(), and TRANSFORM_OT_bbone_resize().
Definition at line 396 of file screen_ops.c.
References C, ED_object_active_context(), and ED_operator_object_active_editable_ex().
Referenced by ED_operator_rigidbody_active_poll(), ED_operator_rigidbody_add_poll(), ED_operator_rigidbody_con_active_poll(), ED_operator_rigidbody_con_add_poll(), FLUID_OT_bake_all(), FLUID_OT_bake_data(), FLUID_OT_bake_guides(), FLUID_OT_bake_mesh(), FLUID_OT_bake_noise(), FLUID_OT_bake_particles(), FLUID_OT_free_all(), FLUID_OT_free_data(), FLUID_OT_free_guides(), FLUID_OT_free_mesh(), FLUID_OT_free_noise(), FLUID_OT_free_particles(), FLUID_OT_pause_bake(), OBJECT_OT_constraint_add(), OBJECT_OT_constraint_add_with_targets(), OBJECT_OT_constraints_copy(), OBJECT_OT_forcefield_toggle(), OBJECT_OT_gpencil_modifier_add(), OBJECT_OT_modifier_add(), OBJECT_OT_parent_no_inverse_set(), OBJECT_OT_paths_calculate(), OBJECT_OT_paths_clear(), OBJECT_OT_posemode_toggle(), and object_update_paths_poll().
Definition at line 376 of file screen_ops.c.
References BKE_id_is_editable(), C, CTX_data_main(), CTX_wm_operator_poll_msg_set(), ed_object_hidden(), and NULL.
Referenced by blender::ed::curves::curves_poll_impl(), ED_operator_object_active_editable(), ED_operator_object_active_local_editable(), ED_operator_object_active_local_editable_ex(), edit_constraint_poll_generic(), edit_shaderfx_poll_generic(), and object_mode_set_poll().
Definition at line 420 of file screen_ops.c.
References C, Object::data, ED_object_active_context(), ed_object_hidden(), ID_IS_LINKED, ID_IS_OVERRIDE_LIBRARY, NULL, OB_FONT, and Object::type.
Referenced by FONT_OT_textbox_add(), and FONT_OT_textbox_remove().
Definition at line 413 of file screen_ops.c.
References C, Object::data, ED_object_active_context(), ed_object_hidden(), ID_IS_LINKED, ID_IS_OVERRIDE_LIBRARY, NULL, OB_MESH, and Object::type.
Referenced by geometry_extract_poll(), OBJECT_OT_bake(), object_remesh_poll(), PAINT_OT_add_texture_paint_slot(), and SCULPT_OT_sculptmode_toggle().
Definition at line 407 of file screen_ops.c.
References C, ED_object_active_context(), ED_operator_object_active_editable_ex(), and ID_IS_OVERRIDE_LIBRARY.
Referenced by copy_particle_systems_poll(), DPAINT_OT_bake(), DPAINT_OT_output_toggle(), DPAINT_OT_surface_slot_add(), DPAINT_OT_surface_slot_remove(), DPAINT_OT_type_toggle(), duplicate_particle_systems_poll(), OBJECT_OT_constraints_clear(), OBJECT_OT_particle_system_add(), and OBJECT_OT_particle_system_remove().
Object must be editable and fully local (i.e. not an override).
Definition at line 402 of file screen_ops.c.
References C, ED_operator_object_active_editable_ex(), and ID_IS_OVERRIDE_LIBRARY.
Referenced by object_materials_supported_poll_ex(), and vertex_group_supported_poll_ex().
Object must be editable, fully local (i.e. not an override), and exclusively in Pose mode.
Definition at line 501 of file screen_ops.c.
References C, CTX_wm_operator_poll_msg_set(), ED_object_active_context(), ed_operator_posemode_exclusive_ex(), and ID_IS_OVERRIDE_LIBRARY.
Referenced by POSE_OT_constraints_clear(), and POSE_OT_ik_clear().
Definition at line 186 of file screen_ops.c.
References C, CTX_data_active_object(), CTX_data_edit_object(), CTX_data_scene(), ID_IS_LINKED, Object::mode, NULL, OB_MODE_OBJECT, and scene.
Referenced by COLLECTION_OT_create(), COLLECTION_OT_objects_add_active(), COLLECTION_OT_objects_remove(), COLLECTION_OT_objects_remove_active(), COLLECTION_OT_objects_remove_all(), ED_operator_objectmode_poll_msg(), make_override_library_poll(), move_to_collection_poll(), object_curves_empty_hair_add_poll(), OBJECT_OT_add(), OBJECT_OT_armature_add(), OBJECT_OT_camera_add(), OBJECT_OT_collection_add(), OBJECT_OT_collection_external_asset_drop(), OBJECT_OT_collection_instance_add(), OBJECT_OT_collection_link(), OBJECT_OT_collection_objects_select(), OBJECT_OT_collection_remove(), OBJECT_OT_collection_unlink(), OBJECT_OT_curves_random_add(), OBJECT_OT_data_instance_add(), OBJECT_OT_delete(), OBJECT_OT_drop_named_image(), OBJECT_OT_duplicate(), OBJECT_OT_duplicates_make_real(), OBJECT_OT_effector_add(), OBJECT_OT_empty_add(), OBJECT_OT_light_add(), OBJECT_OT_lightprobe_add(), OBJECT_OT_make_local(), OBJECT_OT_make_single_user(), OBJECT_OT_parent_inverse_apply(), OBJECT_OT_select_less(), OBJECT_OT_select_more(), OBJECT_OT_speaker_add(), OBJECT_OT_text_add(), OBJECT_OT_track_clear(), OBJECT_OT_track_set(), OBJECT_OT_transform_apply(), OBJECT_OT_volume_add(), object_pointcloud_add_poll(), and reset_clear_override_library_poll().
Same as ED_operator_objectmode() but additionally sets a "disabled hint". That is, a message to be displayed to the user explaining why the operator can't be used in current context.
Definition at line 206 of file screen_ops.c.
References C, CTX_wm_operator_poll_msg_set(), and ED_operator_objectmode().
Referenced by OBJECT_OT_add_named(), OBJECT_OT_drop_named_material(), and OBJECT_OT_transform_to_mouse().
Definition at line 253 of file screen_ops.c.
References C, ed_spacetype_test(), and SPACE_OUTLINER.
Referenced by outliner_id_operation_itemf(), outliner_operation_tree_element_poll(), OUTLINER_OT_animdata_operation(), OUTLINER_OT_collection_drop(), OUTLINER_OT_constraint_operation(), OUTLINER_OT_datastack_drop(), OUTLINER_OT_delete(), OUTLINER_OT_expanded_toggle(), OUTLINER_OT_highlight_update(), OUTLINER_OT_id_copy(), OUTLINER_OT_id_delete(), OUTLINER_OT_id_paste(), OUTLINER_OT_id_remap(), OUTLINER_OT_item_activate(), OUTLINER_OT_item_drag_drop(), OUTLINER_OT_item_openclose(), OUTLINER_OT_item_rename(), OUTLINER_OT_lib_reload(), OUTLINER_OT_lib_relocate(), OUTLINER_OT_material_drop(), OUTLINER_OT_modifier_operation(), OUTLINER_OT_object_operation(), OUTLINER_OT_operation(), OUTLINER_OT_parent_clear(), OUTLINER_OT_parent_drop(), OUTLINER_OT_scene_drop(), OUTLINER_OT_scene_operation(), OUTLINER_OT_scroll_page(), OUTLINER_OT_select_all(), OUTLINER_OT_select_box(), OUTLINER_OT_select_walk(), OUTLINER_OT_show_active(), OUTLINER_OT_show_hierarchy(), and OUTLINER_OT_show_one_level().
Definition at line 258 of file screen_ops.c.
References C, CTX_data_edit_object(), ED_object_active_context(), ed_spacetype_test(), and SPACE_OUTLINER.
Definition at line 530 of file screen_ops.c.
References BKE_object_pose_armature_get(), C, CTX_data_active_object(), Object::mode, NULL, OB_MODE_ALL_WEIGHT_PAINT, and OB_MODE_EDIT.
Referenced by armature_layers_poll(), ED_keymap_armature(), ED_operator_posemode_local(), POSE_OT_armature_apply(), POSE_OT_autoside_names(), POSE_OT_blend_to_neighbors(), POSE_OT_breakdown(), POSE_OT_copy(), POSE_OT_hide(), POSE_OT_loc_clear(), POSE_OT_paste(), POSE_OT_propagate(), POSE_OT_push(), POSE_OT_push_rest(), POSE_OT_quaternions_flip(), POSE_OT_relax(), POSE_OT_relax_rest(), POSE_OT_reveal(), POSE_OT_rot_clear(), POSE_OT_rotation_mode_set(), POSE_OT_scale_clear(), POSE_OT_select_all(), POSE_OT_select_constraint_target(), POSE_OT_select_grouped(), POSE_OT_select_hierarchy(), POSE_OT_select_linked(), POSE_OT_select_mirror(), POSE_OT_select_parent(), POSE_OT_transforms_clear(), POSE_OT_user_transforms_clear(), POSE_OT_visual_transform_apply(), pose_select_linked_pick_poll(), poselib_add_poll(), and POSELIB_OT_new().
Allows for pinned pose objects to be used in the object buttons and the non-active pose object to be used in the 3D view.
Definition at line 517 of file screen_ops.c.
References BKE_object_pose_context_check(), C, ED_pose_object_from_context(), Object::mode, and OB_MODE_EDIT.
Referenced by pose_group_poll(), POSE_OT_group_deselect(), and POSE_OT_group_select().
Definition at line 494 of file screen_ops.c.
References C, ED_object_active_context(), and ed_operator_posemode_exclusive_ex().
Referenced by POSE_OT_bone_layers(), POSE_OT_constraint_add(), POSE_OT_constraint_add_with_targets(), POSE_OT_constraints_copy(), POSE_OT_ik_add(), POSE_OT_paths_calculate(), POSE_OT_paths_clear(), POSE_OT_paths_range_update(), and pose_update_paths_poll().
Definition at line 546 of file screen_ops.c.
References BKE_id_is_editable(), BKE_object_pose_armature_get(), C, CTX_data_active_object(), CTX_data_main(), Object::data, ED_operator_posemode(), bArmature::id, and Object::id.
Referenced by POSE_OT_flip_names().
Definition at line 230 of file screen_ops.c.
References C, CTX_wm_operator_poll_msg_set(), and CTX_wm_region_view3d().
Referenced by OBJECT_OT_transform_axis_target(), SCREEN_OT_region_quadview(), TRANSFORM_OT_bend(), view3d_navigation_poll_impl(), VIEW3D_OT_clip_border(), VIEW3D_OT_cursor3d(), VIEW3D_OT_fly(), VIEW3D_OT_snap_cursor_to_grid(), VIEW3D_OT_snap_selected_to_grid(), VIEW3D_OT_view_all(), VIEW3D_OT_view_lock_clear(), VIEW3D_OT_view_lock_to_active(), VIEW3D_OT_walk(), and view3d_selectable_data().
Definition at line 91 of file screen_ops.c.
References C, CTX_wm_region(), CTX_wm_screen(), CTX_wm_window(), and NULL.
Referenced by annotation_draw_poll(), drop_name_poll(), gpencil_draw_poll(), gpencil_fill_poll(), UI_OT_button_string_clear(), UI_OT_unset_property_button(), and WM_OT_doc_view_manual_ui_context().
Definition at line 168 of file screen_ops.c.
References C, CTX_data_scene(), and scene.
Referenced by VIEW3D_OT_copybuffer().
Definition at line 177 of file screen_ops.c.
References BKE_id_is_editable(), C, CTX_data_main(), CTX_data_scene(), Scene::id, NULL, and scene.
Referenced by CURVE_OT_primitive_bezier_circle_add(), CURVE_OT_primitive_bezier_curve_add(), CURVE_OT_primitive_nurbs_circle_add(), CURVE_OT_primitive_nurbs_curve_add(), CURVE_OT_primitive_nurbs_path_add(), drop_world_poll(), ED_operator_sequencer_active_editable(), MESH_OT_primitive_circle_add(), MESH_OT_primitive_cone_add(), MESH_OT_primitive_cube_add(), MESH_OT_primitive_cylinder_add(), MESH_OT_primitive_grid_add(), MESH_OT_primitive_ico_sphere_add(), MESH_OT_primitive_monkey_add(), MESH_OT_primitive_plane_add(), MESH_OT_primitive_uv_sphere_add(), MESH_OT_separate(), OBJECT_OT_location_clear(), OBJECT_OT_metaball_add(), OBJECT_OT_origin_clear(), OBJECT_OT_origin_set(), OBJECT_OT_rotation_clear(), OBJECT_OT_scale_clear(), OBJECT_OT_visual_transform_apply(), SURFACE_OT_primitive_nurbs_surface_circle_add(), SURFACE_OT_primitive_nurbs_surface_curve_add(), SURFACE_OT_primitive_nurbs_surface_cylinder_add(), SURFACE_OT_primitive_nurbs_surface_sphere_add(), SURFACE_OT_primitive_nurbs_surface_surface_add(), SURFACE_OT_primitive_nurbs_surface_torus_add(), VIEW3D_OT_camera_to_view_selected(), and VIEW3D_OT_pastebuffer().
When mouse is over area-edge.
Definition at line 153 of file screen_ops.c.
References bScreen::active_region, C, CTX_wm_screen(), CTX_wm_window(), and NULL.
Referenced by SCREEN_OT_area_move(), and SCREEN_OT_area_options().
Definition at line 119 of file screen_ops.c.
References C, CTX_wm_screen(), CTX_wm_window(), and NULL.
Referenced by ED_operator_screenactive_nobackground(), ED_OT_undo_push(), ed_undo_is_init_and_screenactive_poll(), join_shapes_poll(), object_join_poll(), RENDER_OT_opengl(), RENDER_OT_render(), RENDER_OT_view_show(), repeat_history_poll(), screen_active_editable(), SCREEN_OT_animation_cancel(), SCREEN_OT_back_to_previous(), SCREEN_OT_screen_set(), SCREEN_OT_workspace_cycle(), TRANSFORM_OT_mirror(), TRANSFORM_OT_push_pull(), TRANSFORM_OT_resize(), TRANSFORM_OT_rotate(), TRANSFORM_OT_tosphere(), TRANSFORM_OT_trackball(), TRANSFORM_OT_transform(), TRANSFORM_OT_translate(), and transform_shear_poll().
Definition at line 130 of file screen_ops.c.
References C, ED_operator_screenactive(), and G.
Referenced by SCREEN_OT_drivers_editor_show(), SCREEN_OT_info_log_show(), and SCREEN_OT_userpref_show().
Definition at line 334 of file screen_ops.c.
References C, ed_spacetype_test(), and SPACE_SEQ.
Referenced by sequencer_editing_initialized_and_active(), SEQUENCER_OT_duplicate(), SEQUENCER_OT_paste(), SEQUENCER_OT_select(), SEQUENCER_OT_select_box(), SEQUENCER_OT_select_linked_pick(), SEQUENCER_OT_select_side_of_frame(), SEQUENCER_OT_swap_data(), SEQUENCER_OT_view_all(), SEQUENCER_OT_view_all_preview(), SEQUENCER_OT_view_frame(), SEQUENCER_OT_view_zoom_ratio(), sequencer_split_invoke(), and TRANSFORM_OT_seq_slide().
Definition at line 339 of file screen_ops.c.
References C, ED_operator_scene_editable(), ed_spacetype_test(), and SPACE_SEQ.
Referenced by SEQUENCER_OT_effect_strip_add(), SEQUENCER_OT_image_strip_add(), SEQUENCER_OT_mask_strip_add(), SEQUENCER_OT_movie_strip_add(), SEQUENCER_OT_movieclip_strip_add(), SEQUENCER_OT_scene_strip_add(), SEQUENCER_OT_scene_strip_add_new(), and SEQUENCER_OT_sound_strip_add().
Definition at line 292 of file screen_ops.c.
References C, ed_spacetype_test(), and SPACE_SPREADSHEET.
Referenced by SPREADSHEET_OT_add_row_filter_rule(), and SPREADSHEET_OT_remove_row_filter_rule().
Wrapper for ED_space_image_show_uvedit.
Definition at line 557 of file screen_ops.c.
References C, CTX_data_edit_object(), CTX_wm_space_image(), and ED_space_image_show_uvedit().
Referenced by ED_keymap_uvedit(), image_view_selected_poll(), UV_OT_align(), UV_OT_average_islands_scale(), UV_OT_hide(), UV_OT_mark_seam(), UV_OT_minimize_stretch(), UV_OT_pack_islands(), UV_OT_pin(), UV_OT_remove_doubles(), UV_OT_reveal(), UV_OT_rip(), UV_OT_seams_from_islands(), UV_OT_select(), UV_OT_select_all(), UV_OT_select_edge_ring(), UV_OT_select_linked(), UV_OT_select_linked_pick(), UV_OT_select_loop(), UV_OT_select_overlap(), UV_OT_select_pinned(), UV_OT_select_split(), UV_OT_stitch(), and UV_OT_weld().
Definition at line 564 of file screen_ops.c.
References C, CTX_data_edit_object(), CTX_wm_space_image(), and ED_space_image_show_uvedit().
Referenced by ED_space_image_cursor_poll(), UV_OT_select_box(), UV_OT_select_circle(), UV_OT_select_lasso(), UV_OT_select_less(), UV_OT_select_mode(), UV_OT_select_more(), UV_OT_select_similar(), UV_OT_shortest_path_pick(), UV_OT_shortest_path_select(), UV_OT_snap_cursor(), UV_OT_snap_selected(), and uv_sculpt_stroke_poll().
Definition at line 571 of file screen_ops.c.
References BKE_editmesh_from_object(), BMEditMesh::bm, C, CTX_data_edit_object(), NULL, OB_MESH, BMesh::totface, and Object::type.
Referenced by uv_from_view_poll(), UV_OT_cube_project(), UV_OT_cylinder_project(), UV_OT_reset(), UV_OT_smart_project(), UV_OT_sphere_project(), and UV_OT_unwrap().
Definition at line 225 of file screen_ops.c.
References C, ed_spacetype_test(), and SPACE_VIEW3D.
Referenced by armature_select_linked_pick_poll(), CURVE_OT_pen(), ED_operator_editmesh_view3d(), EDBM_view3d_poll(), gpencil_selectmode_toggle_poll(), gpencil_strokes_edit3d_poll(), gpencil_strokes_merge_poll(), gpencil_transform_fill_poll(), object_hide_poll(), OBJECT_OT_hide_collection(), pose_select_linked_pick_poll(), TRANSFORM_OT_select_orientation(), VIEW3D_OT_clear_render_border(), VIEW3D_OT_localview(), VIEW3D_OT_navigate(), VIEW3D_OT_object_mode_pie_or_toggle(), VIEW3D_OT_render_border(), VIEW3D_OT_select(), VIEW3D_OT_smoothview(), VIEW3D_OT_snap_cursor_to_active(), VIEW3D_OT_snap_cursor_to_center(), VIEW3D_OT_snap_cursor_to_selected(), VIEW3D_OT_snap_selected_to_active(), VIEW3D_OT_snap_selected_to_cursor(), VIEW3D_OT_toggle_shading(), VIEW3D_OT_toggle_xray(), and WM_OT_xr_session_toggle().
Definition at line 5669 of file screen_ops.c.
References SCREEN_OT_actionzone(), SCREEN_OT_animation_cancel(), SCREEN_OT_animation_play(), SCREEN_OT_animation_step(), SCREEN_OT_area_close(), SCREEN_OT_area_dupli(), SCREEN_OT_area_join(), SCREEN_OT_area_move(), SCREEN_OT_area_options(), SCREEN_OT_area_split(), SCREEN_OT_area_swap(), SCREEN_OT_back_to_previous(), SCREEN_OT_delete(), SCREEN_OT_drivers_editor_show(), SCREEN_OT_frame_jump(), SCREEN_OT_frame_offset(), SCREEN_OT_header_toggle_menus(), SCREEN_OT_info_log_show(), SCREEN_OT_keyframe_jump(), SCREEN_OT_marker_jump(), SCREEN_OT_new(), SCREEN_OT_redo_last(), SCREEN_OT_region_blend(), SCREEN_OT_region_context_menu(), SCREEN_OT_region_flip(), SCREEN_OT_region_quadview(), SCREEN_OT_region_scale(), SCREEN_OT_region_toggle(), SCREEN_OT_repeat_history(), SCREEN_OT_repeat_last(), SCREEN_OT_screen_full_area(), SCREEN_OT_screen_set(), SCREEN_OT_screenshot(), SCREEN_OT_screenshot_area(), SCREEN_OT_space_context_cycle(), SCREEN_OT_space_type_set_or_cycle(), SCREEN_OT_spacedata_cleanup(), SCREEN_OT_userpref_show(), SCREEN_OT_workspace_cycle(), and WM_operatortype_append().
Referenced by ED_spacetypes_init().
Workspace key-maps.
Definition at line 619 of file workspace_edit.c.
References WM_operatortype_append(), WORKSPACE_OT_add(), WORKSPACE_OT_append_activate(), WORKSPACE_OT_delete(), WORKSPACE_OT_duplicate(), WORKSPACE_OT_reorder_to_back(), WORKSPACE_OT_reorder_to_front(), and WORKSPACE_OT_scene_pin_toggle().
Referenced by ED_spacetypes_init().
Update frame rate info for viewport drawing.
Definition at line 1570 of file screen_edit.c.
References bScreen::animtimer, C, CTX_data_scene(), CTX_wm_screen(), Scene::fps_info, ScreenFrameRateInfo::lredrawtime, wmTimer::ltime, MEM_callocN, MEM_SAFE_FREE, NULL, ScreenFrameRateInfo::redrawtime, scene, and USER_SHOW_FPS.
Referenced by screen_animation_step_invoke().
Definition at line 5311 of file screen_ops.c.
References ARegion::alignment, CLAMP, wmTimer::customdata, wmTimer::duration, float(), RegionAlphaInfo::hidden, if(), NULL, ARegion::prev, ARegion::regiontimer, RGN_SPLIT_PREV, TIMEOUT, and TIMESTEP.
Referenced by wm_draw_region_blend().
Definition at line 3774 of file area.c.
References ED_region_visible_rect(), GPU_COMP_I32, GPU_FETCH_INT_TO_FLOAT, GPU_SHADER_2D_UNIFORM_COLOR, GPU_vertformat_attr_add(), immBindBuiltinProgram(), immRecti(), immUnbindProgram(), immUniformColor4ub(), immVertexFormat(), pos, UI_DPI_FAC, ARegion::winx, and rcti::ymin.
Referenced by draw_image_cache(), and draw_movieclip_cache().
void ED_region_cache_draw_cached_segments | ( | struct ARegion * | region, |
int | num_segments, | ||
const int * | points, | ||
int | sfra, | ||
int | efra | ||
) |
Definition at line 3813 of file area.c.
References Freestyle::a, ED_region_visible_rect(), float(), GPU_COMP_I32, GPU_FETCH_INT_TO_FLOAT, GPU_SHADER_2D_UNIFORM_COLOR, GPU_vertformat_attr_add(), immBindBuiltinProgram(), immRecti(), immUnbindProgram(), immUniformColor4ub(), immVertexFormat(), pos, UI_DPI_FAC, ARegion::winx, x2, and rcti::ymin.
Referenced by draw_image_cache(), and draw_movieclip_cache().
Definition at line 3788 of file area.c.
References BLF_draw(), BLF_position(), BLF_size(), BLF_width_and_height(), BLI_snprintf(), GPU_COMP_I32, GPU_FETCH_INT_TO_FLOAT, GPU_SHADER_2D_UNIFORM_COLOR, GPU_vertformat_attr_add(), immBindBuiltinProgram(), immRecti(), immUnbindProgram(), immUniformThemeColor(), immVertexFormat(), pos, TH_CFRAME, TH_TEXT, UI_FontThemeColor(), UI_style_get(), uiFontStyle::uifont_id, uiStyle::widget, x, and y.
Referenced by draw_image_cache(), and draw_movieclip_cache().
Referenced by ED_screen_set_active_region().
Definition at line 2067 of file area.c.
References blender::compositor::area(), ARegionType::cursor, ARegion::gizmo_map, NULL, ARegion::type, WM_CURSOR_DEFAULT, WM_cursor_set(), WM_cursor_set_from_tool(), and WM_gizmomap_cursor_set().
Referenced by region_cursor_set_ex().
Only exported for WM.
Definition at line 517 of file area.c.
References ARegion::alignment, blender::compositor::area(), area_is_pseudo_minimized(), BLI_thread_frand(), C, color, wmRegionMessageSubscribeParams::context, CTX_data_scene(), CTX_wm_area(), CTX_wm_manager(), CTX_wm_window(), CTX_wm_workspace(), ARegion::do_draw, ARegionType::do_lock, ARegionType::draw, ARegion::drawrct, ED_area_is_global(), ED_region_do_msg_notify_tag_redraw(), ED_region_draw_cb_draw(), ED_region_message_subscribe(), ED_region_pixelspace(), ELEM, fb(), G, GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_framebuffer_active_get(), GPU_framebuffer_bind(), GPU_line_width(), GPU_SHADER_2D_UNIFORM_COLOR, GPU_vertformat_attr_add(), ARegion::headerstr, bScreen::id, imm_draw_box_wire_2d(), immBindBuiltinProgram(), immRectf(), immUnbindProgram(), immUniformColor4f(), immUniformColor4fv(), immVertexFormat(), wmWindowManager::message_bus, NULL, wmMsgSubscribeValue::owner, pos, ptr, region_draw_azones(), region_draw_emboss(), REGION_DRAW_POST_PIXEL, region_draw_status_text(), REGION_EMBOSS_LEFT, REGION_EMBOSS_RIGHT, ARegionType::regionid, ARegion::regiontype, RGN_ALIGN_QSPLIT, RGN_DRAWING, RGN_TYPE_CHANNELS, RGN_TYPE_TOOLS, RGN_TYPE_UI, RGN_TYPE_WINDOW, RNA_pointer_create(), scene, SCREENFULL, bScreen::state, TH_EDITOR_OUTLINE, ARegion::type, UI_blocklist_free_inactive(), UI_GetThemeColor3fv(), UI_SetTheme(), UI_ThemeClearColor(), ARegion::winrct, WM_msg_subscribe_rna(), WM_msgbus_clear_by_owner(), WM_window_get_active_screen(), wmOrtho2_region_pixelspace(), wmPartialViewport(), rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by ui_region_redraw_immediately(), wm_draw_region_test(), and wm_draw_window_offscreen().
Only exported for WM.
Definition at line 494 of file area.c.
References blender::compositor::area(), area_is_pseudo_minimized(), C, CTX_wm_area(), ARegion::do_draw, ARegionType::do_lock, ARegion::flag, ARegionType::layout, ARegionType::regionid, RGN_DRAWING, RGN_FLAG_SEARCH_FILTER_UPDATE, ARegion::type, and UI_SetTheme().
Referenced by ui_region_redraw_immediately(), and wm_draw_window_offscreen().
void ED_region_do_listen | ( | struct wmRegionListenerParams * | params | ) |
Only exported for WM.
Definition at line 127 of file area.c.
References wmNotifier::category, wmNotifier::data, ED_region_tag_redraw(), LISTBASE_FOREACH, ARegionType::listener, NC_WINDOW, NC_WM, ND_FILEREAD, params, ARegion::type, UI_block_views_listen(), ARegion::ui_lists, and ARegion::uiblocks.
Referenced by wm_event_do_notifiers().
void ED_region_do_msg_notify_tag_redraw | ( | struct bContext * | C, |
struct wmMsgSubscribeKey * | msg_key, | ||
struct wmMsgSubscribeValue * | msg_val | ||
) |
Referenced by buttons_header_region_message_subscribe(), buttons_navigation_bar_region_message_subscribe(), ED_region_generic_tools_region_message_subscribe(), graph_region_message_subscribe(), info_header_region_message_subscribe(), nla_channel_region_message_subscribe(), nla_main_region_message_subscribe(), outliner_main_region_message_subscribe(), saction_channel_region_message_subscribe(), saction_main_region_message_subscribe(), sequencer_main_region_message_subscribe(), statusbar_header_region_message_subscribe(), topbar_header_region_message_subscribe(), ui_block_message_subscribe(), view3d_header_region_message_subscribe(), and view3d_main_region_message_subscribe().
Definition at line 686 of file screen_edit.c.
References C, CTX_wm_manager(), CTX_wm_region(), CTX_wm_region_set(), CTX_wm_window(), ARegionType::exit, ARegion::handlers, ARegion::headerstr, MEM_SAFE_FREE, wmWindowManager::message_bus, NULL, ARegion::regiontimer, ARegion::type, WM_draw_region_free(), WM_event_modal_handler_region_replace(), WM_event_remove_handlers(), WM_event_remove_timer(), and WM_msgbus_clear_by_owner().
Referenced by ED_area_exit(), ED_region_remove(), ED_screen_exit(), and ui_region_temp_remove().
Externally called for floating regions like menus.
Definition at line 2057 of file area.c.
References ARegion::alignment, BLI_assert, region_subwindow(), region_update_rect(), and RGN_ALIGN_FLOAT.
Referenced by ED_area_type_hud_ensure(), ui_popup_block_refresh(), ui_searchbox_create_generic_ex(), and ui_tooltip_create_with_data().
void ED_region_generic_tools_region_message_subscribe | ( | const struct wmRegionMessageSubscribeParams * | params | ) |
Callback for ARegionType.message_subscribe
Referenced by ED_spacetype_image(), ED_spacetype_node(), ED_spacetype_sequencer(), and ED_spacetype_view3d().
int ED_region_generic_tools_region_snap_size | ( | const struct ARegion * | region, |
int | size, | ||
int | axis | ||
) |
Callback for ARegionType.snap_size
Referenced by ED_spacetype_image(), ED_spacetype_node(), ED_spacetype_sequencer(), and ED_spacetype_view3d().
int ED_region_global_size_y | ( | void | ) |
For now we just assume all global areas are made up out of horizontal bars with the same size. A fixed size could be stored in ARegion instead if needed.
Definition at line 3513 of file area.c.
References ED_area_headersize().
Referenced by region_rect_recursive().
Definition at line 3619 of file area.c.
References CLAMP, color, floorf, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_PRIM_LINES, GPU_SHADER_2D_FLAT_COLOR, GPU_SHADER_2D_UNIFORM_COLOR, GPU_vertformat_attr_add(), GPU_vertformat_clear(), immAttr3fv(), immBegin(), immBindBuiltinProgram(), immEnd(), immRectf(), immUnbindProgram(), immUniformThemeColorBlendShade(), immVertex2f(), immVertexFormat(), pos, TH_BACK, TH_GRID, UI_GetThemeColor3fv(), UI_GetThemeColor4fv(), UI_GetThemeColorShade3fv(), UI_view2d_view_to_region(), ARegion::v2d, x2, and y1.
Referenced by clip_draw_main().
Referenced by action_header_region_draw(), buttons_header_region_draw(), clip_header_region_draw(), console_header_region_draw(), file_header_region_draw(), graph_header_region_draw(), image_header_region_draw(), info_header_region_draw(), nla_header_region_draw(), blender::ed::space_node::node_header_region_draw(), outliner_header_region_draw(), script_header_region_draw(), sequencer_header_region_draw(), spreadsheet_header_region_draw(), text_header_region_draw(), userpref_header_region_draw(), and view3d_header_region_draw().
Referenced by ED_spacetype_statusbar(), and ED_spacetype_topbar().
Definition at line 3417 of file area.c.
References UI_view2d_region_reinit(), ARegion::v2d, V2D_COMMONVIEW_HEADER, ARegion::winx, and ARegion::winy.
Referenced by action_header_region_init(), buttons_header_region_init(), clip_header_region_init(), console_header_region_init(), file_header_region_init(), graph_header_region_init(), image_header_region_init(), info_header_region_init(), nla_header_region_init(), blender::ed::space_node::node_header_region_init(), outliner_header_region_init(), script_header_region_init(), sequencer_header_region_init(), spreadsheet_footer_region_init(), spreadsheet_header_region_init(), statusbar_header_region_init(), text_header_region_init(), topbar_header_region_init(), userpref_header_region_init(), and view3d_header_region_init().
Referenced by ED_spacetype_statusbar(), and ED_spacetype_topbar().
Definition at line 3612 of file area.c.
References IMB_metadata_foreach(), MetadataPanelDrawContext::layout, and metadata_panel_draw_field().
Referenced by metadata_panel_context_draw().
void ED_region_info_draw | ( | struct ARegion * | region, |
const char * | text, | ||
float | fill_color[4], | ||
bool | full_redraw | ||
) |
Definition at line 3591 of file area.c.
References ED_region_info_draw_multiline(), and NULL.
Referenced by draw_movieclip_notes(), and draw_render_info().
void ED_region_info_draw_multiline | ( | ARegion * | region, |
const char * | text_array[], | ||
float | fill_color[4], | ||
bool | full_redraw | ||
) |
Definition at line 3518 of file area.c.
References BLF_clipping(), BLF_CLIPPING, BLF_disable(), BLF_draw(), BLF_DRAW_STR_DUMMY_MAX, BLF_enable(), BLF_position(), BLF_width(), BLI_rcti_size_x(), BLI_rcti_size_y(), ED_region_visible_rect(), GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_COMP_I32, GPU_FETCH_INT_TO_FLOAT, GPU_scissor(), GPU_scissor_get(), GPU_SHADER_2D_UNIFORM_COLOR, GPU_vertformat_attr_add(), immBindBuiltinProgram(), immRecti(), immUnbindProgram(), immUniformColor4fv(), immVertexFormat(), min_ii(), offset, pos, TH_TEXT_HI, UI_FontThemeColor(), UI_style_get_dpi(), UI_UNIT_Y, uiFontStyle::uifont_id, uiStyle::widget, rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by ED_region_info_draw().
bool ED_region_is_overlap | ( | int | spacetype, |
int | regiontype | ||
) |
Overlapping regions only in the following restricted cases.
Definition at line 1248 of file area.c.
References ELEM, RGN_TYPE_FOOTER, RGN_TYPE_HUD, RGN_TYPE_TOOL_HEADER, RGN_TYPE_TOOL_PROPS, RGN_TYPE_TOOLS, RGN_TYPE_UI, SPACE_IMAGE, SPACE_NODE, SPACE_VIEW3D, and USER_REGION_OVERLAP.
Referenced by ED_region_overlap_isect_any_xy(), region_draw_status_text(), region_rect_recursive(), and UI_ThemeGetColorPtr().
void ED_region_message_subscribe | ( | struct wmRegionMessageSubscribeParams * | params | ) |
Generate subscriptions for this region.
Definition at line 3838 of file area.c.
References BLI_listbase_is_empty(), C, ARegion::gizmo_map, ARegionType::message_subscribe, NULL, params, ARegion::type, UI_region_message_subscribe(), ARegion::uiblocks, and WM_gizmomap_message_subscribe().
Referenced by ED_region_do_draw().
Definition at line 50 of file area_query.c.
References blender::compositor::area(), ED_region_is_overlap(), ED_region_overlap_isect_xy(), and LISTBASE_FOREACH.
Referenced by image_drop_poll(), view3d_drop_id_in_main_region_poll_get_id_type(), view3d_drop_in_main_region_poll(), and view3d_ima_drop_poll().
Definition at line 22 of file area_query.c.
References BLI_assert, BLI_rctf_isect_x(), View2D::mask, ARegion::overlap, View2D::tot, UI_view2d_region_to_view_x(), ARegion::v2d, ARegion::winrct, rcti::xmax, and rcti::xmin.
Referenced by ED_region_overlap_isect_xy().
Definition at line 93 of file area_query.c.
References BLI_assert, View2D::mask, ARegion::overlap, View2D::tot, UI_view2d_region_to_view_x(), ARegion::v2d, ARegion::winrct, rcti::xmax, rctf::xmax, rcti::xmin, and rctf::xmin.
Referenced by ED_region_contains_xy(), and ED_region_overlap_isect_xy_with_margin().
Definition at line 44 of file area_query.c.
References ED_region_overlap_isect_x(), and ED_region_overlap_isect_y().
Referenced by ED_region_overlap_isect_any_xy(), and v3d_cursor_snap_poll_fn().
bool ED_region_overlap_isect_xy_with_margin | ( | const ARegion * | region, |
const int | event_xy[2], | ||
int | margin | ||
) |
Definition at line 121 of file area_query.c.
References ED_region_overlap_isect_x_with_margin(), and ED_region_overlap_isect_y_with_margin().
Referenced by ED_region_contains_xy().
Definition at line 33 of file area_query.c.
References BLI_assert, BLI_rctf_isect_y(), View2D::mask, ARegion::overlap, View2D::tot, UI_view2d_region_to_view_y(), ARegion::v2d, ARegion::winrct, rcti::ymax, and rcti::ymin.
Referenced by ED_region_overlap_isect_xy().
Definition at line 107 of file area_query.c.
References BLI_assert, View2D::mask, ARegion::overlap, View2D::tot, UI_view2d_region_to_view_y(), ARegion::v2d, ARegion::winrct, rcti::ymax, rctf::ymax, rcti::ymin, and rctf::ymin.
Referenced by ED_region_contains_xy(), and ED_region_overlap_isect_xy_with_margin().
Definition at line 62 of file area_query.c.
References ARegion::alignment, BLI_assert_msg, RGN_ALIGN_ENUM_FROM_MASK, RGN_ALIGN_LEFT, RGN_ALIGN_RIGHT, round_fl_to_int(), UI_panel_category_is_visible(), UI_PANEL_CATEGORY_MARGIN_WIDTH, UI_view2d_scale_get_x(), ARegion::v2d, ARegion::winrct, rcti::xmax, and rcti::xmin.
Referenced by ED_region_panel_category_gutter_isect_xy().
Definition at line 84 of file area_query.c.
References BLI_rcti_isect_pt_v(), and ED_region_panel_category_gutter_calc_rect().
Referenced by ED_region_contains_xy().
Referenced by action_buttons_area_draw(), clip_properties_region_draw(), clip_tools_region_draw(), file_execution_region_draw(), file_tools_region_draw(), file_ui_region_draw(), graph_buttons_region_draw(), image_tools_region_draw(), nla_buttons_region_draw(), blender::ed::space_node::node_buttons_region_draw(), blender::ed::space_node::node_toolbar_region_draw(), sequencer_buttons_region_draw(), sequencer_tools_region_draw(), spreadsheet_dataset_region_draw(), text_properties_region_draw(), and userpref_navigation_region_draw().
void ED_region_panels_ex | ( | const struct bContext * | C, |
struct ARegion * | region, | ||
const char * | contexts[] | ||
) |
Referenced by view3d_tools_region_draw().
void ED_region_panels_init | ( | struct wmWindowManager * | wm, |
struct ARegion * | region | ||
) |
Definition at line 3153 of file area.c.
References wmWindowManager::defaultconf, ARegion::handlers, UI_view2d_region_reinit(), ARegion::v2d, V2D_COMMONVIEW_PANELS_UI, ARegion::winx, ARegion::winy, WM_event_add_keymap_handler(), and WM_keymap_ensure().
Referenced by action_buttons_area_init(), buttons_main_region_init(), buttons_navigation_bar_region_init(), clip_properties_region_init(), clip_tools_region_init(), ED_spacetype_spreadsheet(), file_execution_region_init(), file_tools_region_init(), file_ui_region_init(), graph_buttons_region_init(), hud_region_init(), image_buttons_region_init(), image_tools_region_init(), nla_buttons_region_init(), blender::ed::space_node::node_buttons_region_init(), blender::ed::space_node::node_toolbar_region_init(), sequencer_buttons_region_init(), sequencer_tools_region_init(), spreadsheet_sidebar_init(), text_properties_region_init(), userpref_execute_region_init(), userpref_main_region_init(), userpref_navigation_region_init(), view3d_buttons_region_init(), and view3d_tools_region_init().
void ED_region_panels_layout_ex | ( | const struct bContext * | C, |
struct ARegion * | region, | ||
struct ListBase * | paneltypes, | ||
const char * | contexts[], | ||
const char * | category_override | ||
) |
contexts | A NULL terminated array of context strings to match against. Matching against any of these strings will draw the panel. Can be NULL to skip context checks. |
Referenced by buttons_main_region_layout_properties(), ED_view3d_buttons_region_layout_ex(), image_buttons_region_layout(), and userpref_main_region_layout().
bool ED_region_property_search | ( | const struct bContext * | C, |
struct ARegion * | region, | ||
struct ListBase * | paneltypes, | ||
const char * | contexts[], | ||
const char * | category_override | ||
) |
Build the same panel list as ED_region_panels_layout_ex and checks whether any of the panels contain a search result based on the area / region's search filter.
Referenced by property_search_for_context().
Utility to exit and free an area-region. Screen level regions (menus/popups) need to be treated slightly differently, see ui_region_temp_remove().
Definition at line 677 of file screen_edit.c.
References blender::compositor::area(), BKE_area_region_free(), BLI_freelinkN(), C, and ED_region_exit().
Referenced by file_ensure_valid_region_state(), and region_quadview_exec().
Set the temporary update flag for property search.
Referenced by buttons_clear_filter_exec().
Definition at line 3872 of file area.c.
References NULL, ARegion::sizex, ARegion::sizey, ARegionType::snap_size, and ARegion::type.
Referenced by reset_exec(), view_zoomdrag_apply(), and view_zoomstep_apply_ex().
int ED_region_snap_size_test | ( | const struct ARegion * | region | ) |
Referenced by reset_exec(), view_zoomdrag_apply(), and view_zoomstep_apply_ex().
Definition at line 655 of file area.c.
References ARegion::do_draw, ARegion::drawrct, RGN_DRAW, RGN_DRAW_EDITOR_OVERLAYS, RGN_DRAW_NO_REBUILD, RGN_DRAW_PARTIAL, and RGN_DRAWING.
Referenced by action_channel_region_listener(), action_header_region_listener(), action_main_region_listener(), action_refresh(), action_region_listener(), animchannels_select_filter_invoke(), annotation_draw_apply_event(), annotation_draw_modal(), asset_view_listener(), axis_set_view(), blender::ed::space_node::backimage_fit_exec(), blender::ed::space_node::backimage_zoom_exec(), buttons_main_region_listener(), center_current_frame_exec(), clip_header_region_listener(), clip_main_region_listener(), clip_properties_region_listener(), clip_props_region_listener(), colorband_tools_dofunc(), console_main_region_listener(), curve_draw_event_add(), curve_draw_modal(), curvemap_buttons_redraw(), curvemap_buttons_zoom_in(), curvemap_buttons_zoom_out(), curvemap_tools_dofunc(), CurveProfile_buttons_zoom_in(), CurveProfile_buttons_zoom_out(), CurveProfile_presets_dofunc(), CurveProfile_tools_dofunc(), datadropper_id_sample_pt(), datadropper_set_draw_callback_region(), depthdropper_depth_sample_pt(), do_item_rename(), dopesheet_view_all_exec(), drop_color_invoke(), dyntopo_detail_size_edit_invoke(), dyntopo_detail_size_edit_modal(), ED_area_status_text(), ED_area_tag_redraw(), ED_area_tag_redraw_regiontype(), ED_area_type_hud_clear(), ED_area_type_hud_ensure(), ED_region_do_listen(), ED_region_do_msg_notify_tag_redraw(), ED_region_tag_redraw_editor_overlays(), ED_slider_modal(), ED_view3d_smooth_view_ex(), edbm_bevel_cancel(), edbm_inset_cancel(), blender::ed::sculpt_paint::AddOperationExecutor::execute(), blender::ed::sculpt_paint::CombOperationExecutor::execute(), blender::ed::sculpt_paint::CurvesEffectOperationExecutor::execute(), blender::ed::sculpt_paint::DeleteOperationExecutor::execute(), blender::ed::sculpt_paint::DensitySubtractOperationExecutor::execute(), blender::ed::sculpt_paint::PinchOperationExecutor::execute(), blender::ed::sculpt_paint::PuffOperationExecutor::execute(), blender::ed::sculpt_paint::SelectionPaintOperationExecutor::execute(), blender::ed::sculpt_paint::SlideOperationExecutor::execute(), blender::ed::sculpt_paint::SmoothOperationExecutor::execute(), blender::ed::sculpt_paint::SnakeHookOperatorExecutor::execute(), eyedropper_modal(), face_select_all_exec(), face_select_hide_exec(), face_vert_reveal_exec(), file_main_region_listener(), file_smoothscroll_invoke(), file_tool_props_region_listener(), file_tools_region_listener(), file_ui_region_listener(), fly_modal(), gpencil_draw_apply_event(), gpencil_draw_modal(), gpencil_sculpt_brush_invoke(), gpencil_sculpt_brush_modal(), gpencil_transform_fill_cancel(), gpencil_vertexpaint_brush_invoke(), gpencil_vertexpaint_brush_modal(), gpencil_weightpaint_brush_invoke(), gpencil_weightpaint_brush_modal(), grab_clone_apply(), graph_region_listener(), graphkeys_snap_cursor_value_exec(), hide_show_exec(), hud_region_layout(), image_buttons_region_listener(), image_header_region_listener(), image_main_region_listener(), image_tools_region_listener(), image_view_all_exec(), image_view_pan_exec(), image_view_pan_exit(), image_view_selected_exec(), image_view_zoom_border_exec(), image_view_zoom_exec(), image_view_zoom_exit(), image_view_zoom_in_exec(), image_view_zoom_invoke(), image_view_zoom_out_exec(), image_view_zoom_ratio_exec(), image_zoom_apply(), info_header_listener(), info_main_region_listener(), knifetool_exit_ex(), knifetool_init(), knifetool_modal(), knifetool_update_mval(), loopcut_finish(), loopcut_modal(), blender::ed::sculpt_paint::min_distance_edit::min_distance_edit_invoke(), blender::ed::sculpt_paint::min_distance_edit::min_distance_edit_modal(), nla_channel_region_listener(), nla_main_region_listener(), nla_region_listener(), blender::ed::space_node::node_insert_offset_modal(), blender::ed::space_node::node_link_exit(), blender::ed::space_node::node_link_modal(), blender::ed::space_node::node_region_listener(), blender::ed::space_node::node_resize_modal(), object_transform_axis_target_invoke(), object_transform_axis_target_modal(), outliner_header_region_listener(), outliner_item_do_activate_from_cursor(), outliner_main_region_listener(), outliner_one_level_exec(), outliner_show_hierarchy_exec(), outliner_tag_redraw_avoid_rebuild_on_open_change(), outliner_toggle_expanded_exec(), paint_2d_redraw(), paint_proj_redraw(), paint_proj_stroke(), paint_select_linked_exec(), paint_select_linked_pick_invoke(), paintface_mouse_select(), panel_activate_state(), pose_slide_modal(), radial_control_modal(), redraw_timer_step(), region_blend_end(), region_blend_invoke(), region_rect_recursive(), region_toggle_exec(), rename_anim_channels(), renamebutton_cb(), reset_exec(), ringsel_exit(), ringsel_init(), run_pyfile_exec(), sclip_zoom_set_factor_exec(), screen_animation_region_tag_redraw(), sculpt_dirty_mask_exec(), SCULPT_flush_update_done(), SCULPT_flush_update_step(), sculpt_mask_expand_modal(), sculpt_set_pivot_position_exec(), SCULPT_tag_update_overlays(), select_anim_channel_keys(), sequencer_buttons_region_listener(), sequencer_main_region_listener(), sequencer_preview_region_listener(), sequencer_view_zoom_ratio_exec(), blender::ed::space_node::snode_bg_viewmove_modal(), spreadsheet_dataset_region_listener(), spreadsheet_header_region_listener(), spreadsheet_main_region_draw(), spreadsheet_main_region_listener(), statusbar_header_region_listener(), stencil_control_modal(), stitch_modal(), text_text_search_exec(), topbar_header_listener(), topbar_main_region_listener(), UI_block_views_listen(), ui_but_pie_menu_apply(), UI_context_update_anim_flag(), ui_do_animate(), ui_do_but_extra_operator_icon(), ui_do_but_HOTKEYEVT(), ui_do_but_textedit(), ui_do_but_textedit_select(), ui_do_but_VIEW_ITEM(), ui_do_button(), ui_do_drag(), ui_drag_toggle_set(), ui_handle_list_event(), ui_handle_panel_category_cycling(), ui_handle_panel_header(), ui_handler_panel_region(), ui_menu_scroll_apply_offset_y(), ui_numedit_apply(), ui_numedit_set_active(), ui_pie_handler(), ui_popup_block_refresh(), ui_popup_translate(), ui_searchbox_create_generic_ex(), ui_searchbox_select(), ui_searchbox_update(), ui_tooltip_create_with_data(), ui_view_item_rename_exec(), uv_sculpt_stroke_modal(), vert_select_all_exec(), vert_select_hide_exec(), vert_select_ungrouped_exec(), view3d_all_exec(), view3d_boxview_copy(), view3d_boxview_sync(), view3d_buttons_region_listener(), view3d_clipping_invoke(), view3d_header_region_listener(), view3d_interactive_add_begin(), view3d_interactive_add_exit(), view3d_interactive_add_modal(), view3d_main_region_listener(), view3d_smoothview_apply_ex(), view_all_exec(), view_center_cursor_exec(), view_pan_exec(), view_pan_exit(), view_selected_exec(), view_zoom_apply(), view_zoom_exec(), view_zoom_exit(), view_zoom_in_exec(), view_zoom_out_exec(), view_zoom_ratio_exec(), viewdolly_apply(), viewdolly_exec(), viewdolly_invoke(), viewmove_apply(), viewops_data_create(), viewops_data_free(), viewpersportho_exec(), viewroll_apply(), viewrotate_apply(), viewzoom_apply_3d(), viewzoom_apply_camera(), viewzoom_exec(), voxel_size_edit_invoke(), voxel_size_edit_modal(), vpaint_stroke_update_step_intern(), walk_modal(), weight_paint_set_exec(), WM_gizmo_do_msg_notify_tag_refresh(), wm_region_tag_draw_on_gizmo_delay_refresh_for_tweak(), and wpaint_stroke_update_step().
Definition at line 667 of file area.c.
References ARegion::do_draw_paintcursor, and RGN_DRAW.
Referenced by view3d_main_region_listener().
Tag editor overlays to be redrawn. If in doubt about which parts need to be redrawn (partial clipping rectangle set), redraw everything.
Definition at line 690 of file area.c.
References ARegion::do_draw, ED_region_tag_redraw(), RGN_DRAW, RGN_DRAW_EDITOR_OVERLAYS, RGN_DRAW_PARTIAL, and RGN_DRAWING.
Referenced by gizmo2d_modal(), gizmo_arrow_modal(), gizmo_cage2d_modal(), gizmo_cage3d_modal(), gizmo_modal(), gizmo_move_modal(), gizmo_preselect_edgering_test_select(), gizmo_preselect_elem_test_select(), gizmo_ruler_modal(), gizmo_select_invoke(), gizmotype_unlink(), view3d_ruler_remove_invoke(), WM_gizmo_group_remove_by_tool(), WM_gizmoconfig_update(), wm_gizmomap_highlight_set(), wm_gizmomap_modal_set(), WM_gizmomaptype_group_init_runtime_with_region(), WM_gizmomaptype_group_unlink(), and wm_region_test_gizmo_do_draw().
Definition at line 674 of file area.c.
References ARegion::do_draw, ARegion::drawrct, RGN_DRAW, RGN_DRAW_EDITOR_OVERLAYS, RGN_DRAW_NO_REBUILD, RGN_DRAW_PARTIAL, and RGN_DRAWING.
Referenced by area_actionzone_refresh_xy(), button_activate_exit(), button_activate_state(), collection_drop_poll(), datastack_drop_poll(), do_outliner_operation_event(), ED_area_tag_redraw_no_rebuild(), ED_screen_set_active_region(), edge_pan_apply_delta(), outliner_box_select_exec(), outliner_deactivate(), outliner_highlight_update(), outliner_item_do_activate_from_cursor(), outliner_main_region_listener(), outliner_scroll_page_exec(), outliner_select_all_exec(), outliner_show_active_exec(), outliner_tag_redraw_avoid_rebuild_on_open_change(), parent_drop_poll(), region_rect_recursive(), scroller_activate_apply(), scroller_activate_exit(), scroller_activate_init(), UI_but_ensure_in_view(), ui_do_but_extra_operator_icons_mousemove(), ui_handle_button_event(), UI_view2d_edge_pan_cancel(), UI_view2d_smooth_view(), UI_view2d_sync(), view2d_smoothview_invoke(), view_pan_apply_ex(), view_zoomdrag_apply(), view_zoomstep_apply_ex(), and wm_region_test_render_do_draw().
void ED_region_tag_redraw_partial | ( | struct ARegion * | region, |
const struct rcti * | rct, | ||
bool | rebuild | ||
) |
Referenced by SCULPT_flush_update_step(), wm_region_test_render_do_draw(), and wpaint_stroke_update_step().
Definition at line 683 of file area.c.
References ARegion::do_draw, and RGN_REFRESH_UI.
Referenced by button_activate_exit(), ED_undo_operator_repeat(), ui_block_region_popup_window_listener(), ui_do_but_SCROLL(), ui_handle_list_event(), UI_popup_block_close(), UI_popup_handlers_remove(), and uilist_resize_update_cb().
Exported to all editors, uses fading default.
Definition at line 2117 of file area.c.
References C, and region_toggle_hidden().
Referenced by animchannels_select_filter_invoke(), region_toggle_exec(), and text_text_search_exec().
Call to move a popup window (keep OpenGL context free!)
Definition at line 2052 of file area.c.
References region_update_rect().
Referenced by ui_popup_block_refresh(), and ui_popup_translate().
void ED_region_visibility_change_update | ( | struct bContext * | C, |
struct ScrArea * | area, | ||
struct ARegion * | region | ||
) |
For use after changing visibility of regions.
Definition at line 2086 of file area.c.
References blender::compositor::area(), C, CTX_wm_manager(), CTX_wm_window(), ED_area_init(), ED_area_tag_redraw(), ARegion::flag, ARegion::handlers, RGN_FLAG_HIDDEN, UI_region_free_active_but_all(), and WM_event_remove_handlers().
Referenced by ED_drivers_editor_init(), region_toggle_hidden(), and userpref_show_exec().
void ED_region_visibility_change_update_animated | ( | struct bContext * | C, |
struct ScrArea * | area, | ||
struct ARegion * | region | ||
) |
Definition at line 5362 of file screen_ops.c.
References ARegion::alignment, blender::compositor::area(), RegionAlphaInfo::area, C, RegionAlphaInfo::child_region, CTX_wm_manager(), CTX_wm_window(), wmTimer::customdata, ED_area_init(), ARegion::flag, ARegion::handlers, RegionAlphaInfo::hidden, MEM_callocN, ARegion::next, RegionAlphaInfo::region, region_blend_end(), ARegion::regiontimer, RGN_FLAG_HIDDEN, RGN_SPLIT_PREV, TIMERREGION, TIMESTEP, WM_event_add_timer(), and WM_event_remove_handlers().
Referenced by region_toggle_hidden().
Definition at line 3763 of file area.c.
References region_visible_rect_calc(), ARegion::runtime, ARegion_Runtime::visible_rect, rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by annotation_draw_modal(), draw_image_cache(), blender::ed::space_node::draw_tree_path(), drawAutoKeyWarning(), DRW_draw_callbacks_post_scene(), DRW_draw_render_loop_2d_ex(), ED_image_draw_info(), ED_mask_draw_frames(), ED_region_cache_draw_background(), ED_region_cache_draw_cached_segments(), ED_region_info_draw_multiline(), ED_space_image_show_cache_and_mval_over(), EEVEE_lookdev_init(), fullscreen_azone_init(), gpencil_draw_modal(), image_main_region_set_view2d(), sequencer_preview_region_draw(), view3d_draw_region_info(), and WIDGETGROUP_navigate_draw_prepare().
bScreen* ED_screen_animation_no_scrub | ( | const struct wmWindowManager * | wm | ) |
int ED_screen_animation_play | ( | struct bContext * | C, |
int | sync, | ||
int | mode | ||
) |
Toggle operator.
Definition at line 4811 of file screen_ops.c.
References bScreen::animtimer, BKE_sound_play_scene(), BKE_sound_stop_scene(), C, CTX_data_ensure_evaluated_depsgraph(), CTX_data_scene(), CTX_wm_manager(), CTX_wm_region(), CTX_wm_screen(), wmTimer::customdata, DEG_get_evaluated_scene(), ED_screen_animation_playing(), ED_screen_animation_timer(), NC_SCENE, ND_FRAME, OPERATOR_FINISHED, bScreen::redraws_flag, ScreenAnimData::region, scene, and WM_event_add_notifier().
Referenced by screen_animation_cancel_exec(), screen_animation_play_exec(), screen_render_invoke(), and wm_event_do_handlers().
bScreen* ED_screen_animation_playing | ( | const struct wmWindowManager * | wm | ) |
Find window that owns the animation timer.
Referenced by blender::ed::space_node::attribute_search_exec_fn(), blender::ed::space_node::attribute_search_update_fn(), DRW_state_is_playback(), ED_annotation_draw_2dimage(), ED_annotation_draw_view2d(), ED_screen_animation_timer(), get_modifier_data(), GPENCIL_cache_init(), gpencil_sculpt_brush_invoke(), gpencil_vertexpaint_brush_invoke(), gpencil_weightpaint_brush_invoke(), initFlyInfo(), initTransInfo(), initWalkInfo(), screen_render_invoke(), sequencer_preview_region_draw(), view3d_smoothview_apply_ex(), viewdolly_modal(), viewmove_modal(), viewroll_modal(), viewrotate_modal(), viewzoom_modal(), wm_event_do_handlers(), and WM_gizmo_context_check_drawstep().
redraws: uses defines from stime->redraws
enable | 1 - forward on, -1 - backwards on, 0 - off. |
Definition at line 1595 of file screen_edit.c.
References ANIMPLAY_FLAG_NO_SYNC, ANIMPLAY_FLAG_REVERSE, ANIMPLAY_FLAG_SYNC, bScreen::animtimer, blender::compositor::area(), C, RenderData::cfra, CTX_data_scene(), CTX_wm_area(), CTX_wm_manager(), CTX_wm_region(), CTX_wm_screen(), CTX_wm_window(), wmTimer::customdata, DEG_id_tag_update(), ED_screen_animation_playing(), ELEM, ScreenAnimData::flag, FPS, ScreenAnimData::from_anim_edit, Scene::id, ID_RECALC_FRAME_CHANGE, MEM_callocN, NC_SCREEN, ND_ANIMPLAY, NULL, PRVRANGEON, RenderData::psfra, Scene::r, ScreenAnimData::redraws, ScreenAnimData::region, scene, ScreenAnimData::sfra, RenderData::sfra, SPACE_ACTION, SPACE_GRAPH, SPACE_NLA, TIMER0, WM_event_add_notifier(), WM_event_add_timer(), and WM_event_remove_timer().
Referenced by ED_screen_animation_play().
Definition at line 1680 of file screen_edit.c.
References bScreen::animtimer, wmTimer::customdata, NULL, ScreenAnimData::redraws, ScreenAnimData::region, TIME_REGION, and time_top_left_3dwindow().
int ED_screen_area_active | ( | const struct bContext * | C | ) |
Referenced by outliner_highlight_update(), and region_background_color_id().
ScrArea* ED_screen_area_find_with_spacedata | ( | const bScreen * | screen, |
const struct SpaceLink * | sl, | ||
bool | only_visible | ||
) |
Definition at line 3498 of file area.c.
References blender::compositor::area(), bScreen::areabase, ListBase::first, GLOBAL_AREA_IS_HIDDEN, and NULL.
Referenced by ED_screen_areas_iter_first().
Change the active screen.
Operator call, WM + Window + screen already existed before
Definition at line 1135 of file screen_edit.c.
References BKE_workspace_active_get(), BKE_workspace_layout_find(), BKE_workspace_layout_screen_get(), C, CTX_data_main(), CTX_wm_screen(), CTX_wm_window(), ED_workspace_screen_change_ensure_unused_layout(), screen_change_prepare(), screen_change_update(), WM_window_set_active_screen(), and wmWindow::workspace_hook.
Referenced by ED_screen_full_newspace(), ED_screen_state_toggle(), ED_workspace_layout_cycle(), wm_event_do_notifiers(), WM_window_open(), and workspace_layout_delete_doit().
void ED_screen_do_listen | ( | struct bContext * | C, |
struct wmNotifier * | note | ||
) |
Definition at line 583 of file screen_edit.c.
References wmNotifier::action, C, wmNotifier::category, CTX_wm_screen(), CTX_wm_window(), wmNotifier::data, bScreen::do_draw, bScreen::do_refresh, NA_EDITED, NC_SCENE, NC_SCREEN, NC_WINDOW, NC_WM, ND_FILEREAD, ND_MODE, and region_cursor_set().
Referenced by wm_event_do_notifiers().
Only for edge lines between areas.
Definition at line 151 of file screen_draw.c.
References blender::compositor::area(), bScreen::areabase, batch, batch_screen_edges_get(), BLI_listbase_is_single(), BLI_rcti_do_minmax_v(), BLI_rcti_init_minmax(), BLI_rcti_size_x(), BLI_rcti_size_y(), col, bScreen::do_draw, drawscredge_area(), GPU_BACKEND_OPENGL, GPU_batch_program_set_builtin(), GPU_batch_uniform_1f, GPU_batch_uniform_1i, GPU_batch_uniform_4fv, GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_DEVICE_INTEL_UHD, GPU_DRIVER_ANY, GPU_flush(), GPU_OS_UNIX, GPU_scissor(), GPU_scissor_test(), GPU_SHADER_2D_AREA_BORDERS, GPU_type_matches_ex(), GPUBatch, LISTBASE_FOREACH, SCREENFULL, bScreen::state, bScreen::temp, TH_EDITOR_OUTLINE, UI_GetThemeColor4fv(), WM_window_get_active_screen(), WM_window_pixels_x(), WM_window_pixels_y(), rcti::xmin, and rcti::ymin.
Referenced by wm_draw_window_onscreen().
void ED_screen_ensure_updated | ( | struct wmWindowManager * | wm, |
struct wmWindow * | win, | ||
struct bScreen * | screen | ||
) |
Definition at line 670 of file screen_edit.c.
References bScreen::do_refresh, and ED_screen_refresh().
Referenced by wm_draw_update().
Definition at line 736 of file screen_edit.c.
References bScreen::active_region, bScreen::animtimer, blender::compositor::area(), bScreen::areabase, ScrAreaMap::areabase, BKE_sound_stop_scene(), C, CTX_data_depsgraph_pointer(), CTX_wm_manager(), CTX_wm_window(), CTX_wm_window_set(), DEG_get_evaluated_id(), depsgraph, ED_area_exit(), ED_region_exit(), wmWindow::global_areas, Scene::id, LISTBASE_FOREACH, NULL, bScreen::regionbase, scene, bScreen::scrubbing, bScreen::winid, WM_event_remove_timer(), WM_window_get_active_scene(), and WM_window_is_temp_screen().
Referenced by screen_change_prepare(), WM_exit_ex(), wm_window_close(), and wm_window_match_init().
Definition at line 1242 of file screen_edit.c.
References blender::compositor::area(), bScreen::areabase, BLI_assert, C, ED_area_newspace(), ED_screen_change(), ED_screen_state_maximized_create(), ListBase::first, SpaceLink::link_flag, NULL, SPACE_EMPTY, SPACE_FLAG_TYPE_TEMPORARY, SPACE_FLAG_TYPE_WAS_ACTIVE, ScrArea::spacedata, ScrArea::spacetype, and type.
Referenced by ED_screen_temp_space_open(), and render_view_open().
was_prev_temp for the case previous space was a temporary full-screen as well
Definition at line 1275 of file screen_edit.c.
References blender::compositor::area(), AREA_FLAG_STACKED_FULLSCREEN, BLI_assert, C, ED_area_prevspace(), and ED_screen_restore_temp_type().
Referenced by ED_screen_full_restore(), fullscreen_back_exec(), render_view_cancel_exec(), render_view_show_invoke(), and wm_handler_fileselect_do().
Restore a screen / area back to default operation, after temp full-screen modes.
Definition at line 1304 of file screen_edit.c.
References blender::compositor::area(), C, CTX_wm_screen(), CTX_wm_window(), ED_screen_full_prevspace(), ED_screen_state_toggle(), SpaceLink::link_flag, SpaceLink::next, SCREENMAXIMIZED, SPACE_FLAG_TYPE_TEMPORARY, state, and bScreen::state.
Referenced by ED_workspace_layout_cycle().
Definition at line 1070 of file screen_edit.c.
References ScrAreaMap::areabase, BKE_screen_area_map_free(), BKE_workspace_active_screen_get(), bScreen::do_refresh, ListBase::first, wmWindow::global_areas, NULL, wmWindow::parent, screen_global_statusbar_area_refresh(), screen_global_topbar_area_refresh(), bScreen::temp, and wmWindow::workspace_hook.
Referenced by ED_screen_refresh(), and wm_window_ghostwindow_ensure().
Definition at line 1053 of file screen_edit.c.
References blender::compositor::area(), ScrAreaMap::areabase, BKE_workspace_active_screen_get(), bScreen::flag, wmWindow::global_areas, LISTBASE_FOREACH, SCREEN_COLLAPSE_STATUSBAR, SPACE_STATUSBAR, and wmWindow::workspace_hook.
Referenced by area_move_apply_do().
void ED_screen_preview_render | ( | const struct bScreen * | screen, |
int | size_x, | ||
int | size_y, | ||
unsigned int * | r_rect | ||
) |
Render the preview for a screen layout in screen.
Referenced by icon_preview_startjob().
void ED_screen_refresh | ( | struct wmWindowManager * | wm, |
struct wmWindow * | win | ||
) |
Make this screen usable. for file read and first use, for scaling window, area moves.
Definition at line 611 of file screen_edit.c.
References bScreen::animtimer, blender::compositor::area(), bScreen::context, bScreen::do_refresh, ED_area_init(), ED_screen_areas_iter, ed_screen_context(), ED_screen_global_areas_refresh(), G, G_DEBUG_EVENTS, wmWindow::ghostwin, screen_geom_vertices_scale(), bScreen::winid, wmWindow::winid, WM_event_timer_sleep(), WM_window_get_active_screen(), and WM_window_set_dpi().
Referenced by ED_screen_ensure_updated(), ED_screens_init(), screen_change_update(), wm_debug_menu_exec(), and WM_window_open().
Definition at line 1288 of file screen_edit.c.
References blender::compositor::area(), C, CTX_wm_window(), ED_area_prevspace(), ED_area_tag_redraw(), ED_screen_state_toggle(), SpaceLink::link_flag, SCREENMAXIMIZED, and SPACE_FLAG_TYPE_TEMPORARY.
Referenced by ED_screen_full_prevspace().
void ED_screen_scene_change | ( | struct bContext * | C, |
struct wmWindow * | win, | ||
struct Scene * | scene, | ||
bool | refresh_toolsystem | ||
) |
Definition at line 1195 of file screen_edit.c.
References blender::compositor::area(), bScreen::areabase, C, CTX_data_scene_set(), CTX_wm_window(), CTX_wm_workspace(), LISTBASE_FOREACH, OBACT, WorkSpace::object_mode, scene, wmWindow::scene, screen_set_3dview_camera(), SPACE_VIEW3D, UNUSED_VARS, WM_toolsystem_refresh_screen_window(), WM_window_ensure_active_view_layer(), WM_window_get_active_screen(), and WM_window_get_active_view_layer().
Referenced by WM_window_open(), and WM_window_set_active_scene().
Scene* ED_screen_scene_find | ( | const struct bScreen * | screen, |
const struct wmWindowManager * | wm | ||
) |
Scene* ED_screen_scene_find_with_window | ( | const struct bScreen * | screen, |
const struct wmWindowManager * | wm, | ||
struct wmWindow ** | r_window | ||
) |
Find the scene displayed in screen.
Called in wm_event_system.c. sets state vars in screen, cursors. event type is mouse move.
Definition at line 829 of file screen_edit.c.
References bScreen::active_region, blender::compositor::area(), BORDERPADDING, C, ED_area_azones_update(), ED_region_contains_xy(), ED_region_tag_redraw_no_rebuild(), ED_screen_areas_iter, ELEM, ARegion::gizmo_map, LISTBASE_FOREACH, NULL, region_cursor_set_ex(), RGN_TYPE_HEADER, RGN_TYPE_TOOL_HEADER, screen_cursor_set(), ARegion::type, UI_screen_free_active_but_highlight(), UNUSED_VARS, WM_cursor_test_motion_and_update(), WM_gizmo_highlight_set(), WM_window_get_active_screen(), and xy.
Referenced by ED_screens_init(), and wm_event_do_handlers().
Create a new temporary screen with a maximized, empty area. This can be closed with ED_screen_state_toggle().
Use this to just create a new maximized screen/area, rather than maximizing an existing one. Otherwise, maximize with ED_screen_state_toggle().
Definition at line 1410 of file screen_edit.c.
References C, CTX_wm_window(), NULL, screen_state_to_nonnormal(), and SCREENMAXIMIZED.
Referenced by ED_screen_full_newspace().
struct ScrArea* ED_screen_state_toggle | ( | struct bContext * | C, |
struct wmWindow * | win, | ||
struct ScrArea * | area, | ||
short | state | ||
) |
This function toggles: if area is maximized/full then the parent will be restored.
Use ED_screen_state_maximized_create() if you do not want the toggle behavior when changing to a maximized area. I.e. if you just want to open a new maximized screen/area, not maximize a specific area. In the former case, space data of the maximized and non-maximized area should be independent, in the latter it should be the same.
Definition at line 1415 of file screen_edit.c.
References bScreen::animtimer, blender::compositor::area(), bScreen::areabase, ScrAreaMap::areabase, BKE_workspace_layout_remove(), BKE_workspace_layout_screen_get(), BLI_assert, C, CTX_data_main(), CTX_wm_area(), CTX_wm_area_set(), CTX_wm_manager(), CTX_wm_screen(), ED_area_data_swap(), ED_area_status_text(), ED_area_tag_refresh(), ED_screen_change(), ED_workspace_status_text(), ListBase::first, bScreen::flag, ScrArea::full, ScrArea::global, GLOBAL_AREA_IS_HIDDEN, wmWindow::global_areas, LISTBASE_FOREACH, NULL, screen_state_to_nonnormal(), SCREENFULL, SCREENNORMAL, bScreen::skip_handling, state, bScreen::state, UI_blocklist_free(), WM_event_remove_timer(), WM_window_get_active_layout(), WM_window_get_active_screen(), and WM_window_get_active_workspace().
Referenced by ED_screen_full_restore(), ED_screen_restore_temp_type(), render_view_cancel_exec(), and screen_maximize_area_exec().
Referenced by WM_stereo3d_enabled().
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 | ||
) |
Wrapper to open a temporary space either as fullscreen space, or as separate window, as defined by display_type.
title | Title to set for the window, if a window is spawned. |
x,y | Position of the window, if a window is spawned. |
sizex,sizey | Dimensions of the window, if a window is spawned. |
Definition at line 1522 of file screen_edit.c.
References blender::compositor::area(), AREA_FLAG_STACKED_FULLSCREEN, C, CTX_wm_area(), ED_area_newspace(), ED_screen_full_newspace(), ScrArea::full, NULL, SPACE_FLAG_TYPE_TEMPORARY, USER_TEMP_SPACE_DISPLAY_FULLSCREEN, USER_TEMP_SPACE_DISPLAY_WINDOW, WIN_ALIGN_LOCATION_CENTER, WM_window_open(), x, and y.
Referenced by wm_handler_fileselect_do().
Definition at line 84 of file screen_user_menu.c.
References BKE_blender_user_menu_ensure(), C, blender::compositor::context, CTX_wm_space_data(), screen_menu_context_string(), and SpaceLink::spacetype.
Referenced by popup_user_menu_add_or_replace_func().
void ED_screen_user_menu_item_add_menu | ( | struct ListBase * | lb, |
const char * | ui_name, | ||
const struct MenuType * | mt | ||
) |
Referenced by ui_but_user_menu_add().
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 | ||
) |
Referenced by ui_but_user_menu_add().
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 | ||
) |
Definition at line 171 of file screen_user_menu.c.
References BKE_blender_user_menu_item_add(), bUserMenuItem_Prop::context_data_path, bUserMenuItem_Prop::item, bUserMenuItem_Prop::prop_id, bUserMenuItem_Prop::prop_index, STRNCPY, bUserMenuItem::ui_name, and USER_MENU_TYPE_PROP.
Referenced by ui_but_user_menu_add().
struct bUserMenuItem_Menu* ED_screen_user_menu_item_find_menu | ( | struct ListBase * | lb, |
const struct MenuType * | mt | ||
) |
Definition at line 114 of file screen_user_menu.c.
References MenuType::idname, LISTBASE_FOREACH, bUserMenuItem_Menu::mt_idname, NULL, STREQ, and USER_MENU_TYPE_MENU.
Referenced by ui_but_user_menu_find().
struct bUserMenuItem_Op* ED_screen_user_menu_item_find_operator | ( | struct ListBase * | lb, |
const struct wmOperatorType * | ot, | ||
struct IDProperty * | prop, | ||
wmOperatorCallContext | opcontext | ||
) |
Referenced by ui_but_user_menu_find().
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 | ||
) |
Definition at line 128 of file screen_user_menu.c.
References bUserMenuItem_Prop::context_data_path, LISTBASE_FOREACH, NULL, bUserMenuItem_Prop::prop_id, bUserMenuItem_Prop::prop_index, STREQ, and USER_MENU_TYPE_PROP.
Referenced by ui_but_user_menu_find().
void ED_screen_user_menu_item_remove | ( | struct ListBase * | lb, |
struct bUserMenuItem * | umi | ||
) |
Definition at line 185 of file screen_user_menu.c.
References BKE_blender_user_menu_item_free(), and BLI_remlink().
Referenced by popup_user_menu_remove_func().
Definition at line 306 of file screen_user_menu.c.
References BLT_I18NCONTEXT_DEFAULT_BPYRNA, MenuType::draw, MenuType::idname, MenuType::label, MEM_callocN, N_, screen_user_menu_draw(), MenuType::translation_context, and WM_menutype_add().
Referenced by ED_spacetypes_init().
Referenced by ui_popup_context_menu_for_button().
struct wmWindow* ED_screen_window_find | ( | const struct bScreen * | screen, |
const struct wmWindowManager * | wm | ||
) |
void ED_screens_footer_tools_menu_create | ( | struct bContext * | C, |
struct uiLayout * | layout, | ||
void * | arg | ||
) |
Referenced by ui_popup_context_menu_for_button().
void ED_screens_header_tools_menu_create | ( | struct bContext * | C, |
struct uiLayout * | layout, | ||
void * | arg | ||
) |
Referenced by ui_popup_context_menu_for_button().
void ED_screens_init | ( | struct Main * | bmain, |
struct wmWindowManager * | wm | ||
) |
File read, set all screens, ....
Definition at line 650 of file screen_edit.c.
References BKE_screen_header_alignment_reset(), BKE_workspace_active_get(), BKE_workspace_active_set(), ED_screen_refresh(), ED_screen_set_active_region(), ListBase::first, LISTBASE_FOREACH, NULL, Main::screens, USER_HEADER_FROM_PREF, wmWindowManager::windows, and Main::workspaces.
Referenced by WM_check().
void ED_screens_navigation_bar_tools_menu_create | ( | struct bContext * | C, |
struct uiLayout * | layout, | ||
void * | arg | ||
) |
Referenced by ui_popup_context_menu_for_button().
void ED_spacetypes_keymap | ( | struct wmKeyConfig * | keyconf | ) |
Definition at line 178 of file spacetypes.c.
References BKE_spacetypes_list(), ED_keymap_anim(), ED_keymap_animchannels(), ED_keymap_armature(), ED_keymap_curve(), ED_keymap_gpencil(), ED_keymap_lattice(), ED_keymap_marker(), ED_keymap_mask(), ED_keymap_mesh(), ED_keymap_metaball(), ED_keymap_object(), ED_keymap_paint(), ED_keymap_physics(), ED_keymap_screen(), ED_keymap_transform(), ED_keymap_ui(), ED_keymap_uvedit(), ED_keymap_view2d(), LISTBASE_FOREACH, spacetypes, and type.
Referenced by WM_keyconfig_init().
Results in fully updated anim system.
Definition at line 1694 of file screen_edit.c.
References BKE_scene_graph_update_for_newframe(), BKE_screen_view3d_scene_sync(), Scene::camera, camera, RenderData::cfra, DEG_get_input_scene(), DEG_id_tag_update(), DEG_time_tag_update(), depsgraph, ED_clip_update_frame(), Scene::id, ID_RECALC_COPY_ON_WRITE, LISTBASE_FOREACH, Scene::r, scene, and Main::screens.
Referenced by bc_update_scene(), dynamicPaint_bakeImageSequence(), ED_scene_change_update(), fluid_bake_sequence(), fluid_free_startjob(), light_cache_bake_exec(), render_endjob(), screen_animation_step_invoke(), screen_render_exec(), wm_event_do_handlers(), and wm_event_do_notifiers().
Definition at line 52 of file workspace_edit.c.
References BKE_workspace_add().
Referenced by ED_workspace_duplicate().
bool ED_workspace_change | ( | struct WorkSpace * | workspace_new, |
struct bContext * | C, | ||
struct wmWindowManager * | wm, | ||
struct wmWindow * | win | ||
) |
Change the active workspace.
Operator call, WM + Window + screen already existed before Pretty similar to ED_screen_change since changing workspace also changes screen.
Definition at line 171 of file workspace_edit.c.
References BKE_workspace_active_layout_set(), BKE_workspace_active_screen_get(), BKE_workspace_active_set(), BKE_workspace_layout_screen_get(), BLI_assert, C, CTX_data_main(), CTX_wm_workspace(), ED_object_mode_set(), NULL, WorkSpace::object_mode, screen_change_prepare(), screen_change_update(), WorkSpaceInstanceHook::temp_layout_store, wmWindow::winid, WM_window_get_active_workspace(), workspace_change_get_new_layout(), workspace_change_update(), workspace_exit(), and wmWindow::workspace_hook.
Referenced by ED_workspace_delete(), and WM_window_set_active_workspace().
bool ED_workspace_delete | ( | struct WorkSpace * | workspace, |
struct Main * | bmain, | ||
struct bContext * | C, | ||
struct wmWindowManager * | wm | ||
) |
Definition at line 236 of file workspace_edit.c.
References BKE_id_free(), BKE_id_ordered_list(), BLI_assert, BLI_freelistN(), BLI_listbase_is_single(), C, ED_workspace_change(), WorkSpace::id, LISTBASE_FOREACH, next, NULL, blender::meshintersect::prev(), wmWindowManager::windows, WM_window_get_active_workspace(), and Main::workspaces.
Referenced by wm_event_do_notifiers().
struct WorkSpace* ED_workspace_duplicate | ( | struct WorkSpace * | workspace_old, |
struct Main * | bmain, | ||
struct wmWindow * | win | ||
) |
Duplicate a workspace including its layouts. Does not activate the workspace, but it stores the screen-layout to be activated (BKE_workspace_temp_layout_store)
Definition at line 212 of file workspace_edit.c.
References BKE_workspace_active_layout_get(), BLI_duplicatelist(), ED_workspace_add(), ED_workspace_layout_duplicate(), WorkSpace::flags, WorkSpace::id, WorkSpace::layouts, LISTBASE_FOREACH, ID::name, WorkSpace::object_mode, WorkSpace::order, WorkSpace::owner_ids, WorkSpace::pin_scene, WorkSpaceInstanceHook::temp_layout_store, and wmWindow::workspace_hook.
Referenced by workspace_new_exec().
struct WorkSpaceLayout* ED_workspace_layout_add | ( | struct Main * | bmain, |
struct WorkSpace * | workspace, | ||
struct wmWindow * | win, | ||
const char * | name | ||
) |
Empty screen, with 1 dummy area without space-data. Uses window size.
Definition at line 26 of file workspace_layout_edit.c.
References BKE_workspace_layout_add(), screen_add(), and WM_window_screen_rect_calc().
Referenced by ED_workspace_layout_duplicate(), screen_state_to_nonnormal(), and WM_window_open().
bool ED_workspace_layout_cycle | ( | struct WorkSpace * | workspace, |
short | direction, | ||
struct bContext * | C | ||
) |
Definition at line 199 of file workspace_layout_edit.c.
References blender::compositor::area(), BKE_workspace_active_layout_get(), BKE_workspace_layout_iter_circular(), BKE_workspace_layout_screen_get(), BLI_assert, C, CTX_wm_area(), CTX_wm_window(), ED_screen_change(), ED_screen_full_restore(), ELEM, NULL, bScreen::temp, wmWindow::workspace_hook, and workspace_layout_cycle_iter_cb().
Referenced by screen_set_exec().
bool ED_workspace_layout_delete | ( | struct WorkSpace * | workspace, |
struct WorkSpaceLayout * | layout_old, | ||
struct bContext * | C | ||
) |
Definition at line 115 of file workspace_layout_edit.c.
References BKE_screen_is_fullscreen_area(), BKE_workspace_layout_screen_get(), BLI_assert, BLI_findindex(), C, WorkSpace::layouts, workspace_layout_delete_doit(), and workspace_layout_delete_find_new().
Referenced by wm_event_do_notifiers().
struct WorkSpaceLayout* ED_workspace_layout_duplicate | ( | struct Main * | bmain, |
struct WorkSpace * | workspace, | ||
const struct WorkSpaceLayout * | layout_old, | ||
struct wmWindow * | win | ||
) |
Referenced by ED_workspace_duplicate(), screen_new_exec(), wm_window_copy(), and wm_window_match_keep_current_wm().
void ED_workspace_scene_data_sync | ( | struct WorkSpaceInstanceHook * | hook, |
Scene * | scene | ||
) |
Some editor data may need to be synced with scene data (3D View camera and layers). This function ensures data is synced for editors in active layout of workspace.
Definition at line 266 of file workspace_edit.c.
References BKE_screen_view3d_scene_sync(), BKE_workspace_active_screen_get(), and scene.
Referenced by WM_windows_scene_data_sync().
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 | ||
) |
Make sure there is a non-full-screen layout to switch to that isn't used yet by an other window. Needed for workspace or screen switching to ensure valid screens.
layout_fallback_base | As last resort, this layout is duplicated and returned. |
Referenced by ED_screen_change(), and workspace_change_get_new_layout().
Definition at line 816 of file area.c.
References blender::compositor::area(), ScrAreaMap::areabase, BLI_strncpy(), C, CTX_wm_window(), CTX_wm_workspace(), ED_area_tag_redraw(), wmWindow::global_areas, LISTBASE_FOREACH, MEM_mallocN, MEM_SAFE_FREE, NULL, SPACE_STATUSBAR, WorkSpace::status_text, str, and UI_MAX_DRAW_STR.
Referenced by add_marker_at_click_invoke(), add_marker_at_click_modal(), annotation_draw_status_indicators(), blend_to_default_draw_status_header(), blend_to_neighbor_draw_status_header(), breakdown_draw_status_header(), decimate_draw_status(), dyntopo_detail_size_edit_cancel(), dyntopo_detail_size_edit_invoke(), dyntopo_detail_size_edit_modal(), ED_screen_state_toggle(), ED_slider_destroy(), edbm_bevel_invoke(), edbm_bevel_modal(), edbm_bevel_update_status_text(), eyedropper_gpencil_exit(), eyedropper_gpencil_status_indicators(), face_set_extract_invoke(), face_set_extract_modal(), gpencil_draw_status_indicators(), gpencil_fill_exit(), gpencil_fill_status_indicators(), gpencil_interpolate_exit(), gpencil_interpolate_modal(), gpencil_interpolate_status_indicators(), gpencil_primitive_exit(), gpencil_primitive_interaction_end(), gpencil_primitive_modal(), gpencil_primitive_status_indicators(), gpencil_sculpt_brush_exit(), gpencil_sculpt_brush_header_set(), gpencil_vertexpaint_brush_exit(), gpencil_vertexpaint_brush_header_set(), gpencil_weightpaint_brush_exit(), gpencil_weightpaint_brush_header_set(), knife_update_header(), knifetool_modal(), loopcut_finish(), loopcut_init(), loopcut_modal(), mesh_bisect_invoke(), mesh_bisect_modal(), minimize_stretch_exit(), minimize_stretch_iteration(), blender::ed::space_node::node_link_exit(), blender::ed::space_node::node_link_update_header(), pose_slide_draw_status(), pose_slide_modal(), poselib_blend_apply(), poselib_blend_cleanup(), poselib_preview_apply(), poselib_preview_cleanup(), sample_color_modal(), sample_color_update_header(), sculpt_expand_finish(), sculpt_mask_expand_cancel(), sculpt_mask_expand_invoke(), sculpt_mask_expand_modal(), sculpt_sample_detail_size_invoke(), sculpt_sample_detail_size_modal(), stitch_exit(), stitch_update_header(), ui_handler_wait_for_input_remove(), voxel_size_edit_cancel(), voxel_size_edit_invoke(), voxel_size_edit_modal(), and WM_operator_name_call_ptr_with_depends_on_cursor().