|
Blender
V2.93
|
#include <math.h>#include <stdio.h>#include <string.h>#include "MEM_guardedalloc.h"#include "DNA_collection_types.h"#include "DNA_defaults.h"#include "DNA_gpencil_types.h"#include "DNA_mask_types.h"#include "DNA_scene_types.h"#include "DNA_screen_types.h"#include "DNA_space_types.h"#include "DNA_text_types.h"#include "DNA_view3d_types.h"#include "DNA_workspace_types.h"#include "BLI_listbase.h"#include "BLI_math_vector.h"#include "BLI_mempool.h"#include "BLI_rect.h"#include "BLI_utildefines.h"#include "BLT_translation.h"#include "BKE_gpencil.h"#include "BKE_icons.h"#include "BKE_idprop.h"#include "BKE_idtype.h"#include "BKE_lib_id.h"#include "BKE_lib_query.h"#include "BKE_node.h"#include "BKE_screen.h"#include "BKE_workspace.h"#include "BLO_read_write.h"Go to the source code of this file.
Macros | |
| #define | DNA_DEPRECATED_ALLOW |
Variables | |
| IDTypeInfo | IDType_ID_SCR |
| static ListBase | spacetypes = {NULL, NULL} |
| static void(* | spacedata_id_remap_cb )(struct ScrArea *area, struct SpaceLink *sl, ID *old_id, ID *new_id) = NULL |
| static void(* | region_refresh_tag_gizmomap_callback )(struct wmGizmoMap *) = NULL |
| static void(* | region_free_gizmomap_callback )(struct wmGizmoMap *) = NULL |
|
static |
Definition at line 641 of file screen.c.
References Panel::activedata, Panel::children, LISTBASE_FOREACH_MUTABLE, MEM_freeN, and MEM_SAFE_FREE.
Referenced by BKE_area_region_panels_free().
Definition at line 918 of file screen.c.
References blender::compositor::area(), BKE_area_find_region_type(), BLI_findlink(), NULL, ARegion::regiontype, 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 905 of file screen.c.
References blender::compositor::area(), LISTBASE_FOREACH, and NULL.
Referenced by BKE_area_find_region_active_win(), and BKE_spacedata_find_region_type().
Definition at line 933 of file screen.c.
References blender::compositor::area(), BLI_rcti_isect_pt(), ELEM, LISTBASE_FOREACH, NULL, RGN_TYPE_ANY, x, and y.
Referenced by annotation_draw_modal(), BKE_screen_find_main_region_at_xy(), datadropper_id_sample_pt(), depthdropper_depth_sample_pt(), eyedropper_color_sample_fl(), eyedropper_cryptomatte_sample_fl(), eyedropper_get_property_button_under_mouse(), gpencil_draw_modal(), gpencil_fill_modal(), sample_detail(), and wm_handler_op_context().
Definition at line 475 of file screen.c.
References BKE_regiontype_from_id(), BLI_duplicatelist(), BLI_listbase_clear(), ARegion::draw_buffer, ARegionType::duplicate, ARegion::flag, ARegion::gizmo_map, ARegion::handlers, ARegion::headerstr, MEM_dupallocN, ARegion::next, NULL, panel_list_copy(), ARegion::panels, ARegion::panels_category, ARegion::panels_category_active, ARegion::prev, ARegion::regiondata, ARegion::regiontimer, ARegion::regiontype, RGN_FLAG_TEMP_REGIONDATA, ARegion::ui_lists, ARegion::ui_previews, ARegion::uiblocks, and ARegion::visible.
Referenced by region_copylist().
Definition at line 663 of file screen.c.
References BKE_area_region_panels_free(), BKE_regiontype_from_id(), BLI_freelistN(), ARegionType::free, ARegion::gizmo_map, IDP_FreeProperty(), uiListDyn::items_filter_flags, uiListDyn::items_filter_neworder, LISTBASE_FOREACH, MEM_freeN, NULL, ARegion::panels, ARegion::panels_category, ARegion::panels_category_active, region_free_gizmomap_callback, ARegion::regiondata, ARegion::regiontype, ARegion::type, ARegion::ui_lists, and ARegion::ui_previews.
Referenced by 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(), screen_free_data(), and ui_region_temp_remove().
| void BKE_area_region_panels_free | ( | ListBase * | panels | ) |
Definition at line 652 of file screen.c.
References area_region_panels_free_recursive(), BLI_listbase_clear(), LISTBASE_FOREACH_MUTABLE, and MEM_SAFE_FREE.
Referenced by BKE_area_region_free(), blo_update_defaults_screen(), and ED_region_property_search().
| void BKE_region_callback_free_gizmomap_set | ( | void(*)(struct wmGizmoMap *) | callback | ) |
Definition at line 636 of file screen.c.
References callback, and region_free_gizmomap_callback.
Referenced by WM_init().
| void BKE_region_callback_refresh_tag_gizmomap_set | ( | void(*)(struct wmGizmoMap *) | callback | ) |
Definition at line 611 of file screen.c.
References callback, and region_refresh_tag_gizmomap_callback.
Referenced by WM_init().
| ARegionType* BKE_regiontype_from_id | ( | const SpaceType * | st, |
| int | regionid | ||
| ) |
Definition at line 405 of file screen.c.
References LISTBASE_FOREACH, NULL, and SpaceType::regiontypes.
Referenced by BKE_area_region_copy(), and BKE_area_region_free().
| ARegionType* BKE_regiontype_from_id_or_first | ( | const SpaceType * | st, |
| int | regionid | ||
| ) |
Definition at line 392 of file screen.c.
References ListBase::first, LISTBASE_FOREACH, SpaceType::name, SpaceType::regiontypes, and SpaceType::spaceid.
| void BKE_screen_area_blend_read_lib | ( | BlendLibReader * | reader, |
| ID * | parent_id, | ||
| ScrArea * | area | ||
| ) |
Definition at line 1802 of file screen.c.
References SpaceAction::action, SpaceAction::ads, SpaceGraph::ads, SpaceNla::ads, blender::compositor::area(), BLI_mempool_iternew(), BLI_mempool_iterstep(), BLI_remlink(), BLO_read_id_address, View3D::camera, SpaceClip::clip, context, SpaceSpreadsheet::context_path, SpaceNode::edittree, FILE_TAG_REBUILD_MAIN_FILES, bDopeSheet::filter_grp, ListBase::first, SpaceProperties::flag, SpaceNode::from, SpaceSeq::gpd, SpaceImage::gpd, TreeStoreElem::id, SpaceNode::id, SpaceImage::image, ListBase::last, ID::lib, LISTBASE_FOREACH, View3D::localvd, MaskSpaceInfo::mask, SpaceImage::mask_info, SpaceClip::mask_info, MEM_freeN, bNodeTreePath::next, bNodeTreePath::nodetree, SpaceNode::nodetree, ntree, ntreeFromID(), NULL, View3D::ob_center, SpaceProperties::pinid, SB_PIN_CONTEXT, SpaceScript::script, SCRIPT_SET_NULL, SpaceOutliner::search_tse, SO_TREESTORE_REBUILD, bDopeSheet::source, SPACE_ACTION, SPACE_CLIP, SPACE_FILE, SPACE_GRAPH, SPACE_IMAGE, SPACE_NLA, SPACE_NODE, SPACE_OUTLINER, SPACE_PROPERTIES, SPACE_SCRIPT, SPACE_SEQ, SPACE_SPREADSHEET, SPACE_TEXT, SPACE_VIEW3D, SpaceLink::spacetype, SPREADSHEET_CONTEXT_OBJECT, SpaceOutliner::storeflag, SpaceFile::tags, SpaceText::text, SpaceNode::treepath, and SpaceOutliner::treestore.
Referenced by screen_blend_read_lib(), and window_manager_blend_read_lib().
| void BKE_screen_area_free | ( | ScrArea * | area | ) |
Definition at line 709 of file screen.c.
References blender::compositor::area(), 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_swapspace(), and screen_delarea().
| bool BKE_screen_area_map_blend_read_data | ( | BlendDataReader * | reader, |
| ScrAreaMap * | area_map | ||
| ) |
Definition at line 1777 of file screen.c.
References blender::compositor::area(), ScrAreaMap::areabase, BKE_screen_sort_scrvert(), BLI_remlink(), BLO_read_data_address, BLO_read_list(), direct_link_area(), ScrAreaMap::edgebase, LISTBASE_FOREACH, NULL, 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 1390 of file screen.c.
References blender::compositor::area(), 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, |
| const int | spacetype, | ||
| int | x, | ||
| int | y | ||
| ) |
Definition at line 1003 of file screen.c.
References blender::compositor::area(), ScrAreaMap::areabase, BLI_rcti_isect_pt(), ELEM, LISTBASE_FOREACH, NULL, SPACE_TYPE_ANY, x, and y.
Referenced by BKE_screen_find_area_xy().
| void BKE_screen_area_map_free | ( | ScrAreaMap * | area_map | ) |
Definition at line 725 of file screen.c.
References blender::compositor::area(), 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 | ||
| ) |
Definition at line 273 of file screen.c.
References bScreen::active_region, AREAMAP_FROM_SCREEN, BKE_previewimg_blend_read(), BKE_screen_area_map_blend_read_data(), BLO_read_data_address, bScreen::context, ListBase::first, bScreen::id, ListBase::last, ID::name, NULL, bScreen::preview, and bScreen::regionbase.
Referenced by direct_link_id().
Definition at line 968 of file screen.c.
References blender::compositor::area(), bScreen::areabase, BLI_findindex(), LISTBASE_FOREACH, and NULL.
Definition at line 1018 of file screen.c.
References AREAMAP_FROM_SCREEN, BKE_screen_area_map_find_area_xy(), x, and y.
Referenced by actionzone_modal(), area_join_modal(), area_split_modal(), area_swap_modal(), BKE_screen_find_main_region_at_xy(), datadropper_id_sample_pt(), datadropper_set_draw_callback_region(), depthdropper_depth_sample_pt(), eyedropper_color_sample_fl(), eyedropper_cryptomatte_sample_fl(), eyedropper_get_property_button_under_mouse(), sample_detail(), and screen_area_edge_from_cursor().
Definition at line 983 of file screen.c.
References blender::compositor::area(), bScreen::areabase, ELEM, LISTBASE_FOREACH, NULL, size(), and SPACE_TYPE_ANY.
Referenced by bake_init_api_data(), blend_file_thumb(), ED_view3d_context_activate(), get_invoke_region(), get_invoke_view3d(), render_view_open(), texture_paint_image_from_view_exec(), texture_paint_image_from_view_poll(), and wm_window_new_exec().
Definition at line 744 of file screen.c.
References BKE_screen_sort_scrvert(), bScreen::edgebase, LISTBASE_FOREACH, NULL, v1, and v2.
Referenced by BKE_screen_remove_unused_scredges().
| ARegion* BKE_screen_find_main_region_at_xy | ( | bScreen * | screen, |
| const int | space_type, | ||
| const int | x, | ||
| const int | y | ||
| ) |
Definition at line 1060 of file screen.c.
References blender::compositor::area(), BKE_area_find_region_xy(), BKE_screen_find_area_xy(), NULL, RGN_TYPE_WINDOW, x, and y.
Referenced by face_set_extract_modal(), and object_transfer_mode_modal().
Definition at line 952 of file screen.c.
References BLI_rcti_isect_pt(), ELEM, LISTBASE_FOREACH, NULL, bScreen::regionbase, RGN_TYPE_ANY, x, and y.
Referenced by ui_button_press_invoke().
| void BKE_screen_foreach_id_screen_area | ( | LibraryForeachIDData * | data, |
| ScrArea * | area | ||
| ) |
Definition at line 100 of file screen.c.
References SpaceAction::action, SpaceAction::ads, SpaceGraph::ads, SpaceNla::ads, blender::compositor::area(), BKE_LIB_FOREACHID_PROCESS, BKE_LIB_FOREACHID_PROCESS_ID, BLI_mempool_iternew(), BLI_mempool_iterstep(), View3D::camera, SpaceClip::clip, context, SpaceSpreadsheet::context_path, data, SpaceNode::edittree, ListBase::first, SpaceNode::from, SpaceSeq::gpd, SpaceImage::gpd, TreeStoreElem::id, SpaceNode::id, IDWALK_CB_EMBEDDED, IDWALK_CB_NOP, IDWALK_CB_USER, IDWALK_CB_USER_ONE, SpaceImage::image, LISTBASE_FOREACH, View3D::localvd, MaskSpaceInfo::mask, SpaceImage::mask_info, SpaceClip::mask_info, SpaceNode::nodetree, ntreeFromID(), NULL, View3D::ob_center, SpaceProperties::pinid, screen_foreach_id_dopesheet(), SpaceScript::script, SpaceOutliner::search_tse, SPACE_ACTION, SPACE_CLIP, SPACE_FILE, SPACE_GRAPH, SPACE_IMAGE, SPACE_NLA, SPACE_NODE, SPACE_OUTLINER, SPACE_PROPERTIES, SPACE_SCRIPT, SPACE_SEQ, SPACE_SPREADSHEET, SPACE_TEXT, SPACE_VIEW3D, SPREADSHEET_CONTEXT_OBJECT, SpaceText::text, SpaceNode::treepath, and SpaceOutliner::treestore.
Referenced by screen_foreach_id(), and window_manager_foreach_id().
| void BKE_screen_free | ( | bScreen * | screen | ) |
Free (or release) any data used by this screen (does not free the screen itself).
Definition at line 737 of file screen.c.
References bScreen::id, and screen_free_data().
Referenced by screen_data_copy().
| void BKE_screen_gizmo_tag_refresh | ( | struct bScreen * | screen | ) |
Definition at line 616 of file screen.c.
References blender::compositor::area(), bScreen::areabase, LISTBASE_FOREACH, NULL, and region_refresh_tag_gizmomap_callback.
Referenced by setup_app_data().
| void BKE_screen_header_alignment_reset | ( | bScreen * | screen | ) |
Definition at line 1100 of file screen.c.
References blender::compositor::area(), bScreen::areabase, bScreen::do_refresh, 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 1090 of file screen.c.
References ELEM, SCREENFULL, SCREENMAXIMIZED, and bScreen::state.
| bool BKE_screen_is_used | ( | const bScreen * | screen | ) |
Definition at line 1095 of file screen.c.
References bScreen::winid.
| void BKE_screen_remove_double_scredges | ( | bScreen * | screen | ) |
Definition at line 817 of file screen.c.
References BLI_remlink(), bScreen::edgebase, 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 765 of file screen.c.
References blender::compositor::area(), bScreen::areabase, BKE_screen_sort_scrvert(), BLI_remlink(), bScreen::edgebase, LISTBASE_FOREACH, LISTBASE_FOREACH_MUTABLE, MEM_freeN, NULL, v1, and bScreen::vertbase.
Referenced by area_move_exit(), area_split(), area_split_exit(), and screen_area_join().
| void BKE_screen_remove_unused_scredges | ( | bScreen * | screen | ) |
Definition at line 833 of file screen.c.
References Freestyle::a, blender::compositor::area(), bScreen::areabase, BKE_screen_find_edge(), BLI_remlink(), bScreen::edgebase, ScrEdge::flag, LISTBASE_FOREACH_INDEX, LISTBASE_FOREACH_MUTABLE, MEM_freeN, and NULL.
Referenced by area_join_exit(), area_split(), and blo_do_versions_280().
| void BKE_screen_remove_unused_scrverts | ( | bScreen * | screen | ) |
Definition at line 878 of file screen.c.
References BLI_remlink(), bScreen::edgebase, LISTBASE_FOREACH, LISTBASE_FOREACH_MUTABLE, MEM_freeN, and bScreen::vertbase.
Referenced by area_join_exit(), and blo_do_versions_280().
Definition at line 756 of file screen.c.
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().
Definition at line 1485 of file screen.c.
References copy_qt_qt(), copy_v3_v3(), RegionView3D::dist, View3D::gridsubdiv, LISTBASE_FOREACH, MEM_callocN, NULL, RegionView3D::ofs, RegionView3D::persp, RGN_TYPE_WINDOW, RegionView3D::view, and RegionView3D::viewquat.
Referenced by area_add_window_regions(), and direct_link_area().
Definition at line 1041 of file screen.c.
References blender::compositor::area(), bScreen::areabase, BKE_screen_view3d_sync(), LISTBASE_FOREACH, scene, SPACE_VIEW3D, and SpaceLink::spacetype.
Referenced by 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 1131 of file screen.c.
References BLO_read_data_address, IDP_BlendDataRead, and View3DShading::prop.
Referenced by direct_link_area(), direct_link_wm_xr_data(), and scene_blend_read_data().
| void BKE_screen_view3d_shading_blend_write | ( | BlendWriter * | writer, |
| View3DShading * | shading | ||
| ) |
Definition at line 1124 of file screen.c.
References IDP_BlendWrite(), and View3DShading::prop.
Referenced by scene_blend_write(), write_area(), and write_wm_xr_data().
| void BKE_screen_view3d_shading_init | ( | View3DShading * | shading | ) |
Definition at line 1054 of file screen.c.
References DNA_struct_default_get.
Referenced by blo_do_versions_280().
Definition at line 1023 of file screen.c.
References Scene::camera, View3D::camera, LISTBASE_FOREACH, View3D::localvd, NULL, RegionView3D::persp, View3D::regionbase, RGN_TYPE_WINDOW, RV3D_CAMOB, RV3D_PERSP, scene, and View3D::scenelock.
Referenced by BKE_screen_view3d_scene_sync(), screen_set_3dview_camera(), and view3d_main_region_listener().
Definition at line 1085 of file screen.c.
References M_SQRT2, and sqrtf.
Referenced by view3d_center_camera_exec(), view3d_set_1_to_1_viewborder(), and view_zoom_to_window_xy_camera().
Definition at line 1080 of file screen.c.
Referenced by BKE_camera_params_from_view3d(), ED_view3d_win_to_3d(), view_zoom_to_window_xy_camera(), viewmove_apply(), and viewzoom_apply_camera().
Definition at line 593 of file screen.c.
References spacedata_id_remap_cb.
Definition at line 527 of file screen.c.
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 | ) |
Definition at line 547 of file screen.c.
References LISTBASE_FOREACH, and spacetypes.
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 565 of file screen.c.
References blender::compositor::area(), BKE_area_find_region_type(), BLI_assert, BLI_findindex(), LISTBASE_FOREACH, NULL, and SpaceLink::regionbase.
| void BKE_spacedata_freelist | ( | ListBase * | lb | ) |
Definition at line 440 of file screen.c.
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().
Definition at line 599 of file screen.c.
References blender::compositor::area(), NULL, and spacedata_id_remap_cb.
| bool BKE_spacetype_exists | ( | int | spaceid | ) |
Definition at line 433 of file screen.c.
References BKE_spacetype_from_id(), and NULL.
Referenced by direct_link_area().
| SpaceType* BKE_spacetype_from_id | ( | int | spaceid | ) |
Definition at line 382 of file screen.c.
References LISTBASE_FOREACH, NULL, and spacetypes.
Referenced by BKE_screen_area_free(), BKE_spacedata_copylist(), BKE_spacedata_freelist(), BKE_spacetype_exists(), BKE_spacetype_register(), blo_do_versions_250(), blo_do_versions_280(), datadropper_init(), depthdropper_init(), do_version_area_change_space_to_space_action(), ED_area_data_copy(), ED_area_init(), ED_area_newspace(), ED_spacedata_id_remap(), ED_view3d_buttons_region_layout_ex(), pyrna_callback_classmethod_add(), pyrna_callback_classmethod_remove(), screen_global_area_refresh(), and uiItemPopoverPanelFromGroup().
| void BKE_spacetype_register | ( | SpaceType * | st | ) |
Definition at line 420 of file screen.c.
References BKE_spacetype_from_id(), BLI_addtail(), MEM_freeN, SpaceType::name, SpaceType::spaceid, spacetype_free(), and spacetypes.
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_spreadsheet(), ED_spacetype_statusbar(), ED_spacetype_text(), ED_spacetype_topbar(), ED_spacetype_userpref(), ED_spacetype_view3d(), and ED_spacetype_xxx().
| void BKE_spacetypes_free | ( | void | ) |
Definition at line 373 of file screen.c.
References BLI_freelistN(), LISTBASE_FOREACH, spacetype_free(), and spacetypes.
Referenced by BKE_blender_free().
| const ListBase* BKE_spacetypes_list | ( | void | ) |
Definition at line 415 of file screen.c.
References spacetypes.
Referenced by ED_spacemacros_init(), ED_spacetypes_init(), and ED_spacetypes_keymap().
|
static |
Definition at line 1506 of file screen.c.
References SpaceGraph::ads, SpaceNla::ads, blender::compositor::area(), AREA_FLAG_ACTIVE_TOOL_UPDATE, SpaceFile::asset_params, BKE_gpencil_blend_read_data(), BKE_screen_view3d_do_versions_250(), BKE_screen_view3d_shading_blend_read_data(), BKE_spacetype_exists(), BLI_addtail(), BLI_listbase_clear(), BLI_mempool_alloc(), BLI_MEMPOOL_ALLOW_ITER, BLI_mempool_create(), BLI_remlink(), BLO_read_data_address, BLO_read_get_new_data_address_no_us(), BLO_read_list(), SpaceSpreadsheet::columns, context, SpaceSpreadsheet::context_path, TreeStore::data, direct_link_region(), SpaceNode::edittree, SpaceFile::files, ListBase::first, View3D_Runtime::flag, SpaceFile::folder_histories, SpaceFile::folders_next, SpaceFile::folders_prev, SpaceGraph_Runtime::ghost_curves, SpaceSeq::gpd, SpaceImage::gpd, SpaceNode::gpd, SequencerScopes::histogram_ibuf, SpaceConsole::history, SpaceImage::iuser, ListBase::last, SpaceFile::layout, LISTBASE_FOREACH, LISTBASE_FOREACH_MUTABLE, View3D::localvd, SpaceProperties::mainb, SpaceProperties::mainbo, SpaceProperties::mainbuser, MEM_callocN, MEM_freeN, SpreadsheetContextModifier::modifier_name, newdataadr(), node_context(), NULL, OB_RENDER, OB_SOLID, Scopes::ok, ImageUser::ok, MovieClipScopes::ok, SpaceFile::op, SpaceFile::params, SpaceProperties::path, View3DShading::prev_type, SpaceFile::previews_timer, View3D_Runtime::properties_storage, SequencerScopes::reference_ibuf, SpaceLink::regionbase, SpaceProperties::runtime, SpaceOutliner::runtime, SpaceGraph::runtime, SpaceFile::runtime, SpaceText::runtime, SpaceNode::runtime, SpaceSpreadsheet::runtime, View3D::runtime, ImageUser::scene, SpaceSeq::scopes, SpaceImage::scopes, SpaceClip::scopes, SpaceConsole::scrollback, SequencerScopes::sep_waveform_ibuf, View3D::shading, SO_TREESTORE_CLEANUP, SPACE_CLIP, SPACE_CONSOLE, SPACE_EMPTY, SPACE_FILE, SPACE_GRAPH, SPACE_IMAGE, SPACE_INFO, SPACE_NLA, SPACE_NODE, SPACE_OUTLINER, SPACE_PROPERTIES, SPACE_SEQ, SPACE_SPREADSHEET, SPACE_TEXT, SPACE_VIEW3D, SpaceLink::spacetype, SpaceInfo::spacetype, SPREADSHEET_CONTEXT_MODIFIER, SPREADSHEET_CONTEXT_NODE, SPREADSHEET_CONTEXT_OBJECT, SpaceOutliner::storeflag, SpaceFile::tags, SpaceProperties::texuser, MovieClipScopes::track_preview, MovieClipScopes::track_search, SpaceOutliner::tree, SpaceNode::treepath, SpaceOutliner::treestore, View3DShading::type, TreeStore::usedelem, Scopes::vecscope, SequencerScopes::vector_ibuf, Scopes::waveform_1, Scopes::waveform_2, Scopes::waveform_3, SequencerScopes::waveform_ibuf, and SequencerScopes::zebra_ibuf.
Referenced by BKE_screen_area_map_blend_read_data().
|
static |
Definition at line 1407 of file screen.c.
References BLO_read_list(), LISTBASE_FOREACH, and NULL.
Referenced by direct_link_region().
|
static |
Definition at line 1420 of file screen.c.
References View2D::alpha_hor, View2D::alpha_vert, BLI_listbase_clear(), BLO_read_data_address, BLO_read_list(), RegionView3D::clipbb, RegionView3D::depths, direct_link_panel_list(), ARegion::do_draw, ARegion::draw_buffer, ARegion::drawrct, ARegion::flag, ARegion::gizmo_map, ARegion::handlers, ARegion::headerstr, IDP_BlendDataRead, LISTBASE_FOREACH, RegionView3D::localvd, NULL, ARegion::panels, ARegion::panels_category, ARegion::panels_category_active, ARegion::regiondata, ARegion::regiontimer, RegionView3D::render_engine, RegionView3D::rflag, RGN_FLAG_SEARCH_FILTER_ACTIVE, RGN_FLAG_TEMP_REGIONDATA, RegionView3D::runtime_viewlock, RV3D_NAVIGATING, RV3D_PAINTING, RegionView3D::smooth_timer, View2D::sms, RegionView3D::sms, SPACE_EMPTY, SPACE_VIEW3D, ARegion::type, ARegion::ui_lists, ARegion::ui_previews, ARegion::uiblocks, ARegion::v2d, and ARegion::visible.
Referenced by direct_link_area().
Definition at line 460 of file screen.c.
References Panel::activedata, BLI_duplicatelist(), BLI_listbase_clear(), Panel::children, Panel_Runtime::custom_data_ptr, ListBase::first, Panel::next, NULL, and Panel::runtime.
Referenced by BKE_area_region_copy().
Definition at line 515 of file screen.c.
References BKE_area_region_copy(), BLI_addtail(), BLI_listbase_clear(), and LISTBASE_FOREACH.
Referenced by BKE_spacedata_copylist().
|
static |
Definition at line 294 of file screen.c.
References bScreen::animtimer, blender::compositor::area(), bScreen::areabase, BKE_screen_area_blend_read_lib(), BLO_read_id_address, bScreen::id, ID::lib, LISTBASE_FOREACH, NULL, bScreen::scrubbing, and bScreen::tool_tip.
|
static |
Definition at line 255 of file screen.c.
References AREAMAP_FROM_SCREEN, BKE_id_blend_write(), BKE_previewimg_blend_write(), BKE_screen_area_map_blend_write(), BLO_write_is_undo(), BLO_write_struct_at_address_with_filecode, bScreen::id, ID_SCRN, bScreen::preview, and ID::us.
|
static |
Definition at line 244 of file screen.c.
References blender::compositor::area(), bScreen::areabase, BKE_lib_query_foreachid_process_flags_get(), BKE_screen_foreach_id_screen_area(), data, IDWALK_INCLUDE_UI, and LISTBASE_FOREACH.
|
static |
Definition at line 92 of file screen.c.
References BKE_LIB_FOREACHID_PROCESS, BKE_LIB_FOREACHID_PROCESS_ID, data, bDopeSheet::filter_grp, IDWALK_CB_NOP, NULL, and bDopeSheet::source.
Referenced by BKE_screen_foreach_id_screen_area().
|
static |
Definition at line 72 of file screen.c.
References AREAMAP_FROM_SCREEN, BKE_area_region_free(), BKE_previewimg_free(), BKE_screen_area_map_free(), BLI_freelistN(), LISTBASE_FOREACH, MEM_SAFE_FREE, NULL, bScreen::preview, bScreen::regionbase, and bScreen::tool_tip.
Referenced by BKE_screen_free().
|
static |
Definition at line 344 of file screen.c.
References BLI_freelistN(), BPY_callback_screen_free(), LISTBASE_FOREACH, and SpaceType::regiontypes.
Referenced by BKE_spacetype_register(), and BKE_spacetypes_free().
|
static |
Definition at line 1231 of file screen.c.
References SpaceGraph::ads, SpaceNla::ads, blender::compositor::area(), SpaceFile::asset_params, BKE_screen_view3d_shading_blend_write(), BLI_listbase_clear(), BLO_write_raw(), BLO_write_string(), BLO_write_struct, SpaceScript::but_refs, SpaceSpreadsheet::columns, context, SpaceSpreadsheet::context_path, SpaceGraph_Runtime::ghost_curves, SpaceConsole::history, LISTBASE_FOREACH, View3D::localvd, SpreadsheetContextModifier::modifier_name, node_context(), NULL, SpaceFile::params, SpaceLink::regionbase, SpaceGraph::runtime, View3D::shading, SPACE_ACTION, SPACE_CLIP, SPACE_CONSOLE, SPACE_FILE, SPACE_GRAPH, SPACE_IMAGE, SPACE_INFO, SPACE_NLA, SPACE_NODE, SPACE_OUTLINER, SPACE_PROPERTIES, SPACE_SCRIPT, SPACE_SEQ, SPACE_SPREADSHEET, SPACE_STATUSBAR, SPACE_TEXT, SPACE_TOPBAR, SPACE_USERPREF, SPACE_VIEW3D, SpaceLink::spacetype, SPREADSHEET_CONTEXT_MODIFIER, SPREADSHEET_CONTEXT_NODE, SPREADSHEET_CONTEXT_OBJECT, SpaceNode::treepath, write_panel_list(), write_region(), write_space_outliner(), and write_uilist().
Referenced by BKE_screen_area_map_blend_write().
|
static |
Definition at line 1223 of file screen.c.
References BLO_write_struct, and LISTBASE_FOREACH.
Referenced by write_area().
|
static |
Definition at line 1139 of file screen.c.
References BLO_write_struct, RegionView3D::clipbb, ARegion::flag, RegionView3D::localvd, ARegion::regiondata, ARegion::regiontype, RGN_FLAG_TEMP_REGIONDATA, RGN_TYPE_WINDOW, and SPACE_VIEW3D.
Referenced by write_area().
|
static |
Definition at line 1180 of file screen.c.
References BLI_mempool_as_arrayN(), BLI_mempool_len(), BLO_write_struct, BLO_write_struct_array_at_address, BLO_write_struct_at_address, data, TreeStore::data, MEM_freeN, NULL, POINTER_OFFSET, SpaceOutliner::treestore, and TreeStore::usedelem.
Referenced by write_area().
|
static |
Definition at line 1171 of file screen.c.
References BLO_write_struct, IDP_BlendWrite(), and uiList::properties.
Referenced by write_area().
| IDTypeInfo IDType_ID_SCR |
|
static |
Avoid bad-level calls to #WM_gizmomap_delete.
Definition at line 634 of file screen.c.
Referenced by BKE_area_region_free(), and BKE_region_callback_free_gizmomap_set().
|
static |
Avoid bad-level calls to WM_gizmomap_tag_refresh.
Definition at line 609 of file screen.c.
Referenced by BKE_region_callback_refresh_tag_gizmomap_set(), and BKE_screen_gizmo_tag_refresh().
|
static |
Definition at line 588 of file screen.c.
Referenced by BKE_spacedata_callback_id_remap_set(), and BKE_spacedata_id_unref().
Definition at line 341 of file screen.c.
Referenced by BKE_spacedata_draw_locks(), BKE_spacetype_from_id(), BKE_spacetype_register(), BKE_spacetypes_free(), BKE_spacetypes_list(), ED_spacemacros_init(), ED_spacetypes_init(), and ED_spacetypes_keymap().