|
Blender V4.3
|
#include <memory>#include <string>#include "BLI_compiler_attrs.h"#include "BLI_math_vector_types.hh"#include "BLI_vector.hh"#include "RNA_types.hh"#include "BKE_context.hh"Go to the source code of this file.
Classes | |
| struct | wmSpaceTypeListenerParams |
| struct | SpaceType |
| struct | wmRegionListenerParams |
| struct | wmRegionMessageSubscribeParams |
| struct | RegionPollParams |
| struct | ARegionType |
| struct | PanelType |
| struct | LayoutPanelHeader |
| struct | LayoutPanelBody |
| struct | LayoutPanels |
| struct | Panel_Runtime |
| struct | uiListType |
| struct | HeaderType |
| struct | Header |
| struct | MenuType |
| struct | Menu |
| struct | AssetShelfType |
Namespaces | |
| namespace | blender |
| namespace | blender::bke |
| namespace | blender::bke::id |
| namespace | blender::asset_system |
Macros | |
| #define | BKE_ST_MAXNAME 64 |
| #define | ASSET_SHELF_PREVIEW_SIZE_DEFAULT 64 |
Typedefs | |
| using | uiListDrawItemFunc |
| using | uiListDrawFilterFunc = void (*)(uiList *ui_list, const bContext *C, uiLayout *layout) |
| using | uiListFilterItemsFunc |
| using | uiListListener = void (*)(uiList *ui_list, wmRegionListenerParams *params) |
Enumerations | |
| enum | { PANEL_TYPE_DEFAULT_CLOSED = (1 << 0) , PANEL_TYPE_NO_HEADER = (1 << 1) , PANEL_TYPE_HEADER_EXPAND = (1 << 2) , PANEL_TYPE_LAYOUT_VERT_BAR = (1 << 3) , PANEL_TYPE_INSTANCED = (1 << 4) , PANEL_TYPE_NO_SEARCH = (1 << 7) } |
| enum class | MenuTypeFlag { ContextDependent = (1 << 0) , SearchOnKeyPress = (1 << 1) } |
| enum | AssetShelfTypeFlag { ASSET_SHELF_TYPE_FLAG_NO_ASSET_DRAG = (1 << 0) , ASSET_SHELF_TYPE_FLAG_DEFAULT_VISIBLE = (1 << 1) , ASSET_SHELF_TYPE_FLAG_STORE_CATALOGS_IN_PREFS = (1 << 2) , ASSET_SHELF_TYPE_FLAG_MAX } |
| #define ASSET_SHELF_PREVIEW_SIZE_DEFAULT 64 |
Definition at line 539 of file BKE_screen.hh.
Referenced by blender::ed::asset::shelf::asset_shelf_default_tile_height(), blender::ed::asset::shelf::create_shelf_from_type(), and blender::ed::asset::shelf::get_shelf_for_popup().
| #define BKE_ST_MAXNAME 64 |
Definition at line 66 of file BKE_screen.hh.
Referenced by BKE_shaderfxType_panel_id(), bone_constraint_panel_id(), ed_panel_draw(), FILE_OT_unpack_item(), blender::ed::spreadsheet::filter_panel_id_fn(), graph_fmodifier_panel_id(), nla_fmodifier_panel_id(), object_constraint_panel_id(), rna_def_operator_common(), wm_call_menu_exec(), wm_call_menu_get_name(), wm_call_panel_exec(), wm_call_panel_get_name(), wm_call_pie_menu_exec(), wm_call_pie_menu_invoke(), WM_OT_call_menu(), WM_OT_call_menu_pie(), and WM_OT_call_panel().
| using uiListDrawFilterFunc = void (*)(uiList *ui_list, const bContext *C, uiLayout *layout) |
Definition at line 435 of file BKE_screen.hh.
| using uiListDrawItemFunc |
Draw an item in the ui_list.
Definition at line 423 of file BKE_screen.hh.
| using uiListFilterItemsFunc |
Definition at line 438 of file BKE_screen.hh.
| using uiListListener = void (*)(uiList *ui_list, wmRegionListenerParams *params) |
Definition at line 444 of file BKE_screen.hh.
| anonymous enum |
Definition at line 353 of file BKE_screen.hh.
| enum AssetShelfTypeFlag |
Definition at line 528 of file BKE_screen.hh.
|
strong |
| Enumerator | |
|---|---|
| ContextDependent | Whether the menu depends on data retrieved via CTX_data_pointer_get. If it is context dependent, menu search has to scan it in different contexts. |
| SearchOnKeyPress | Automatically start searching in the menu when pressing a key. |
Definition at line 486 of file BKE_screen.hh.
Definition at line 828 of file screen.cc.
References BKE_area_find_region_type(), BLI_findlink(), and RGN_TYPE_WINDOW.
Referenced by ED_undo_operator_repeat(), ED_view3d_context_activate(), ED_view3d_context_rv3d(), texture_paint_image_from_view_exec(), and wm_operator_call_internal().
Find a region of type region_type in the currently active space of area.
Definition at line 815 of file screen.cc.
References LISTBASE_FOREACH.
Referenced by blender::ed::asset::shelf::active_shelf_from_area(), ANIM_deselect_keys_in_animation_editors(), ANIM_frame_channel_y_extents(), animchannels_select_filter_invoke(), BKE_area_find_region_active_win(), BKE_spacedata_find_region_type(), blend_file_thumb_from_camera(), blo_do_versions_260(), blender::ui::bonedropper_set_draw_callback_region(), buttons_start_filter_exec(), channel_draw_context_init(), 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_modal_select_invoke(), console_move_exec(), console_paste_exec(), console_scrollback_append_exec(), console_selectword_invoke(), console_unindent_exec(), context_find_graph_editor(), datadropper_set_draw_callback_region(), do_version_area_change_space_to_space_action(), do_versions_area_ensure_tool_region(), ED_area_type_hud_ensure(), ED_area_type_hud_redo_region_find(), ED_drivers_editor_init(), ED_screens_header_tools_menu_create(), file_refresh(), file_smoothscroll_invoke(), graphkeys_channel_view_pick_invoke(), graphkeys_view_selected_channels_exec(), hud_panel_operator_redo_poll(), hud_region_add(), last_redo_poll(), menu_items_from_ui_create(), blender::ed::space_node::node_area_listener(), blender::ed::outliner::outliner_deactivate(), blender::ed::outliner::outliner_start_filter_exec(), region_scale_toggle_hidden(), region_toggle_exec(), blender::ed::spreadsheet::spreadsheet_main_region_draw(), text_autocomplete_modal(), text_has_properties_region(), UI_view2d_fromcontext_rwin(), userpref_execute_region_poll(), userpref_show_exec(), v3d_cursor_snap_draw_fn(), v3d_cursor_snap_poll_fn(), wm_handler_fileselect_do(), wm_keymap_item_find_props(), wm_operator_call_internal(), and WM_window_cursor_keymap_status_refresh().
Definition at line 844 of file screen.cc.
References BLI_rcti_isect_pt_v(), ELEM, LISTBASE_FOREACH, RGN_TYPE_ANY, and xy.
Referenced by annotation_draw_modal(), BKE_screen_find_main_region_at_xy(), blender::ui::bonedropper_sample_pt(), datadropper_id_sample_pt(), depthdropper_depth_sample_pt(), eyedropper_color_sample_fl(), eyedropper_cryptomatte_sample_fl(), eyedropper_get_property_button_under_mouse(), blender::ed::sculpt_paint::dyntopo::sample_detail(), v3d_cursor_snap_draw_fn(), wm_dropbox_active(), and wm_handler_op_context_get_if_valid().
Definition at line 335 of file screen.cc.
References BKE_regiontype_from_id(), BLI_duplicatelist(), BLI_listbase_clear(), ARegion::draw_buffer, ARegionType::duplicate, ARegion::gizmo_map, ARegion::handlers, ARegion::headerstr, MEM_dupallocN, ARegion::next, panel_list_copy(), ARegion::panels, ARegion::panels_category, ARegion::panels_category_active, ARegion::prev, ARegion::regiondata, ARegion::regiontimer, RGN_FLAG_TEMP_REGIONDATA, ARegion::runtime, ARegion::ui_lists, ARegion::ui_previews, ARegion::uiblocks, and ARegion::visible.
Referenced by ED_area_data_copy(), property_search_all_tabs(), region_copylist(), and region_quadview_exec().
Doesn't free the region itself.
Definition at line 563 of file screen.cc.
References BKE_area_region_panels_free(), BKE_regiontype_from_id(), BLI_freelistN(), BLI_ghash_free(), ARegionType::free, IDP_FreeProperty(), LISTBASE_FOREACH, MEM_SAFE_FREE, printf, region_free_gizmomap_callback, and RGN_FLAG_TEMP_REGIONDATA.
Referenced by BKE_screen_area_blend_read_after_liblink(), BKE_screen_area_free(), BKE_spacedata_freelist(), blo_do_versions_250(), blo_do_versions_270(), blo_do_versions_280(), do_version_area_change_space_to_space_action(), ED_area_data_copy(), ED_region_remove(), property_search_all_tabs(), regions_remove_invalid(), screen_free_data(), and ui_region_temp_remove().
| void BKE_area_region_panels_free | ( | ListBase * | panels | ) |
Definition at line 551 of file screen.cc.
References area_region_panels_free_recursive(), BLI_listbase_clear(), and LISTBASE_FOREACH_MUTABLE.
Referenced by BKE_area_region_free(), blo_update_defaults_screen(), and ED_region_property_search().
| void BKE_panel_free | ( | Panel * | panel | ) |
Definition at line 529 of file screen.cc.
References Panel::activedata, BLI_freelistN(), Panel::drawname, Panel::layout_panel_states, LISTBASE_FOREACH, MEM_freeN(), MEM_SAFE_FREE, Panel::runtime, and state.
Referenced by area_region_panels_free_recursive(), panel_delete(), ui_paneltype_draw_impl(), and ui_popup_block_free().
| LayoutPanelState * BKE_panel_layout_panel_state_ensure | ( | Panel * | panel, |
| const char * | idname, | ||
| bool | default_closed ) |
Get the layout panel state for the given idname. If it does not exist yet, initialize a new panel state with the given default value.
Definition at line 502 of file screen.cc.
References BLI_addtail(), BLI_strdup(), LAYOUT_PANEL_STATE_FLAG_OPEN, Panel::layout_panel_states, LISTBASE_FOREACH, SET_FLAG_FROM_TEST, state, and STREQ.
Referenced by blender::ui::nodes::handle_node_declaration_items(), blender::panel_draw(), and uiLayoutPanel().
Create and free panels.
Definition at line 518 of file screen.cc.
References PanelType::idname, Panel::panelname, Panel::runtime, STRNCPY, and Panel::type.
Referenced by panel_add_instanced(), panel_list_copy(), UI_panel_begin(), ui_paneltype_draw_impl(), and UI_popup_dummy_panel_set().
| void BKE_region_callback_free_gizmomap_set | ( | void(* | callback )(wmGizmoMap *) | ) |
Gizmo-maps of a region need to be freed with the region. Uses callback to avoid low-level call.
Definition at line 497 of file screen.cc.
References callback, and region_free_gizmomap_callback.
Referenced by WM_init().
| void BKE_region_callback_refresh_tag_gizmomap_set | ( | void(* | callback )(wmGizmoMap *) | ) |
Definition at line 464 of file screen.cc.
References callback, and region_refresh_tag_gizmomap_callback.
Referenced by WM_init().
| ARegion * BKE_region_find_in_listbase_by_type | ( | const ListBase * | regionbase, |
| const int | region_type ) |
Find a region of type region_type in provided regionbase.
Definition at line 804 of file screen.cc.
References LISTBASE_FOREACH.
Referenced by blo_do_versions_300(), and do_versions_after_linking_300().
| ARegionType * BKE_regiontype_from_id | ( | const SpaceType * | st, |
| int | regionid ) |
Definition at line 253 of file screen.cc.
References LISTBASE_FOREACH, and SpaceType::regiontypes.
Referenced by area_offscreen_init(), BKE_area_region_copy(), BKE_area_region_free(), blender::ui::bonedropper_init(), blender::ui::bonedropper_set_draw_callback_region(), datadropper_init(), datadropper_set_draw_callback_region(), depthdropper_init(), DRW_draw_callbacks_post_scene(), ED_area_init(), ED_area_type_hud_ensure(), ED_view3d_buttons_region_layout_ex(), pyrna_callback_classmethod_add(), pyrna_callback_classmethod_remove(), regions_remove_invalid(), uiItemPopoverPanelFromGroup(), wm_xr_raycast_init(), and wm_xr_raycast_uninit().
| void BKE_screen_area_blend_read_after_liblink | ( | BlendLibReader * | reader, |
| ID * | parent_id, | ||
| ScrArea * | area ) |
Called after lib linking process is done, to perform some validation on the read data, or some complex specific reading process that requires the data to be fully read and ID pointers to be valid.
Definition at line 1405 of file screen.cc.
References BKE_area_region_free(), BKE_spacetype_from_id(), SpaceType::blend_read_after_liblink, BLI_freelinkN(), LISTBASE_FOREACH, LISTBASE_FOREACH_MUTABLE, and regions_remove_invalid().
Referenced by screen_blend_read_after_liblink(), and window_manager_blend_read_after_liblink().
| void BKE_screen_area_free | ( | ScrArea * | area | ) |
Doesn't free the area itself.
Definition at line 607 of file screen.cc.
References BKE_area_region_free(), BKE_spacedata_freelist(), BKE_spacetype_from_id(), BLI_freelistN(), LISTBASE_FOREACH, and MEM_SAFE_FREE.
Referenced by BKE_screen_area_map_free(), blo_do_versions_280(), ED_area_offscreen_free(), ED_area_swapspace(), and screen_delarea().
| bool BKE_screen_area_map_blend_read_data | ( | BlendDataReader * | reader, |
| ScrAreaMap * | area_map ) |
Definition at line 1359 of file screen.cc.
References ScrAreaMap::areabase, BKE_screen_sort_scrvert(), BLI_remlink(), BLO_read_struct, BLO_read_struct_list, direct_link_area(), ScrAreaMap::edgebase, LISTBASE_FOREACH, and ScrAreaMap::vertbase.
Referenced by BKE_screen_blend_read_data(), and window_manager_blend_read_data().
| void BKE_screen_area_map_blend_write | ( | BlendWriter * | writer, |
| ScrAreaMap * | area_map ) |
Definition at line 1152 of file screen.cc.
References ScrAreaMap::areabase, BLO_write_struct, BLO_write_struct_list, ScrAreaMap::edgebase, LISTBASE_FOREACH, SPACE_EMPTY, ScrAreaMap::vertbase, and write_area().
Referenced by screen_blend_write(), and window_manager_blend_write().
| ScrArea * BKE_screen_area_map_find_area_xy | ( | const ScrAreaMap * | areamap, |
| int | spacetype, | ||
| const int | xy[2] ) |
| void BKE_screen_area_map_free | ( | ScrAreaMap * | area_map | ) |
Definition at line 623 of file screen.cc.
References ScrAreaMap::areabase, BKE_screen_area_free(), BLI_freelistN(), ScrAreaMap::edgebase, LISTBASE_FOREACH_MUTABLE, and ScrAreaMap::vertbase.
Referenced by ED_screen_global_areas_refresh(), screen_free_data(), and wm_window_free().
| bool BKE_screen_blend_read_data | ( | BlendDataReader * | reader, |
| bScreen * | screen ) |
Cannot use IDTypeInfo callback yet, because of the return value.
Definition at line 128 of file screen.cc.
References AREAMAP_FROM_SCREEN, BKE_previewimg_blend_read(), BKE_screen_area_map_blend_read_data(), BLO_read_struct, and printf.
Referenced by direct_link_id().
| ARegion ARegion ScrArea * BKE_screen_find_area_from_space | ( | const bScreen * | screen, |
| const SpaceLink * | sl ) |
| ScrArea ScrArea * BKE_screen_find_area_xy | ( | const bScreen * | screen, |
| int | spacetype, | ||
| const int | xy[2] ) |
Referenced by actionzone_modal(), area_join_init(), area_join_update_data(), area_split_modal(), depthdropper_depth_sample_pt(), ED_area_find_under_cursor(), ED_screen_draw_edges(), eyedropper_color_sample_fl(), eyedropper_cryptomatte_sample_fl(), eyedropper_get_property_button_under_mouse(), eyedropper_win_area_find(), blender::ed::sculpt_paint::dyntopo::sample_detail(), screen_area_edge_from_cursor(), screenshot_invoke(), wm_drags_draw(), and wm_dropbox_active().
Definition at line 903 of file screen.cc.
References ELEM, LISTBASE_FOREACH, min, size(), SPACE_TYPE_ANY, and ScrArea::winx.
Referenced by blender::ed::object::bake_init_api_data(), blend_file_thumb_from_camera(), ED_view3d_context_activate(), render_view_open(), texture_paint_image_from_view_exec(), texture_paint_image_from_view_poll(), wm_file_write(), and wm_window_new_exec().
Definition at line 645 of file screen.cc.
References BKE_screen_sort_scrvert(), LISTBASE_FOREACH, and v2.
Referenced by area_findsharededge(), BKE_screen_remove_unused_scredges(), and screen_geom_vertices_scale_pass().
| ARegion ARegion * BKE_screen_find_main_region_at_xy | ( | const bScreen * | screen, |
| int | space_type, | ||
| const int | xy[2] ) |
Referenced by ui_button_press_invoke().
| void BKE_screen_foreach_id_screen_area | ( | LibraryForeachIDData * | data, |
| ScrArea * | area ) |
Callback used by lib_query to walk over all ID usages (mimics foreach_id callback of IDTypeInfo structure).
Definition at line 84 of file screen.cc.
References BKE_LIB_FOREACHID_PROCESS_IDSUPER, BKE_spacetype_from_id(), SpaceType::foreach_id, IDWALK_CB_NOP, and LISTBASE_FOREACH.
Referenced by screen_foreach_id(), and window_manager_foreach_id().
| void BKE_screen_free_data | ( | bScreen * | screen | ) |
Free (or release) any data used by this screen (does not free the screen itself).
Definition at line 634 of file screen.cc.
References screen_free_data().
Referenced by screen_data_copy().
Definition at line 469 of file screen.cc.
References LISTBASE_FOREACH, and region_refresh_tag_gizmomap_callback.
Referenced by setup_app_data().
| void BKE_screen_header_alignment_reset | ( | bScreen * | screen | ) |
Definition at line 1018 of file screen.cc.
References ELEM, LISTBASE_FOREACH, RGN_ALIGN_BOTTOM, RGN_ALIGN_TOP, RGN_TYPE_FOOTER, RGN_TYPE_HEADER, RGN_TYPE_TOOL_HEADER, SPACE_FILE, SPACE_OUTLINER, SPACE_PROPERTIES, SPACE_USERPREF, and USER_HEADER_BOTTOM.
Referenced by ED_screens_init().
| bool BKE_screen_is_fullscreen_area | ( | const bScreen * | screen | ) |
Definition at line 1008 of file screen.cc.
References ELEM, SCREENFULL, and SCREENMAXIMIZED.
Referenced by ED_workspace_layout_delete(), ED_workspace_layout_duplicate(), wm_check_screen_switch_supported(), and workspace_layout_set_poll().
| bool BKE_screen_is_used | ( | const bScreen * | screen | ) |
Definition at line 1013 of file screen.cc.
Referenced by screen_is_used_by_other_window(), and workspace_layout_set_poll().
| ARegion ARegion ScrArea std::optional< std::string > BKE_screen_path_from_screen_to_space | ( | const PointerRNA * | ptr | ) |
Definition at line 883 of file screen.cc.
References BLI_assert_unreachable, BLI_findindex(), PointerRNA::data, GS, ID_SCR, LISTBASE_FOREACH_INDEX, ID::name, PointerRNA::owner_id, and ptr.
| void BKE_screen_remove_double_scredges | ( | bScreen * | screen | ) |
Definition at line 718 of file screen.cc.
References BLI_remlink(), LISTBASE_FOREACH, MEM_freeN(), ScrEdge::next, ScrEdge::v1, and ScrEdge::v2.
Referenced by area_join_exit(), area_move_exit(), area_split(), area_split_exit(), and blo_do_versions_280().
| void BKE_screen_remove_double_scrverts | ( | bScreen * | screen | ) |
Definition at line 666 of file screen.cc.
References BKE_screen_sort_scrvert(), BLI_remlink(), LISTBASE_FOREACH, LISTBASE_FOREACH_MUTABLE, MEM_freeN(), ScrVert::newv, ScrVert::next, ScrVert::vec, vec2s::x, and vec2s::y.
Referenced by area_move_exit(), area_split(), area_split_exit(), and screen_area_join_aligned().
| void BKE_screen_remove_unused_scredges | ( | bScreen * | screen | ) |
Definition at line 734 of file screen.cc.
References BKE_screen_find_edge(), BLI_remlink(), ScrEdge::flag, LISTBASE_FOREACH_INDEX, LISTBASE_FOREACH_MUTABLE, MEM_freeN(), and printf.
Referenced by area_join_exit(), area_split(), and blo_do_versions_280().
| void BKE_screen_remove_unused_scrverts | ( | bScreen * | screen | ) |
Definition at line 779 of file screen.cc.
References BLI_remlink(), LISTBASE_FOREACH, LISTBASE_FOREACH_MUTABLE, and MEM_freeN().
Referenced by area_join_exit(), and blo_do_versions_280().
| void BKE_screen_runtime_refresh_for_blendfile | ( | bScreen * | screen | ) |
Refresh any screen data that should be set on file-load with "Load UI" disabled.
Definition at line 484 of file screen.cc.
References LISTBASE_FOREACH.
Referenced by setup_app_data().
Definition at line 657 of file screen.cc.
References v2.
Referenced by BKE_screen_area_map_blend_read_data(), BKE_screen_find_edge(), BKE_screen_remove_double_scrverts(), screen_data_copy(), and screen_geom_edge_add_ex().
And as patch for 2.48 and older. For the saved 2.50 files without regiondata.
Definition at line 1265 of file screen.cc.
References copy_qt_qt(), copy_v3_v3(), RegionView3D::dist, View3D::gridsubdiv, LISTBASE_FOREACH, MEM_callocN, RegionView3D::ofs, RegionView3D::persp, RGN_TYPE_WINDOW, RegionView3D::view, and RegionView3D::viewquat.
Referenced by area_add_window_regions(), direct_link_area(), and view3d_space_blend_read_data().
Definition at line 963 of file screen.cc.
References BKE_screen_view3d_sync(), LISTBASE_FOREACH, and SPACE_VIEW3D.
Referenced by ed_marker_camera_bind_exec(), ed_marker_move_apply(), ED_update_for_newframe(), ED_workspace_scene_data_sync(), screen_change_update(), and setup_app_data().
| void BKE_screen_view3d_shading_blend_read_data | ( | BlendDataReader * | reader, |
| View3DShading * | shading ) |
Definition at line 1055 of file screen.cc.
References BLO_read_struct, and IDP_BlendDataRead.
Referenced by direct_link_wm_xr_data(), scene_blend_read_data(), and view3d_space_blend_read_data().
| void BKE_screen_view3d_shading_blend_write | ( | BlendWriter * | writer, |
| View3DShading * | shading ) |
Definition at line 1048 of file screen.cc.
References IDP_BlendWrite().
Referenced by scene_blend_write(), view3d_space_blend_write(), and write_wm_xr_data().
| void BKE_screen_view3d_shading_init | ( | View3DShading * | shading | ) |
Definition at line 976 of file screen.cc.
References DNA_struct_default_get.
Referenced by blo_do_versions_280(), and object_preview_render().
Definition at line 945 of file screen.cc.
References View3D::camera, LISTBASE_FOREACH, View3D::localvd, RegionView3D::persp, View3D::regionbase, RGN_TYPE_WINDOW, RV3D_CAMOB, RV3D_PERSP, and View3D::scenelock.
Referenced by BKE_screen_view3d_scene_sync(), screen_set_3dview_camera(), and view3d_main_region_listener().
Definition at line 1003 of file screen.cc.
References M_SQRT2, and sqrtf.
Referenced by ED_view3d_camera_view_zoom_scale(), view3d_center_camera_exec(), view3d_set_1_to_1_viewborder(), and view_zoom_to_window_xy_camera().
Definition at line 998 of file screen.cc.
Referenced by BKE_camera_params_from_view3d(), ED_view3d_camera_view_pan(), ED_view3d_camera_view_zoom_scale(), ED_view3d_win_to_3d(), view_zoom_to_window_xy_camera(), and viewzoom_apply_camera().
| void BKE_spacedata_callback_id_remap_set | ( | void(* | func )(ScrArea *area, SpaceLink *sl, ID *old_id, ID *new_id) | ) |
Definition at line 447 of file screen.cc.
References spacedata_id_remap_cb.
Referenced by WM_init().
| lb_dst | should be empty (will be cleared). |
Definition at line 388 of file screen.cc.
References BKE_spacetype_from_id(), BLI_addtail(), BLI_listbase_clear(), SpaceType::duplicate, LISTBASE_FOREACH, region_copylist(), and SpaceLink::regionbase.
Referenced by ED_area_data_copy().
| void BKE_spacedata_draw_locks | ( | bool | set | ) |
Facility to set locks for drawing to survive (render) threads accessing drawing data.
Definition at line 405 of file screen.cc.
References get_space_types(), and LISTBASE_FOREACH.
Referenced by dpaint_bake_endjob(), dpaint_bake_startjob(), fluid_bake_endjob(), fluid_bake_startjob(), fluid_free_endjob(), fluid_free_startjob(), render_drawlock(), and WM_set_locked_interface().
| ARegion * BKE_spacedata_find_region_type | ( | const SpaceLink * | slink, |
| const ScrArea * | area, | ||
| int | region_type ) |
Version of BKE_area_find_region_type that also works if slink is not the active space of area.
Definition at line 419 of file screen.cc.
References BKE_area_find_region_type(), BLI_assert, BLI_findindex(), LISTBASE_FOREACH, and SpaceLink::regionbase.
Referenced by blo_do_versions_280().
| void BKE_spacedata_freelist | ( | ListBase * | lb | ) |
Definition at line 291 of file screen.cc.
References BKE_area_region_free(), BKE_spacetype_from_id(), BLI_freelistN(), SpaceType::free, and LISTBASE_FOREACH.
Referenced by BKE_screen_area_free(), ED_area_data_copy(), and spacedata_cleanup_exec().
| bool BKE_spacetype_exists | ( | int | spaceid | ) |
Definition at line 280 of file screen.cc.
References BKE_spacetype_from_id().
Referenced by direct_link_area().
Definition at line 243 of file screen.cc.
References get_space_types().
Referenced by area_init_type_fallback(), area_offscreen_init(), BKE_screen_area_blend_read_after_liblink(), BKE_screen_area_free(), BKE_screen_foreach_id_screen_area(), BKE_spacedata_copylist(), BKE_spacedata_freelist(), BKE_spacetype_exists(), BKE_spacetype_register(), blo_do_versions_250(), blo_do_versions_280(), blender::ui::bonedropper_init(), datadropper_init(), depthdropper_init(), direct_link_area(), do_version_area_change_space_to_space_action(), DRW_draw_callbacks_post_scene(), ED_area_data_copy(), ED_area_init(), ED_area_newspace(), ED_spacedata_id_remap(), ED_spacedata_id_remap_single(), ED_view3d_buttons_region_layout_ex(), pyrna_callback_classmethod_add(), pyrna_callback_classmethod_remove(), screen_area_spacelink_add(), uiItemPopoverPanelFromGroup(), wm_xr_raycast_init(), wm_xr_raycast_uninit(), and write_area().
| void BKE_spacetype_register | ( | std::unique_ptr< SpaceType > | st | ) |
Definition at line 268 of file screen.cc.
References BKE_spacetype_from_id(), get_space_types(), SpaceType::name, and printf.
Referenced by ED_spacetype_action(), ED_spacetype_buttons(), ED_spacetype_clip(), ED_spacetype_console(), ED_spacetype_file(), ED_spacetype_image(), ED_spacetype_info(), ED_spacetype_ipo(), ED_spacetype_nla(), ED_spacetype_node(), ED_spacetype_outliner(), ED_spacetype_script(), ED_spacetype_sequencer(), ED_spacetype_statusbar(), ED_spacetype_text(), ED_spacetype_topbar(), ED_spacetype_userpref(), ED_spacetype_view3d(), and blender::ed::spreadsheet::register_spacetype().
| void BKE_spacetypes_free | ( | ) |
Definition at line 238 of file screen.cc.
References get_space_types().
Referenced by BKE_blender_free().
| blender::Span< std::unique_ptr< SpaceType > > BKE_spacetypes_list | ( | ) |
Definition at line 263 of file screen.cc.
References get_space_types().
Referenced by ED_spacemacros_init(), ED_spacetypes_init(), and ED_spacetypes_keymap().
| ENUM_OPERATORS | ( | AssetShelfTypeFlag | , |
| ASSET_SHELF_TYPE_FLAG_MAX | ) |