Blender
V3.3
|
#include "gizmo/wm_gizmo_wmapi.h"
Go to the source code of this file.
Classes | |
struct | wmPaintCursor |
Typedefs | |
typedef struct wmPaintCursor | wmPaintCursor |
typedef struct wmPaintCursor wmPaintCursor |
On startup, it adds all data, for matching.
Definition at line 533 of file wm.c.
References BKE_libblock_alloc(), BKE_workspace_active_layout_set(), BKE_workspace_active_set(), BKE_workspace_layout_find_global(), C, CTX_data_scene(), CTX_data_view_layer(), CTX_wm_manager_set(), CTX_wm_screen(), wmWindowManager::file_saved, ID_WM, NULL, wmWindow::scene, STRNCPY, wmWindow::view_layer_name, wmWindowManager::winactive, bScreen::winid, wmWindow::winid, wm_window_make_drawable(), wm_window_new(), and wmWindow::workspace_hook.
Referenced by wm_window_match_do().
Definition at line 2013 of file wm_files.c.
References BKE_tempdir_base(), BLENDER_QUIT_FILE, BLI_delete(), BLI_exists(), BLI_join_dirfile(), BLI_rename(), FILE_MAX, RecentFile::filepath, str, USER_GLOBALUNDO, and wm_autosave_location().
Referenced by WM_exit_ex().
void wm_autosave_timer | ( | struct Main * | bmain, |
wmWindowManager * | wm, | ||
wmTimer * | wt | ||
) |
Run the auto-save timer action.
void wm_autosave_timer_begin | ( | struct wmWindowManager * | wm | ) |
Definition at line 1971 of file wm_files.c.
References wm_autosave_timer_begin_ex().
Referenced by wm_autosave_timer(), and WM_file_autosave_init().
void wm_autosave_timer_end | ( | wmWindowManager * | wm | ) |
Definition at line 1976 of file wm_files.c.
References wmWindowManager::autosavetimer, NULL, and WM_event_remove_timer().
Referenced by wm_autosave_timer(), wm_autosave_timer_begin_ex(), and wm_close_and_free().
Definition at line 511 of file wm.c.
References BLI_listbase_is_empty(), C, CTX_data_main(), CTX_wm_manager(), CTX_wm_manager_set(), ListBase::first, LISTBASE_FOREACH, NULL, wmWindowManager::windows, and Main::wm.
Referenced by wm_homefile_read_ex().
void wm_close_and_free | ( | bContext * | C, |
wmWindowManager * | wm | ||
) |
Context is allowed to be NULL, do not free wm itself (lib_id.c).
Definition at line 554 of file wm.c.
References wmWindowManager::autosavetimer, BKE_undosys_stack_destroy(), BKE_workspace_active_set(), BLI_freelistN(), BLI_pophead(), BPY_callback_wm_free(), C, CTX_wm_manager(), CTX_wm_manager_set(), wmWindowManager::drags, wmWindowManager::keyconfigs, wmWindowManager::message_bus, wmWindowManager::notifier_queue, NULL, wmWindowManager::operators, wmWindowManager::paintcursors, wmWindowManager::undo_stack, wmWindowManager::windows, wm_autosave_timer_end(), WM_drag_free_list(), WM_keyconfig_free(), WM_msgbus_destroy(), WM_operator_free(), wm_reports_free(), wm_window_free(), wm_xr_exit(), and wmWindow::workspace_hook.
Referenced by BlendfileLoadingBaseTest::blendfile_free(), window_manager_free_data(), and wm_close_and_free_all().
Definition at line 607 of file wm.c.
References BKE_libblock_free_data(), BKE_libblock_free_data_py(), BLI_remlink(), C, ListBase::first, wmWindowManager::id, MEM_freeN, and wm_close_and_free().
Referenced by wm_window_match_replace_by_file_wm().
Cause a delayed WM_exit() call to avoid leaking memory when trying to exit from within operators.
Definition at line 421 of file wm_init_exit.c.
References C, CTX_wm_window(), wmWindow::modalhandlers, NULL, 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().
Definition at line 433 of file wm_gesture.c.
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_rect(), WM_GESTURE_LASSO, WM_GESTURE_LINES, WM_GESTURE_RECT, WM_GESTURE_STRAIGHTLINE, and wmViewport().
Referenced by wm_draw_window_onscreen().
Use for line gesture.
Definition at line 468 of file wm_gesture.c.
References bScreen::do_draw_gesture, and 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_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 615 of file wm_jobs.c.
References BLI_threadpool_end(), wmJob::customdata, wmJob::do_update, wmJob::endnote, ListBase::first, wmJob::flag, G, G_DEBUG_JOBS, wmWindowManager::jobs, LISTBASE_FOREACH_MUTABLE, wmJob::name, NC_WM, ND_JOB, wmJob::note, NULL, PIL_check_seconds_timer(), wmJob::ready, wmJob::run_customdata, wmJob::run_free, wmJob::running, wmJob::start_time, wmJob::stop, wmJob::suspended, wmJob::threads, wmJob::update, wmJob::win, WM_event_add_notifier_ex(), WM_event_remove_timer(), 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_start(), wm_jobs_update_progress_bars(), and wmJob::wt.
Referenced by wm_window_timer().
void wm_jobs_timer_end | ( | wmWindowManager * | wm, |
wmTimer * | wt | ||
) |
Kill job entirely, also removes timer itself.
Definition at line 605 of file wm_jobs.c.
References wmWindowManager::jobs, LISTBASE_FOREACH, wm_jobs_kill_job(), and wmJob::wt.
Referenced by wm_window_free().
void wm_open_init_load_ui | ( | wmOperator * | op, |
bool | use_prefs | ||
) |
Initialize operator properties.
Definition at line 2043 of file wm_files.c.
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 2053 of file wm_files.c.
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 windowmanager here.
Definition at line 365 of file wm.c.
References BLI_addtail(), BLI_remlink(), C, CTX_wm_manager(), wmOperatorType::flag, MAX_OP_REGISTERED, NC_SPACE, NC_WM, ND_HISTORY, ND_SPACE_INFO_REPORT, NULL, 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().
Definition at line 197 of file wm_operator_type.c.
References BLI_ghash_free(), global_ops_hash, NULL, and operatortype_ghash_free_cb().
Referenced by WM_exit_ex().
Called on initialize WM_init().
Definition at line 173 of file wm_operator_type.c.
References BLI_ghash_str_new_ex(), and global_ops_hash.
Referenced by WM_init().
Definition at line 3735 of file wm_operators.c.
References GIZMOGROUP_OT_gizmo_select(), GIZMOGROUP_OT_gizmo_tweak(), WM_operatortype_append(), WM_OT_append(), WM_OT_call_menu(), WM_OT_call_menu_pie(), WM_OT_call_panel(), 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_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 251 of file wm_splash_screen.c.
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 331 of file wm_splash_screen.c.
References wmOperatorType::description, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, wmOperatorType::poll, wm_about_invoke(), and WM_operator_winactive().
Referenced by wm_operatortypes_register().
Definition at line 42 of file wm_stereo.c.
References Stereo3dFormat::flag, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_PRIM_TRI_FAN, GPU_SHADER_2D_IMAGE, GPU_vertformat_attr_add(), immAttr2f(), immBegin(), immBindBuiltinProgram(), immEnd(), immUnbindProgram(), immVertex2f(), immVertexFormat(), pos, S3D_SIDEBYSIDE_CROSSEYED, wmWindow::stereo3d_format, STEREO_LEFT_ID, view, WM_window_pixels_x(), and WM_window_pixels_y().
Referenced by wm_draw_window().
Definition at line 92 of file wm_stereo.c.
References GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_PRIM_TRI_FAN, GPU_SHADER_2D_IMAGE, GPU_vertformat_attr_add(), immAttr2f(), immBegin(), immBindBuiltinProgram(), immEnd(), immUnbindProgram(), immVertex2f(), immVertexFormat(), pos, STEREO_LEFT_ID, view, WM_window_pixels_x(), and WM_window_pixels_y().
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 165 of file wm_stereo.c.
References Stereo3dFormat::display_mode, S3D_DISPLAY_SIDEBYSIDE, S3D_DISPLAY_TOPBOTTOM, wmWindow::stereo3d_format, WM_stereo3d_enabled(), WM_window_pixels_x(), and WM_window_pixels_y().
Referenced by wm_event_add_ghostevent().
void wm_stereo3d_set_cancel | ( | bContext * | C, |
wmOperator * | op | ||
) |
bool wm_stereo3d_set_check | ( | bContext * | C, |
wmOperator * | op | ||
) |
void wm_stereo3d_set_draw | ( | bContext * | C, |
wmOperator * | op | ||
) |
int wm_stereo3d_set_exec | ( | bContext * | C, |
wmOperator * | op | ||
) |
Definition at line 255 of file wm_stereo.c.
References BKE_report(), C, CTX_wm_manager(), CTX_wm_window(), CTX_wm_window_set(), wmOperator::customdata, Stereo3dFormat::display_mode, G, GPU_stereo_quadbuffer_support(), MEM_freeN, NC_WINDOW, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_ERROR, RPT_INFO, S3D_DISPLAY_PAGEFLIP, SCREENNORMAL, bScreen::state, wmWindow::stereo3d_format, Stereo3dData::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 | ||
) |
void wm_window_keymap | ( | wmKeyConfig * | keyconf | ) |
Default key-map for windows and screens, only call once per WM.
Definition at line 3971 of file wm_operators.c.
References gesture_box_modal_keymap(), gesture_circle_modal_keymap(), gesture_lasso_modal_keymap(), gesture_straightline_modal_keymap(), gesture_zoom_border_modal_keymap(), wm_gizmos_keymap(), WM_keymap_ensure(), and WM_keymap_fix_linking().
Referenced by WM_keyconfig_init().