Blender
V3.3
|
#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_ghash.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 |
Definition at line 605 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 883 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().
Definition at line 870 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 898 of file screen.c.
References blender::compositor::area(), BLI_rcti_isect_pt_v(), ELEM, LISTBASE_FOREACH, NULL, RGN_TYPE_ANY, and xy.
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_get_if_valid().
Definition at line 446 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::runtime, usdtokens::st(), ARegion::ui_lists, ARegion::ui_previews, ARegion::uiblocks, and ARegion::visible.
Referenced by region_copylist().
Doesn't free the region itself.
Definition at line 626 of file screen.c.
References BKE_area_region_panels_free(), BKE_regiontype_from_id(), BLI_freelistN(), BLI_ghash_free(), ARegion_Runtime::block_name_map, ARegionType::free, ARegion::gizmo_map, IDP_FreeProperty(), LISTBASE_FOREACH, MEM_SAFE_FREE, NULL, ARegion::panels, ARegion::panels_category, ARegion::panels_category_active, region_free_gizmomap_callback, ARegion::regiondata, ARegion::regiontype, ARegion::runtime, usdtokens::st(), 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().
Definition at line 616 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 | ) |
Gizmo-maps of a region need to be freed with the region. Uses callback to avoid low-level call.
Definition at line 600 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 575 of file screen.c.
References callback, and region_refresh_tag_gizmomap_callback.
Referenced by WM_init().
Definition at line 859 of file screen.c.
References LISTBASE_FOREACH, and NULL.
ARegionType* BKE_regiontype_from_id | ( | const SpaceType * | st, |
int | regionid | ||
) |
Definition at line 376 of file screen.c.
References LISTBASE_FOREACH, NULL, and usdtokens::st().
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 363 of file screen.c.
References LISTBASE_FOREACH, and usdtokens::st().
void BKE_screen_area_blend_read_lib | ( | BlendLibReader * | reader, |
ID * | parent_id, | ||
ScrArea * | area | ||
) |
Definition at line 1772 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, blender::compositor::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, usdtokens::st(), SpaceOutliner::storeflag, SpaceFile::tags, SpaceNode::treepath, and SpaceOutliner::treestore.
Referenced by screen_blend_read_lib(), and window_manager_blend_read_lib().
Doesn't free the area itself.
Definition at line 670 of file screen.c.
References blender::compositor::area(), BKE_area_region_free(), BKE_spacedata_freelist(), BKE_spacetype_from_id(), BLI_freelistN(), LISTBASE_FOREACH, MEM_SAFE_FREE, and usdtokens::st().
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 | ( | struct BlendDataReader * | reader, |
struct ScrAreaMap * | area_map | ||
) |
Definition at line 1747 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 1346 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, | ||
const int | xy[2] | ||
) |
Definition at line 957 of file screen.c.
References blender::compositor::area(), ScrAreaMap::areabase, BLI_rcti_isect_pt_v(), ELEM, LISTBASE_FOREACH, NULL, SPACE_TYPE_ANY, and xy.
Referenced by BKE_screen_find_area_xy().
void BKE_screen_area_map_free | ( | ScrAreaMap * | area_map | ) |
Definition at line 686 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 | ( | struct BlendDataReader * | reader, |
struct bScreen * | screen | ||
) |
Cannot use IDTypeInfo callback yet, because of the return value.
Definition at line 242 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 926 of file screen.c.
References blender::compositor::area(), bScreen::areabase, BLI_findindex(), LISTBASE_FOREACH, and NULL.
Definition at line 971 of file screen.c.
References AREAMAP_FROM_SCREEN, BKE_screen_area_map_find_area_xy(), and xy.
Referenced by BKE_screen_find_main_region_at_xy().
Definition at line 937 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_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 704 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 | xy[2] | ||
) |
Definition at line 1013 of file screen.c.
References blender::compositor::area(), BKE_area_find_region_xy(), BKE_screen_find_area_xy(), NULL, RGN_TYPE_WINDOW, and xy.
Definition at line 914 of file screen.c.
References BLI_rcti_isect_pt_v(), ELEM, LISTBASE_FOREACH, NULL, bScreen::regionbase, RGN_TYPE_ANY, and xy.
void BKE_screen_foreach_id_screen_area | ( | struct LibraryForeachIDData * | data, |
struct ScrArea * | area | ||
) |
Callback used by lib_query to walk over all ID usages (mimics foreach_id
callback of IDTypeInfo structure).
Definition at line 85 of file screen.c.
References SpaceAction::action, SpaceAction::ads, SpaceGraph::ads, SpaceNla::ads, blender::compositor::area(), BKE_LIB_FOREACHID_PROCESS_FUNCTION_CALL, BKE_LIB_FOREACHID_PROCESS_ID, BKE_LIB_FOREACHID_PROCESS_IDSUPER, BLI_mempool_iternew(), BLI_mempool_iterstep(), View3D::camera, SpaceClip::clip, blender::compositor::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, usdtokens::st(), SpaceNode::treepath, and SpaceOutliner::treestore.
Referenced by screen_foreach_id(), and window_manager_foreach_id().
Free (or release) any data used by this screen (does not free the screen itself).
Definition at line 697 of file screen.c.
References bScreen::id, and screen_free_data().
Referenced by screen_data_copy().
Definition at line 580 of file screen.c.
References blender::compositor::area(), bScreen::areabase, LISTBASE_FOREACH, NULL, and region_refresh_tag_gizmomap_callback.
Referenced by setup_app_data().
Definition at line 1047 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().
Definition at line 1037 of file screen.c.
References ELEM, SCREENFULL, SCREENMAXIMIZED, and bScreen::state.
Definition at line 1042 of file screen.c.
References bScreen::winid.
Definition at line 777 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().
Definition at line 725 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_aligned().
Definition at line 793 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().
Definition at line 838 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 716 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().
And as patch for 2.48 and older.
Definition at line 1441 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 994 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 1078 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 1071 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 1007 of file screen.c.
References DNA_struct_default_get.
Referenced by blo_do_versions_280(), and object_preview_render().
Definition at line 976 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 1032 of file screen.c.
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 1027 of file screen.c.
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().
Definition at line 558 of file screen.c.
References spacedata_id_remap_cb.
lb_dst | should be empty (will be cleared). |
Definition at line 499 of file screen.c.
References BKE_spacetype_from_id(), BLI_addtail(), BLI_listbase_clear(), LISTBASE_FOREACH, region_copylist(), SpaceLink::regionbase, and usdtokens::st().
Referenced by ED_area_data_copy().
Facility to set locks for drawing to survive (render) threads accessing drawing data.
Definition at line 516 of file screen.c.
References LISTBASE_FOREACH, spacetypes, and usdtokens::st().
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 | ||
) |
Definition at line 530 of file screen.c.
References blender::compositor::area(), BKE_area_find_region_type(), BLI_assert, BLI_findindex(), LISTBASE_FOREACH, NULL, and SpaceLink::regionbase.
Definition at line 411 of file screen.c.
References BKE_area_region_free(), BKE_spacetype_from_id(), BLI_freelistN(), LISTBASE_FOREACH, and usdtokens::st().
Referenced by BKE_screen_area_free(), ED_area_data_copy(), and spacedata_cleanup_exec().
Currently unused!
Definition at line 563 of file screen.c.
References blender::compositor::area(), NULL, and spacedata_id_remap_cb.
bool BKE_spacetype_exists | ( | int | spaceid | ) |
Definition at line 404 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 353 of file screen.c.
References LISTBASE_FOREACH, NULL, spacetypes, and usdtokens::st().
Referenced by area_offscreen_init(), 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(), 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(), and wm_xr_raycast_uninit().
Definition at line 391 of file screen.c.
References BKE_spacetype_from_id(), BLI_addtail(), MEM_freeN, SpaceType::name, spacetype_free(), spacetypes, and usdtokens::st().
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().
Definition at line 344 of file screen.c.
References BLI_freelistN(), LISTBASE_FOREACH, spacetype_free(), spacetypes, and usdtokens::st().
Referenced by BKE_blender_free().
Definition at line 386 of file screen.c.
References spacetypes.
Referenced by ED_spacemacros_init(), ED_spacetypes_init(), and ED_spacetypes_keymap().
|
static |
Definition at line 1462 of file screen.c.
References SpaceGraph::ads, SpaceNla::ads, blender::compositor::area(), AREA_FLAG_ACTIVE_TOOL_UPDATE, SpaceFile::asset_params, FileAssetSelectParams::base_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, blender::compositor::context, SpaceSpreadsheet::context_path, TreeStore::data, direct_link_region(), SpaceNode::edittree, SpaceFile::files, ListBase::first, SpaceFile::folder_histories, SpaceFile::folders_next, SpaceFile::folders_prev, 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(), blender::ed::space_node::node_context(), NULL, OB_RENDER, OB_SOLID, Scopes::ok, MovieClipScopes::ok, SpaceFile::op, SpaceFile::params, SpaceProperties::path, View3DShading::prev_type, SpaceFile::previews_timer, SequencerScopes::reference_ibuf, SpaceLink::regionbase, FileSelectParams::rename_id, SpaceSpreadsheet::row_filters, SpaceAction::runtime, SpaceProperties::runtime, SpaceOutliner::runtime, SpaceGraph::runtime, SpaceSeq::runtime, SpaceFile::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_ACTION, 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, usdtokens::st(), 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 1363 of file screen.c.
References BLO_read_list(), LISTBASE_FOREACH, and NULL.
Referenced by direct_link_region().
|
static |
Definition at line 1376 of file screen.c.
References View2D::alpha_hor, View2D::alpha_vert, BLI_listbase_clear(), BLO_read_data_address, BLO_read_list(), RegionView3D::clipbb, 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, ARegion::runtime, 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 431 of file screen.c.
References Panel::activedata, BLI_duplicatelist(), BLI_listbase_clear(), Panel::children, ListBase::first, Panel::next, NULL, and Panel::runtime.
Referenced by BKE_area_region_copy().
Definition at line 488 of file screen.c.
References BKE_area_region_copy(), BLI_addtail(), BLI_listbase_clear(), LISTBASE_FOREACH, and usdtokens::st().
Referenced by BKE_spacedata_copylist().
|
static |
Definition at line 263 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 227 of file screen.c.
References AREAMAP_FROM_SCREEN, BKE_id_blend_write(), BKE_previewimg_blend_write(), BKE_screen_area_map_blend_write(), BLO_write_struct_at_address_with_filecode, bScreen::id, ID_SCRN, and bScreen::preview.
|
static |
Definition at line 215 of file screen.c.
References blender::compositor::area(), bScreen::areabase, BKE_LIB_FOREACHID_PROCESS_FUNCTION_CALL, BKE_lib_query_foreachid_process_flags_get(), BKE_screen_foreach_id_screen_area(), data, IDWALK_INCLUDE_UI, and LISTBASE_FOREACH.
|
static |
Definition at line 77 of file screen.c.
References BKE_LIB_FOREACHID_PROCESS_ID, BKE_LIB_FOREACHID_PROCESS_IDSUPER, data, bDopeSheet::filter_grp, IDWALK_CB_NOP, NULL, and bDopeSheet::source.
Referenced by BKE_screen_foreach_id_screen_area().
Definition at line 57 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_data().
Definition at line 315 of file screen.c.
References BLI_freelistN(), BPY_callback_screen_free(), LISTBASE_FOREACH, and usdtokens::st().
Referenced by BKE_spacetype_register(), and BKE_spacetypes_free().
|
static |
Definition at line 1178 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, blender::compositor::context, SpaceSpreadsheet::context_path, SpaceGraph_Runtime::ghost_curves, SpaceConsole::history, LISTBASE_FOREACH, View3D::localvd, SpreadsheetContextModifier::modifier_name, blender::ed::space_node::node_context(), NULL, SpaceFile::params, SpaceLink::regionbase, SpaceSpreadsheet::row_filters, 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 1170 of file screen.c.
References BLO_write_struct, and LISTBASE_FOREACH.
Referenced by write_area().
|
static |
Definition at line 1086 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 1127 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 1118 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 598 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 573 of file screen.c.
Referenced by BKE_region_callback_refresh_tag_gizmomap_set(), and BKE_screen_gizmo_tag_refresh().
|
static |
Definition at line 553 of file screen.c.
Referenced by BKE_spacedata_callback_id_remap_set(), and BKE_spacedata_id_unref().
Definition at line 312 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().