|
Blender V4.3
|
#include "gizmo/wm_gizmo_wmapi.hh"Go to the source code of this file.
Classes | |
| struct | wmPaintCursor |
On startup, it adds all data, for matching.
Definition at line 540 of file wm.cc.
References BKE_libblock_alloc(), BKE_reports_init(), BKE_workspace_active_layout_set(), BKE_workspace_active_set(), BKE_workspace_layout_find_global(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_manager_set(), CTX_wm_screen(), wmWindowManager::file_saved, ID_WM, RPT_STORE, wmWindowManager::runtime, wmWindow::scene, STRNCPY, wmWindow::view_layer_name, wmWindowManager::winactive, wmWindow::winid, wm_window_make_drawable(), wm_window_new(), and wmWindow::workspace_hook.
Referenced by wm_file_read_setup_wm_finalize().
| void wm_autosave_delete | ( | ) |
Definition at line 2384 of file wm_files.cc.
References BKE_tempdir_base(), BLENDER_QUIT_FILE, BLI_delete(), BLI_exists(), BLI_path_join, BLI_rename_overwrite(), FILE_MAX, USER_GLOBALUNDO, and wm_autosave_location().
Referenced by WM_exit_ex().
| void wm_autosave_timer | ( | Main * | bmain, |
| wmWindowManager * | wm, | ||
| wmTimer * | wt ) |
Run the auto-save timer action.
Definition at line 2358 of file wm_files.cc.
References wmWindowManager::autosave_scheduled, LISTBASE_FOREACH, wmEventHandler_Op::op, wmWindowManager::windows, wm_autosave_timer_begin(), wm_autosave_timer_begin_ex(), wm_autosave_timer_end(), wm_autosave_write_try(), and WM_HANDLER_TYPE_OP.
Referenced by wm_window_timers_process().
| void wm_autosave_timer_begin | ( | wmWindowManager * | wm | ) |
Definition at line 2340 of file wm_files.cc.
References wm_autosave_timer_begin_ex().
Referenced by wm_autosave_timer(), WM_autosave_write(), WM_file_autosave_init(), and wm_save_as_mainfile_exec().
| void wm_autosave_timer_end | ( | wmWindowManager * | wm | ) |
Definition at line 2345 of file wm_files.cc.
References wmWindowManager::autosavetimer, and WM_event_timer_remove().
Referenced by wm_autosave_timer(), wm_autosave_timer_begin_ex(), WM_autosave_write(), wm_close_and_free(), and wm_save_as_mainfile_exec().
|
extern |
Definition at line 518 of file wm.cc.
References BLI_listbase_is_empty(), CTX_data_main(), CTX_wm_manager(), CTX_wm_manager_set(), ListBase::first, LISTBASE_FOREACH, wmWindowManager::windows, and Main::wm.
Referenced by wm_file_read_setup_wm_finalize().
|
extern |
Context is allowed to be NULL, do not free wm itself lib_id.cc.
Definition at line 565 of file wm.cc.
References wmWindowManager::autosavetimer, BKE_undosys_stack_destroy(), BKE_workspace_active_set(), BLI_assert, BLI_freelistN(), BLI_gset_free(), BLI_pophead(), BPY_callback_wm_free(), CTX_wm_manager(), CTX_wm_manager_set(), wmWindowManager::drags, wmWindowManager::keyconfigs, wmWindowManager::message_bus, wmWindowManager::notifier_current, wmWindowManager::notifier_queue, wmWindowManager::notifier_queue_set, wmWindowManager::operators, wmWindowManager::paintcursors, wmWindowManager::runtime, wmWindowManager::undo_stack, wmWindowManager::windows, wm_autosave_timer_end(), WM_drag_free_list(), WM_event_timers_free_all(), WM_keyconfig_free(), WM_msgbus_destroy(), WM_operator_free(), wm_reports_free(), wm_window_free(), and wm_xr_exit().
Referenced by window_manager_free_data(), and wm_file_read_setup_wm_use_new().
| void wm_exit_schedule_delayed | ( | const bContext * | C | ) |
Cause a delayed WM_exit() call to avoid leaking memory when trying to exit from within operators.
Definition at line 442 of file wm_init_exit.cc.
References CTX_wm_window(), wmWindow::modalhandlers, WM_event_add_mousemove(), WM_event_add_ui_handler(), and wm_exit_handler().
Referenced by ghost_event_proc(), wm_exit_blender_exec(), wm_exit_blender_invoke(), wm_quit_with_optional_confirmation_prompt(), wm_save_as_mainfile_exec(), and wm_save_file_on_quit_dialog_callback().
| void wm_gesture_draw | ( | wmWindow * | win | ) |
Definition at line 554 of file wm_gesture.cc.
References ListBase::first, wmWindow::gesture, GPU_line_width(), wmGesture::is_active, wmGesture::next, wmGesture::type, wmGesture::winrct, WM_GESTURE_CIRCLE, WM_GESTURE_CROSS_RECT, wm_gesture_draw_circle(), wm_gesture_draw_cross(), wm_gesture_draw_lasso(), wm_gesture_draw_line(), wm_gesture_draw_polyline(), wm_gesture_draw_rect(), WM_GESTURE_LASSO, WM_GESTURE_LINES, WM_GESTURE_POLYLINE, WM_GESTURE_RECT, WM_GESTURE_STRAIGHTLINE, and wmViewport().
Referenced by wm_draw_window_onscreen().
| void wm_gesture_tag_redraw | ( | wmWindow * | win | ) |
Use for line gesture.
Definition at line 592 of file wm_gesture.cc.
References WM_window_get_active_screen().
Referenced by WM_gesture_box_invoke(), WM_gesture_box_modal(), WM_gesture_circle_invoke(), WM_gesture_circle_modal(), WM_gesture_lasso_invoke(), WM_gesture_lasso_modal(), WM_gesture_lines_invoke(), WM_gesture_polyline_invoke(), WM_gesture_polyline_modal(), WM_gesture_straightline_invoke(), WM_gesture_straightline_modal(), and WM_gesture_straightline_oneshot_modal().
| void wm_jobs_timer | ( | wmWindowManager * | wm, |
| wmTimer * | wt ) |
Hard-coded to event TIMERJOBS.
Definition at line 656 of file wm_jobs.cc.
References BLI_findptr(), BLI_threadpool_end(), BLI_time_now_seconds(), wmJob::customdata, wmJobWorkerStatus::do_update, wmJob::endnote, ListBase::first, wmJob::flag, G, G_DEBUG_JOBS, wmWindowManager::jobs, wmJob::name, NC_WM, ND_JOB, wmJob::note, offsetof, printf, wmJob::ready, wmJob::run_customdata, wmJob::run_free, wmJob::running, wmJob::start_time, wmJob::suspended, wmJob::threads, wmJob::update, wmJob::win, WM_event_add_notifier_ex(), WM_event_timer_remove(), wm_job_end(), wm_job_free(), WM_job_main_thread_lock_acquire(), WM_job_main_thread_lock_release(), wm_job_main_thread_yield(), WM_JOB_PROGRESS, wm_jobs_reports_update(), WM_jobs_start(), wm_jobs_update_progress_bars(), wmJob::worker_status, and wmJob::wt.
Referenced by wm_window_timers_process().
| void wm_jobs_timer_end | ( | wmWindowManager * | wm, |
| wmTimer * | wt ) |
Kill job entirely, also removes timer itself.
Definition at line 648 of file wm_jobs.cc.
References BLI_findptr(), wmWindowManager::jobs, offsetof, and wm_jobs_kill_job().
Referenced by wm_window_free().
| void wm_open_init_load_ui | ( | wmOperator * | op, |
| bool | use_prefs ) |
Initialize operator properties.
Definition at line 2434 of file wm_files.cc.
References G, G_FILE_NO_UI, wmOperator::ptr, RNA_property_boolean_set(), RNA_property_is_set(), RNA_struct_find_property(), and USER_FILENOUI.
Referenced by wm_homefile_read_exec(), wm_open_mainfile__open(), and wm_open_mainfile__select_file_path().
| void wm_open_init_use_scripts | ( | wmOperator * | op, |
| bool | use_prefs ) |
Definition at line 2444 of file wm_files.cc.
References G, G_FLAG_SCRIPT_AUTOEXEC, wmOperator::ptr, RNA_property_boolean_set(), RNA_property_is_set(), RNA_struct_find_property(), and USER_SCRIPT_AUTOEXEC_DISABLE.
Referenced by wm_open_mainfile__open(), wm_open_mainfile__select_file_path(), wm_recover_auto_save_exec(), wm_recover_auto_save_invoke(), wm_recover_last_session_exec(), wm_recover_last_session_invoke(), and wm_revert_mainfile_exec().
| void wm_operator_register | ( | bContext * | C, |
| wmOperator * | op ) |
Called on event handling by event_system.c.
All operations get registered in the window-manager here.
Definition at line 357 of file wm.cc.
References BLI_addtail(), BLI_remlink(), CTX_wm_manager(), wmOperatorType::flag, MAX_OP_REGISTERED, NC_SPACE, NC_WM, ND_HISTORY, ND_SPACE_INFO_REPORT, wmWindowManager::operators, OPTYPE_REGISTER, wmOperator::prev, wmOperator::type, WM_event_add_notifier(), and WM_operator_free().
Referenced by wm_block_redo_cb(), and wm_operator_finished().
| void wm_operatortype_free | ( | ) |
Definition at line 205 of file wm_operator_type.cc.
References get_operators_map(), operatortype_ghash_free_cb(), and ot.
Referenced by WM_exit_ex().
| void wm_operatortypes_register | ( | ) |
Definition at line 4111 of file wm_operators.cc.
References GIZMOGROUP_OT_gizmo_select(), GIZMOGROUP_OT_gizmo_tweak(), WM_operatortype_append(), WM_OT_append(), WM_OT_call_asset_shelf_popover(), WM_OT_call_menu(), WM_OT_call_menu_pie(), WM_OT_call_panel(), WM_OT_clear_recent_files(), WM_OT_debug_menu(), WM_OT_doc_view_manual_ui_context(), WM_OT_lib_reload(), WM_OT_lib_relocate(), WM_OT_link(), WM_OT_memory_statistics(), WM_OT_open_mainfile(), WM_OT_operator_defaults(), WM_OT_previews_clear(), WM_OT_previews_ensure(), WM_OT_quit_blender(), WM_OT_radial_control(), WM_OT_read_factory_settings(), WM_OT_read_factory_userpref(), WM_OT_read_history(), WM_OT_read_homefile(), WM_OT_read_userpref(), WM_OT_recover_auto_save(), WM_OT_recover_last_session(), WM_OT_redraw_timer(), WM_OT_revert_mainfile(), WM_OT_save_as_mainfile(), WM_OT_save_homefile(), WM_OT_save_mainfile(), WM_OT_save_userpref(), WM_OT_search_menu(), WM_OT_search_operator(), WM_OT_search_single_menu(), WM_OT_splash(), WM_OT_splash_about(), WM_OT_stereo3d_set(), WM_OT_window_close(), WM_OT_window_fullscreen_toggle(), WM_OT_window_new(), WM_OT_window_new_main(), and wm_xr_operatortypes_register().
Referenced by WM_init().
| void WM_OT_splash | ( | wmOperatorType * | ot | ) |
Definition at line 350 of file wm_splash_screen.cc.
References wmOperatorType::description, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, wmOperatorType::poll, WM_operator_winactive(), and wm_splash_invoke().
Referenced by wm_operatortypes_register().
| void WM_OT_splash_about | ( | wmOperatorType * | ot | ) |
Definition at line 427 of file wm_splash_screen.cc.
References wmOperatorType::description, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, wmOperatorType::poll, WM_operator_winactive(), and wm_splash_about_invoke().
Referenced by wm_operatortypes_register().
Definition at line 44 of file wm_stereo.cc.
References Stereo3dFormat::flag, GLA_PIXEL_OFS, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_PRIM_TRI_FAN, GPU_SHADER_3D_IMAGE, GPU_vertformat_attr_add(), immAttr2f(), immBegin(), immBindBuiltinProgram(), immEnd(), immUnbindProgram(), immVertex2f(), immVertexFormat(), pos, S3D_SIDEBYSIDE_CROSSEYED, wmWindow::stereo3d_format, STEREO_LEFT_ID, and WM_window_native_pixel_size().
Referenced by wm_draw_window().
Definition at line 93 of file wm_stereo.cc.
References GLA_PIXEL_OFS, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_PRIM_TRI_FAN, GPU_SHADER_3D_IMAGE, GPU_vertformat_attr_add(), immAttr2f(), immBegin(), immBindBuiltinProgram(), immEnd(), immUnbindProgram(), immVertex2f(), immVertexFormat(), pos, STEREO_LEFT_ID, and WM_window_native_pixel_size().
Referenced by wm_draw_window().
If needed, adjust r_mouse_xy so that drawn cursor and handled mouse position are matching visually.
Definition at line 167 of file wm_stereo.cc.
References Stereo3dFormat::display_mode, S3D_DISPLAY_SIDEBYSIDE, S3D_DISPLAY_TOPBOTTOM, wmWindow::stereo3d_format, WM_stereo3d_enabled(), WM_window_native_pixel_x(), and WM_window_native_pixel_y().
Referenced by wm_event_add_ghostevent().
| void wm_stereo3d_set_cancel | ( | bContext * | C, |
| wmOperator * | op ) |
Definition at line 402 of file wm_stereo.cc.
References wmOperator::customdata, and MEM_freeN().
Referenced by WM_OT_stereo3d_set().
| bool wm_stereo3d_set_check | ( | bContext * | C, |
| wmOperator * | op ) |
Definition at line 394 of file wm_stereo.cc.
Referenced by WM_OT_stereo3d_set().
| void wm_stereo3d_set_draw | ( | bContext * | C, |
| wmOperator * | op ) |
Definition at line 356 of file wm_stereo.cc.
References col, wmOperator::customdata, Stereo3dFormat::display_mode, wmOperator::layout, RNA_pointer_create(), S3D_DISPLAY_ANAGLYPH, S3D_DISPLAY_INTERLACE, S3D_DISPLAY_PAGEFLIP, S3D_DISPLAY_SIDEBYSIDE, S3D_DISPLAY_TOPBOTTOM, Stereo3dData::stereo3d_format, UI_ITEM_NONE, uiItemR(), uiLayoutColumn(), uiLayoutSetPropDecorate(), and uiLayoutSetPropSep().
Referenced by WM_OT_stereo3d_set().
| int wm_stereo3d_set_exec | ( | bContext * | C, |
| wmOperator * | op ) |
Definition at line 257 of file wm_stereo.cc.
References BKE_report(), CTX_wm_manager(), CTX_wm_window(), CTX_wm_window_set(), wmOperator::customdata, Stereo3dFormat::display_mode, G, GPU_stereo_quadbuffer_support(), MEM_freeN(), NC_WINDOW, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_ERROR, RPT_INFO, S3D_DISPLAY_PAGEFLIP, SCREENNORMAL, Stereo3dData::stereo3d_format, wmWindow::stereo3d_format, WM_event_add_notifier(), wm_stereo3d_is_fullscreen_required(), wm_stereo3d_set_init(), wm_stereo3d_set_properties(), wm_window_close(), wm_window_copy_test(), WM_window_get_active_screen(), and WM_window_is_fullscreen().
Referenced by WM_OT_stereo3d_set(), and wm_stereo3d_set_invoke().
| int wm_stereo3d_set_invoke | ( | bContext * | C, |
| wmOperator * | op, | ||
| const wmEvent * | event ) |
Definition at line 346 of file wm_stereo.cc.
References IFACE_, WM_operator_props_dialog_popup(), wm_stereo3d_set_exec(), wm_stereo3d_set_init(), and wm_stereo3d_set_properties().
Referenced by WM_OT_stereo3d_set().
| void wm_window_keymap | ( | wmKeyConfig * | keyconf | ) |
Default key-map for windows and screens, only call once per WM.
Definition at line 4377 of file wm_operators.cc.
References gesture_box_modal_keymap(), gesture_circle_modal_keymap(), gesture_lasso_modal_keymap(), gesture_polyline_modal_keymap(), gesture_straightline_modal_keymap(), gesture_zoom_border_modal_keymap(), RGN_TYPE_WINDOW, SPACE_EMPTY, wm_gizmos_keymap(), WM_keymap_ensure(), and WM_keymap_fix_linking().
Referenced by WM_keyconfig_init().