|
Blender V4.5
|
#include <algorithm>#include <chrono>#include <cmath>#include <cstdio>#include <cstdlib>#include <cstring>#include <thread>#include <fmt/format.h>#include "CLG_log.h"#include "DNA_listBase.h"#include "DNA_screen_types.h"#include "DNA_windowmanager_types.h"#include "DNA_workspace_types.h"#include "MEM_guardedalloc.h"#include "GHOST_C-api.h"#include "BLI_listbase.h"#include "BLI_math_vector.h"#include "BLI_path_utils.hh"#include "BLI_rect.h"#include "BLI_string.h"#include "BLI_string_utf8.h"#include "BLI_system.h"#include "BLI_time.h"#include "BLI_utildefines.h"#include "BLT_translation.hh"#include "BKE_blender_version.h"#include "BKE_context.hh"#include "BKE_global.hh"#include "BKE_icons.h"#include "BKE_layer.hh"#include "BKE_main.hh"#include "BKE_report.hh"#include "BKE_screen.hh"#include "BKE_wm_runtime.hh"#include "BKE_workspace.hh"#include "RNA_access.hh"#include "RNA_enum_types.hh"#include "WM_api.hh"#include "WM_keymap.hh"#include "WM_types.hh"#include "wm.hh"#include "wm_draw.hh"#include "wm_event_system.hh"#include "wm_files.hh"#include "wm_window.hh"#include "wm_window_private.hh"#include "ED_anim_api.hh"#include "ED_fileselect.hh"#include "ED_render.hh"#include "ED_scene.hh"#include "ED_screen.hh"#include "IMB_imbuf.hh"#include "IMB_imbuf_types.hh"#include "UI_interface.hh"#include "UI_interface_icons.hh"#include "BLF_api.hh"#include "GPU_context.hh"#include "GPU_framebuffer.hh"#include "GPU_init_exit.hh"#include "UI_resources.hh"#include "BLI_threads.h"Go to the source code of this file.
Classes | |
| struct | WMInitStruct |
Macros | |
| #define | GHOST_WINDOW_STATE_DEFAULT GHOST_kWindowStateMaximized |
Enumerations | |
| enum | eWinOverrideFlag { WIN_OVERRIDE_GEOM = (1 << 0) , WIN_OVERRIDE_WINSTATE = (1 << 1) } |
Variables | |
| static GHOST_SystemHandle | g_system = nullptr |
| static const char * | g_system_backend_id = nullptr |
| static struct WMInitStruct | wm_init_state |
Modifier Constants | |
| enum | ModSide { MOD_SIDE_LEFT = 0 , MOD_SIDE_RIGHT = 1 } |
| struct { | |
| uint8_t flag | |
| GHOST_TKey ghost_key_pair [2] | |
| GHOST_TModifierKey ghost_mask_pair [2] | |
| } | g_modifier_table [] |
Clipboard Wrappers | |
GHOST function wrappers that support a "fake" clipboard used when simulating events. This is useful user actions can be simulated while the system is in use without the system's clipboard getting overwritten. | |
| struct { | |
| char * buffers [2] | |
| } * | g_wm_clipboard_text_simulate = nullptr |
| void | wm_clipboard_free () |
| static char * | wm_clipboard_text_get_impl (bool selection) |
| static void | wm_clipboard_text_set_impl (const char *buf, bool selection) |
Window management, wrap GHOST.
Definition in file wm_window.cc.
| #define GHOST_WINDOW_STATE_DEFAULT GHOST_kWindowStateMaximized |
Definition at line 107 of file wm_window.cc.
Referenced by wm_window_ghostwindow_ensure().
| enum eWinOverrideFlag |
| Enumerator | |
|---|---|
| WIN_OVERRIDE_GEOM | |
| WIN_OVERRIDE_WINSTATE | |
Definition at line 101 of file wm_window.cc.
| enum ModSide |
| Enumerator | |
|---|---|
| MOD_SIDE_LEFT | |
| MOD_SIDE_RIGHT | |
Definition at line 160 of file wm_window.cc.
Definition at line 2205 of file wm_window.cc.
References ALERT_ICON_ERROR, C, col, uiLayout::column(), blender::ui::Emboss, RPT_, Space, UI_block_begin(), UI_block_bounds_set_centered(), UI_block_emboss_set(), UI_BLOCK_THEME_STYLE_POPUP, UI_block_theme_style_set(), UI_SCALE_FAC, uiItemL_ex(), uiItemsAlertBox(), and uiLayoutSetScaleY().
Referenced by wm_test_gpu_backend_fallback().
Definition at line 2104 of file wm_window.cc.
References ALERT_ICON_ERROR, BLF_DRAW_STR_DUMMY_MAX, BLF_width(), C, col, uiLayout::column(), uiStyle::columnspace, blender::ui::Emboss, G, uiLayout::label(), RPT_, SNPRINTF, Space, UI_block_begin(), UI_block_bounds_set_centered(), UI_block_emboss_set(), UI_BLOCK_THEME_STYLE_POPUP, UI_block_theme_style_set(), UI_fontstyle_set(), UI_SCALE_FAC, UI_style_get_dpi(), uiFontStyle::uifont_id, uiItemL_ex(), uiItemsAlertBox(), uiLayoutSetScaleY(), and uiStyle::widget.
Referenced by wm_test_opengl_deprecation_warning().
|
static |
Definition at line 301 of file wm_window.cc.
References LISTBASE_FOREACH, wmWindowManager::windows, and winid.
Referenced by wm_window_new().
|
static |
Called by ghost, here we handle events for windows themselves or send to event system.
Mouse coordinate conversion happens here.
Definition at line 1505 of file wm_window.cc.
References wmWindow::active, wmWindow::addmousemove, BKE_icon_changed(), BLF_cache_clear(), C, CLOG_INFO, copy_v2_v2_int(), GHOST_TStringArray::count, CTX_wm_manager(), CTX_wm_window_set(), data, GHOST_TEventDragnDropData::data, GHOST_TEventDragnDropData::dataType, wmWindowManager::drags, ED_file_extension_icon(), EVENT_NONE, wmWindow::eventstate, EVT_DATA_DRAGDROP, EVT_DROP, G, G_DEBUG_EVENTS, g_system, ghost_event_proc_timestamp_warning(), GHOST_GetEventData(), GHOST_GetEventTime(), GHOST_GetEventType(), GHOST_GetEventWindow(), GHOST_GetWindowState(), GHOST_GetWindowUserData(), GHOST_kDragnDropTypeFilenames, GHOST_kDragnDropTypeString, GHOST_kEventButtonDown, GHOST_kEventButtonUp, GHOST_kEventDraggingDropDone, GHOST_kEventNativeResolutionChange, GHOST_kEventOpenMainFile, GHOST_kEventQuitRequest, GHOST_kEventWindowActivate, GHOST_kEventWindowClose, GHOST_kEventWindowDeactivate, GHOST_kEventWindowDPIHintChanged, GHOST_kEventWindowMove, GHOST_kEventWindowSize, GHOST_kEventWindowUpdate, GHOST_kEventWindowUpdateDecor, GHOST_kWindowStateFullScreen, GHOST_kWindowStateMaximized, GHOST_kWindowStateMinimized, GHOST_kWindowStateNormal, GHOST_ValidWindow(), wmWindow::ghostwin, ID::icon_id, bScreen::id, wmWindowManager::init_flag, wmEvent::keymodifier, KM_NOTHING, KM_RELEASE, wmWindow::modalhandlers, MOUSEMOVE, NA_EDITED, NC_SCREEN, NC_WINDOW, ot, wmWindow::posx, wmWindow::posy, wmEvent::prev_xy, printf, RNA_boolean_set(), RNA_string_set(), wmWindow::sizex, wmWindow::sizey, state, str, GHOST_TStringArray::strings, U, UI_popup_handlers_remove_all(), wmWindowManager::winactive, wmWindow::windowstate, wmWindow::winid, wm_cursor_position_from_ghost_screen_coords(), WM_drag_create_path_data(), WM_DRAG_FREE_DATA, WM_DRAG_NOP, WM_DRAG_PATH, WM_DRAG_STRING, wm_draw_update(), WM_event_add(), wm_event_add_ghostevent(), WM_event_add_notifier_ex(), wm_event_do_handlers(), wm_event_do_notifiers(), wm_event_init_from_window(), WM_event_start_drag(), wm_exit_schedule_delayed(), WM_INIT_FLAG_WINDOW, WM_LOG_EVENTS, WM_main_add_notifier(), WM_OP_INVOKE_DEFAULT, WM_operator_name_call_ptr(), WM_operator_properties_create_ptr(), WM_operator_properties_free(), WM_operatortype_find(), wm_quit_with_optional_confirmation_prompt(), wm_window_close(), WM_window_get_active_screen(), wm_window_make_drawable(), WM_window_set_dpi(), wm_window_swap_buffers(), wm_window_timers_process(), wm_window_update_eventstate(), wm_window_update_eventstate_modifiers(), wm_window_update_eventstate_modifiers_clear(), wm_window_update_size_position(), GHOST_TEventDragnDropData::x, and wmEvent::xy.
|
static |
Time-stamp validation that uses basic heuristics to warn about bad time-stamps. Issues here should be resolved in GHOST.
Definition at line 1427 of file wm_window.cc.
References ARRAY_SIZE, g_system, GHOST_GetEventTime(), GHOST_GetEventType(), GHOST_GetMilliSeconds(), i, and PRIu64.
Referenced by ghost_event_proc().
| eWM_CapabilitiesFlag WM_capabilities_flag | ( | ) |
Return the capabilities of the windowing system.
Definition at line 2258 of file wm_window.cc.
References flag, GHOST_GetCapabilities(), GHOST_kCapabilityClipboardImages, GHOST_kCapabilityCursorWarp, GHOST_kCapabilityDesktopSample, GHOST_kCapabilityGPUReadFrontBuffer, GHOST_kCapabilityInputIME, GHOST_kCapabilityKeyboardHyperKey, GHOST_kCapabilityPrimaryClipboard, GHOST_kCapabilityTrackpadPhysicalDirection, GHOST_kCapabilityWindowDecorationStyles, GHOST_kCapabilityWindowPosition, WM_CAPABILITY_CLIPBOARD_IMAGES, WM_CAPABILITY_CURSOR_WARP, WM_CAPABILITY_DESKTOP_SAMPLE, WM_CAPABILITY_GPU_FRONT_BUFFER_READ, WM_CAPABILITY_INITIALIZED, WM_CAPABILITY_INPUT_IME, WM_CAPABILITY_KEYBOARD_HYPER_KEY, WM_CAPABILITY_PRIMARY_CLIPBOARD, WM_CAPABILITY_TRACKPAD_PHYSICAL_DIRECTION, WM_CAPABILITY_WINDOW_DECORATION_STYLES, and WM_CAPABILITY_WINDOW_POSITION.
Referenced by bpy_wm_capabilities(), console_select_update_primary_clipboard(), ED_area_newspace(), ED_screen_do_listen(), eyedropper_color_sample_fl(), font_select_update_primary_clipboard(), text_select_update_primary_clipboard(), wm_event_add_ghostevent(), wm_event_cursor_other_windows(), wm_paintcursor_draw(), wm_software_cursor_needed(), WM_window_decoration_style_apply(), WM_window_decoration_style_flags_set(), WM_window_find_under_cursor(), wm_window_ghostwindow_add(), wm_window_ghostwindow_ensure(), WM_window_pixels_read(), WM_window_pixels_read_sample(), WM_window_pixels_read_sample_from_frontbuffer(), and wm_window_update_size_position().
| void wm_clipboard_free | ( | ) |
Definition at line 2453 of file wm_window.cc.
References ARRAY_SIZE, g_wm_clipboard_text_simulate, i, and MEM_freeN().
Referenced by WM_exit_ex().
| bool WM_clipboard_image_available | ( | ) |
Returns true if the clipboard contains an image.
Definition at line 2616 of file wm_window.cc.
References G, and GHOST_hasClipboardImage().
Referenced by image_clipboard_paste_poll().
| ImBuf * WM_clipboard_image_get | ( | ) |
Get image data from the clipboard.
Definition at line 2624 of file wm_window.cc.
References free(), G, GHOST_getClipboardImage(), and IMB_allocFromBuffer().
Referenced by image_clipboard_paste_exec().
| bool WM_clipboard_image_set_byte_buffer | ( | ImBuf * | ibuf | ) |
Put image data to the clipboard.
| ibuf | the image to set the clipboard to. |
Definition at line 2643 of file wm_window.cc.
References ImBuf::byte_buffer, ImBufByteBuffer::data, G, GHOST_putClipboardImage(), ImBuf::x, and ImBuf::y.
Referenced by image_clipboard_copy_exec().
| char * WM_clipboard_text_get | ( | bool | selection, |
| bool | ensure_utf8, | ||
| int * | r_len ) |
Return text from the clipboard.
| selection | Use the "primary" clipboard, see: WM_CAPABILITY_PRIMARY_CLIPBOARD. |
| ensure_utf8 | Ensure the resulting string does not contain invalid UTF8 encoding. |
Definition at line 2567 of file wm_window.cc.
References wm_clipboard_text_get_ex().
Referenced by console_paste_exec(), paste_text_exec(), pyrna_WindowManager_clipboard_get(), blender::ed::vse::sequencer_text_edit_paste_exec(), and text_paste_exec().
|
static |
Definition at line 2509 of file wm_window.cc.
References BLI_str_utf8_invalid_strip(), ELEM, free(), G, MEM_malloc_arrayN(), and wm_clipboard_text_get_impl().
Referenced by WM_clipboard_text_get(), and WM_clipboard_text_get_firstline().
| char * WM_clipboard_text_get_firstline | ( | bool | selection, |
| bool | ensure_utf8, | ||
| int * | r_len ) |
Convenience function for pasting to areas of Blender which don't support newlines.
Definition at line 2572 of file wm_window.cc.
References wm_clipboard_text_get_ex().
Referenced by handleNumInput(), ui_but_get_pasted_text_from_clipboard(), and ui_textedit_copypaste().
|
static |
Definition at line 2468 of file wm_window.cc.
References G, G_FLAG_EVENT_SIMULATE, g_wm_clipboard_text_simulate, GHOST_getClipboard(), size(), and UNLIKELY.
Referenced by wm_clipboard_text_get_ex().
| void WM_clipboard_text_set | ( | const char * | buf, |
| bool | selection ) |
Definition at line 2577 of file wm_window.cc.
References G, MEM_calloc_arrayN(), MEM_freeN(), and wm_clipboard_text_set_impl().
Referenced by console_copy_exec(), console_select_update_primary_clipboard(), copy_data_path_button_exec(), copy_python_command_button_exec(), copy_selection(), font_select_update_primary_clipboard(), handleNumInput(), pyrna_WindowManager_clipboard_set(), report_copy_exec(), blender::ed::vse::text_edit_copy(), text_select_update_primary_clipboard(), txt_copy_clipboard(), ui_but_copy(), and ui_textedit_copypaste().
|
static |
Definition at line 2487 of file wm_window.cc.
References BLI_strdup(), G, G_FLAG_EVENT_SIMULATE, g_wm_clipboard_text_simulate, GHOST_putClipboard(), MEM_callocN(), MEM_SAFE_FREE, and UNLIKELY.
Referenced by WM_clipboard_text_set().
|
static |
Call the confirm dialog on quitting. It's displayed in the context window so caller should set it as desired.
Definition at line 394 of file wm_window.cc.
References C, wmGenericCallback::exec, MEM_callocN(), wm_close_file_dialog(), and wm_save_file_on_quit_dialog_callback().
Referenced by wm_quit_with_optional_confirmation_prompt().
| void wm_cursor_position_from_ghost_client_coords | ( | wmWindow * | win, |
| int * | x, | ||
| int * | y ) |
Definition at line 1304 of file wm_window.cc.
References GHOST_GetNativePixelSize(), wmWindow::ghostwin, wmWindow::sizey, x, and y.
Referenced by wm_cursor_position_from_ghost_screen_coords(), and wm_cursor_position_get().
| void wm_cursor_position_from_ghost_screen_coords | ( | wmWindow * | win, |
| int * | x, | ||
| int * | y ) |
Definition at line 1322 of file wm_window.cc.
References GHOST_ScreenToClient(), wmWindow::ghostwin, wm_cursor_position_from_ghost_client_coords(), x, and y.
Referenced by ghost_event_proc(), wm_event_add_ghostevent(), and WM_window_find_under_cursor().
| bool wm_cursor_position_get | ( | wmWindow * | win, |
| int * | r_x, | ||
| int * | r_y ) |
Definition at line 1334 of file wm_window.cc.
References wmWindow::eventstate, G, G_FLAG_EVENT_SIMULATE, g_system, GHOST_GetCursorPosition(), GHOST_kSuccess, wmWindow::ghostwin, UNLIKELY, wm_cursor_position_from_ghost_client_coords(), and wmEvent::xy.
Referenced by area_join_update_data(), wm_cursor_warp_relative(), wm_drags_draw(), wm_handler_fileselect_do(), wm_paintcursor_draw(), and wm_window_update_eventstate().
| void wm_cursor_position_to_ghost_client_coords | ( | wmWindow * | win, |
| int * | x, | ||
| int * | y ) |
Definition at line 1313 of file wm_window.cc.
References GHOST_GetNativePixelSize(), wmWindow::ghostwin, wmWindow::sizey, x, and y.
Referenced by wm_cursor_position_to_ghost_screen_coords(), and WM_cursor_warp().
| void wm_cursor_position_to_ghost_screen_coords | ( | wmWindow * | win, |
| int * | x, | ||
| int * | y ) |
Definition at line 1328 of file wm_window.cc.
References GHOST_ClientToScreen(), wmWindow::ghostwin, wm_cursor_position_to_ghost_client_coords(), x, and y.
Referenced by WM_cursor_grab_disable(), WM_cursor_grab_enable(), and WM_window_find_under_cursor().
| uint WM_cursor_preferred_logical_size | ( | ) |
Definition at line 2870 of file wm_window.cc.
References g_system, and GHOST_GetCursorPreferredLogicalSize().
Referenced by window_size_calc(), and wm_software_cursor_draw_crosshair().
| void WM_cursor_warp | ( | wmWindow * | win, |
| int | x, | ||
| int | y ) |
Set the cursor location in window coordinates (compatible with wmEvent.xy).
Definition at line 2850 of file wm_window.cc.
References wmWindow::eventstate, g_system, GHOST_SetCursorPosition(), wmWindow::ghostwin, wmEvent::prev_xy, wm_cursor_position_to_ghost_client_coords(), x, wmEvent::xy, and y.
Referenced by initFlyInfo(), wm_cursor_warp_relative(), and wm_gizmomap_modal_set().
| wmTimer * WM_event_timer_add | ( | wmWindowManager * | wm, |
| wmWindow * | win, | ||
| wmEventType | event_type, | ||
| double | time_step ) |
At maximum, every time_step seconds it triggers event_type events.
Definition at line 2330 of file wm_window.cc.
References BLI_addtail(), BLI_assert, BLI_time_now_seconds(), wmTimer::event_type, ISTIMER, MEM_callocN(), wmTimer::time_last, wmTimer::time_next, wmTimer::time_start, wmTimer::time_step, wmWindowManager::timers, and wmTimer::win.
Referenced by button_activate_state(), ED_region_visibility_change_update_animated(), ED_screen_animation_timer(), ED_uvedit_live_unwrap_begin(), ED_view3d_smooth_view_ex(), file_params_invoke_rename_postscroll(), image_view_zoom_init(), initFlyInfo(), initWalkInfo(), minimize_stretch_invoke(), blender::ed::space_node::node_add_image_exec(), blender::ed::space_node::node_add_import_node_exec(), blender::ed::space_node::node_insert_offset_invoke(), blender::ed::sculpt_paint::paint_stroke_modal(), panel_handle_data_ensure(), text_cursor_timer_ensure(), ui_handle_button_event(), ui_handle_menu_event(), ui_pie_handler(), UI_view2d_smooth_view(), uv_sculpt_stroke_invoke(), view_zoom_init(), view_zoomdrag_invoke(), viewzoom_invoke_impl(), wm_autosave_timer_begin_ex(), WM_event_add(), WM_jobs_start(), WM_report_banner_show(), WM_tooltip_init(), and WM_tooltip_timer_init_ex().
| wmTimer * WM_event_timer_add_notifier | ( | wmWindowManager * | wm, |
| wmWindow * | win, | ||
| const uint | type, | ||
| const double | time_step ) |
Definition at line 2352 of file wm_window.cc.
References BLI_addtail(), BLI_assert, BLI_time_now_seconds(), wmTimer::customdata, wmTimer::event_type, wmTimer::flags, MEM_callocN(), POINTER_FROM_UINT, wmTimer::time_last, wmTimer::time_next, wmTimer::time_start, wmTimer::time_step, TIMERNOTIFIER, wmWindowManager::timers, wmTimer::win, and WM_TIMER_NO_FREE_CUSTOM_DATA.
Referenced by file_draw_list(), and WM_event_add().
| void WM_event_timer_free_data | ( | wmTimer * | timer | ) |
Definition at line 2387 of file wm_window.cc.
References MEM_freeN(), timer, and WM_TIMER_NO_FREE_CUSTOM_DATA.
Referenced by WM_event_add(), WM_event_timer_remove(), and WM_event_timers_free_all().
| void WM_event_timer_remove | ( | wmWindowManager * | wm, |
| wmWindow * | win, | ||
| wmTimer * | timer ) |
Mark the given timer to be removed, actual removal and deletion is deferred and handled internally by the window manager code.
Definition at line 2405 of file wm_window.cc.
References BLI_findindex(), EVENT_NONE, LISTBASE_FOREACH, wmWindowManager::runtime, timer, wmWindowManager::timers, wmWindowManager::windows, WM_event_timer_free_data(), and WM_TIMER_TAGGED_FOR_REMOVAL.
Referenced by area_offscreen_exit(), button_activate_state(), ED_region_exit(), ED_screen_animation_timer(), ED_screen_exit(), ED_screen_state_toggle(), ED_uvedit_live_unwrap_end(), ED_view3d_smooth_view_ex(), ViewOpsData::end_navigation(), file_params_smoothscroll_timer_clear(), flyEnd(), image_view_zoom_exit(), minimize_stretch_exit(), blender::ed::space_node::node_add_nodes_modal(), blender::ed::space_node::node_insert_offset_modal(), blender::ed::sculpt_paint::paint_stroke_free(), panel_activate_state(), region_blend_end(), text_cursor_timer_remove(), UI_but_tooltip_timer_remove(), ui_handle_button_event(), ui_popup_block_remove(), UI_view2d_smooth_view(), update_reports_display_invoke(), uv_sculpt_stroke_exit(), view2d_smoothview_invoke(), view3d_smoothview_apply_and_finish_ex(), view_zoom_exit(), view_zoomdrag_exit(), walkEnd(), wm_autosave_timer_end(), WM_event_add(), WM_event_timer_remove_notifier(), wm_jobs_kill_job(), WM_jobs_start(), wm_jobs_timer(), WM_report_banner_show(), WM_report_banners_cancel(), wm_reports_free(), WM_tooltip_timer_clear(), and wm_window_free().
| void WM_event_timer_remove_notifier | ( | wmWindowManager * | wm, |
| wmWindow * | win, | ||
| wmTimer * | timer ) |
Definition at line 2433 of file wm_window.cc.
References timer, and WM_event_timer_remove().
Referenced by file_draw_list(), file_exit(), file_refresh(), and WM_event_add().
| void WM_event_timer_sleep | ( | wmWindowManager * | wm, |
| wmWindow * | win, | ||
| wmTimer * | timer, | ||
| bool | do_sleep ) |
To (de)activate running timers temporary.
Definition at line 2316 of file wm_window.cc.
References BLI_findindex(), timer, wmWindowManager::timers, and WM_TIMER_TAGGED_FOR_REMOVAL.
Referenced by screen_change_prepare(), screen_refresh_if_needed(), and WM_event_add().
| void WM_event_timers_free_all | ( | wmWindowManager * | wm | ) |
Free all timers immediately.
Definition at line 2395 of file wm_window.cc.
References BLI_assert_msg, BLI_listbase_is_empty(), BLI_pophead(), MEM_freeN(), timer, wmWindowManager::timers, wmWindowManager::windows, and WM_event_timer_free_data().
Referenced by wm_close_and_free(), and WM_event_add().
| bool wm_get_desktopsize | ( | int | r_size[2] | ) |
Size of all screens (desktop), useful since the mouse is bound by this.
Definition at line 186 of file wm_window.cc.
References g_system, GHOST_GetAllDisplayDimensions(), and GHOST_kFailure.
Referenced by wm_window_ghostwindow_add(), and wm_window_update_size_position().
| bool wm_get_screensize | ( | int | r_size[2] | ) |
This one should correctly check for apple top header... done for Cocoa: returns window contents (and not frame) max size.
Definition at line 175 of file wm_window.cc.
References g_system, GHOST_GetMainDisplayDimensions(), and GHOST_kFailure.
Referenced by wm_window_check_size(), and wm_window_ghostwindows_ensure().
| const char * WM_ghost_backend | ( | ) |
Return an identifier for the underlying GHOST implementation.
Definition at line 2060 of file wm_window.cc.
References g_system, and g_system_backend_id.
Referenced by bpy_ghost_backend().
| GHOST_TDrawingContextType wm_ghost_drawing_context_type | ( | const eGPUBackendType | gpu_backend | ) |
Definition at line 2072 of file wm_window.cc.
References BLI_assert_unreachable, GHOST_kDrawingContextTypeNone, GPU_BACKEND_ANY, GPU_BACKEND_METAL, GPU_BACKEND_NONE, GPU_BACKEND_OPENGL, and GPU_BACKEND_VULKAN.
Referenced by playanim_window_open(), WM_system_gpu_context_create(), and wm_window_ghostwindow_add().
| void wm_ghost_exit | ( | ) |
Definition at line 2052 of file wm_window.cc.
References g_system, and GHOST_DisposeSystem().
Referenced by WM_exit_ex().
| void wm_ghost_init | ( | bContext * | C | ) |
Definition at line 1986 of file wm_window.cc.
References BLI_assert, BLI_assert_msg, BLI_system_backtrace(), C, GHOST_Debug::flags, G, G_DEBUG_GHOST, G_DEBUG_WINTAB, g_system, g_system_backend_id, GHOST_AddEventConsumer(), GHOST_CreateEventConsumer(), GHOST_CreateSystem(), ghost_event_proc(), GHOST_kDebugDefault, GHOST_kDebugWintab, GHOST_SetBacktraceHandler(), GHOST_SystemBackend(), GHOST_SystemInitDebug(), GHOST_UseNativePixels(), GHOST_UseWindowFocus(), GPU_backend_ghost_system_set(), UNLIKELY, and wm_init_state.
Referenced by WM_init().
| void wm_ghost_init_background | ( | ) |
Definition at line 2032 of file wm_window.cc.
References BLI_system_backtrace(), GHOST_Debug::flags, G, G_DEBUG_GHOST, g_system, GHOST_CreateSystemBackground(), GHOST_kDebugDefault, GHOST_SetBacktraceHandler(), GHOST_SystemInitDebug(), and GPU_backend_ghost_system_set().
Referenced by WM_init_gpu().
|
static |
Check if specified modifier key type is pressed.
Definition at line 1353 of file wm_window.cc.
References ARRAY_SIZE, g_modifier_table, g_system, GHOST_GetModifierKeyState(), ghost_mask_pair, i, and result.
Referenced by wm_window_update_eventstate_modifiers(), and wm_window_update_eventstate_modifiers_clear().
| void WM_ghost_show_message_box | ( | const char * | title, |
| const char * | message, | ||
| const char * | help_label, | ||
| const char * | continue_label, | ||
| const char * | link, | ||
| GHOST_DialogOptions | dialog_options ) |
Definition at line 3248 of file wm_window.cc.
References BLI_assert, g_system, and GHOST_ShowMessageBox().
Referenced by WM_platform_support_perform_checks().
|
static |
Definition at line 211 of file wm_window.cc.
References g_system, GHOST_ActivateWindowDrawingContext(), GHOST_DisposeWindow(), wmWindow::ghostwin, GPU_context_active_set(), GPU_context_discard(), wmWindow::gpuctx, UNLIKELY, wmWindowManager::winactive, and wm_window_clear_drawable().
Referenced by wm_window_free().
| void WM_init_input_devices | ( | ) |
Definition at line 2828 of file wm_window.cc.
References g_system, GHOST_kTabletAutomatic, GHOST_kTabletWinPointer, GHOST_kTabletWintab, GHOST_SetMultitouchGestures(), GHOST_SetTabletAPI(), U, UNLIKELY, USER_NO_MULTITOUCH_GESTURES, USER_TABLET_AUTOMATIC, USER_TABLET_NATIVE, and USER_TABLET_WINTAB.
Referenced by wm_init_userdef().
| void WM_init_native_pixels | ( | bool | do_it | ) |
Definition at line 2817 of file wm_window.cc.
References wm_init_state.
Referenced by arg_handle_native_pixels_set().
| void WM_init_state_fullscreen_set | ( | ) |
For border-less and border windows set from command-line.
Definition at line 2794 of file wm_window.cc.
References GHOST_kWindowStateFullScreen, WIN_OVERRIDE_WINSTATE, and wm_init_state.
Referenced by arg_handle_without_borders().
| void WM_init_state_maximized_set | ( | ) |
Definition at line 2806 of file wm_window.cc.
References GHOST_kWindowStateMaximized, WIN_OVERRIDE_WINSTATE, and wm_init_state.
Referenced by arg_handle_window_maximized().
| void WM_init_state_normal_set | ( | ) |
Definition at line 2800 of file wm_window.cc.
References GHOST_kWindowStateNormal, WIN_OVERRIDE_WINSTATE, and wm_init_state.
Referenced by arg_handle_with_borders().
| void WM_init_state_size_set | ( | int | stax, |
| int | stay, | ||
| int | sizx, | ||
| int | sizy ) |
Called when no ghost system was initialized.
Definition at line 2787 of file wm_window.cc.
References WIN_OVERRIDE_GEOM, and wm_init_state.
Referenced by arg_handle_window_geometry().
| void WM_init_window_focus_set | ( | bool | do_it | ) |
Definition at line 2812 of file wm_window.cc.
References wm_init_state.
Referenced by arg_handle_no_window_focus().
| void WM_progress_clear | ( | wmWindow * | win | ) |
Definition at line 2671 of file wm_window.cc.
References GHOST_EndProgressBar(), and wmWindow::ghostwin.
Referenced by redraw_timer_exec(), and wm_jobs_update_progress_bars().
| void WM_progress_set | ( | wmWindow * | win, |
| float | progress ) |
Definition at line 2663 of file wm_window.cc.
References GHOST_SetProgressBar(), wmWindow::ghostwin, and progress.
Referenced by redraw_timer_step(), and wm_jobs_update_progress_bars().
Call the quit confirmation prompt or exit directly if needed. The use can still cancel via the confirmation popup. Also, this may not quit Blender immediately, but rather schedule the closing.
| win | The window to show the confirmation popup/window in. |
Definition at line 401 of file wm_window.cc.
References C, CTX_data_main(), CTX_wm_manager(), CTX_wm_window(), CTX_wm_window_set(), G, U, USER_SAVE_PROMPT, wm_confirm_quit(), wm_exit_schedule_delayed(), wm_file_or_session_data_has_unsaved_changes(), and wm_window_raise().
Referenced by ghost_event_proc(), wm_exit_blender_invoke(), and wm_window_close().
|
static |
Definition at line 385 of file wm_window.cc.
References C, and wm_exit_schedule_delayed().
Referenced by wm_confirm_quit().
| void WM_system_gpu_context_activate | ( | void * | context | ) |
Definition at line 3236 of file wm_window.cc.
References BLI_assert, GHOST_ActivateGPUContext(), GPU_framebuffer_active_get(), and GPU_framebuffer_back_get().
Referenced by ContextShared::ContextShared(), DRW_gpu_context_activate(), DRW_system_gpu_render_context_enable(), ContextShared::enable(), blender::render::Compositor::execute(), RE_blender_gpu_context_free(), RE_engine_gpu_context_create(), RE_engine_gpu_context_destroy(), RE_engine_gpu_context_enable(), RE_system_gpu_context_free(), wm_surface_set_drawable(), and ContextShared::~ContextShared().
| void * WM_system_gpu_context_create | ( | ) |
Definition at line 3203 of file wm_window.cc.
References BLI_assert, BLI_thread_is_main(), GHOST_GPUSettings::context_type, GHOST_GPUDevice::device_id, GHOST_GPUSettings::flags, G, G_DEBUG_GPU, g_system, GHOST_CreateGPUContext(), GHOST_gpuDebugContext, GPU_backend_type_selection_get(), GPU_framebuffer_active_get(), GPU_framebuffer_back_get(), GHOST_GPUDevice::index, GHOST_GPUSettings::preferred_device, U, GHOST_GPUDevice::vendor_id, and wm_ghost_drawing_context_type().
Referenced by ContextShared::ContextShared(), blender::eevee::LightBake::LightBake(), RE_engine_gpu_context_create(), and RE_system_gpu_context_ensure().
| void WM_system_gpu_context_dispose | ( | void * | context | ) |
Definition at line 3230 of file wm_window.cc.
References BLI_assert, g_system, GHOST_DisposeGPUContext(), GPU_framebuffer_active_get(), and GPU_framebuffer_back_get().
Referenced by RE_engine_gpu_context_destroy(), RE_system_gpu_context_free(), and ContextShared::~ContextShared().
| void WM_system_gpu_context_release | ( | void * | context | ) |
Definition at line 3242 of file wm_window.cc.
References BLI_assert, GHOST_ReleaseGPUContext(), GPU_framebuffer_active_get(), and GPU_framebuffer_back_get().
Referenced by ContextShared::disable(), DRW_gpu_context_create(), DRW_gpu_context_release(), DRW_system_gpu_render_context_disable(), blender::render::Compositor::execute(), RE_engine_gpu_context_create(), RE_engine_gpu_context_disable(), RE_system_gpu_context_ensure(), and wm_surface_clear_drawable().
| void wm_test_gpu_backend_fallback | ( | bContext * | C | ) |
Definition at line 2230 of file wm_window.cc.
References block_create_gpu_backend_fallback(), C, CTX_wm_manager(), CTX_wm_window(), CTX_wm_window_set(), ListBase::first, G, G_FLAG_GPU_BACKEND_FALLBACK, G_FLAG_GPU_BACKEND_FALLBACK_QUIET, wmWindow::parent, UI_popup_block_invoke(), wmWindowManager::winactive, and wmWindowManager::windows.
Referenced by wm_event_do_notifiers().
| void wm_test_opengl_deprecation_warning | ( | bContext * | C | ) |
Definition at line 2167 of file wm_window.cc.
References BKE_report(), block_create_opengl_usage_warning(), C, CTX_wm_manager(), CTX_wm_window(), CTX_wm_window_set(), ListBase::first, G, wmWindow::parent, RPT_ERROR, wmWindowManager::runtime, UI_popup_block_invoke(), wmWindowManager::winactive, and wmWindowManager::windows.
Referenced by wm_event_do_notifiers().
|
static |
Keeps size within monitor bounds.
Definition at line 198 of file wm_window.cc.
References BLI_rcti_resize_x(), BLI_rcti_resize_y(), BLI_rcti_size_x(), BLI_rcti_size_y(), and wm_get_screensize().
Referenced by WM_window_open().
| void wm_window_clear_drawable | ( | wmWindowManager * | wm | ) |
Definition at line 1377 of file wm_window.cc.
References wmWindowManager::windrawable.
Referenced by blend_file_thumb_from_camera(), wm_draw_surface(), wm_draw_update(), wm_file_read_setup_wm_use_new(), wm_ghostwindow_destroy(), wm_userpref_read_exec(), wm_window_ghostwindow_add(), wm_window_make_drawable(), and wm_window_reset_drawable().
| void wm_window_close | ( | bContext * | C, |
| wmWindowManager * | wm, | ||
| wmWindow * | win ) |
This is event from ghost, or exit-Blender operator.
Definition at line 433 of file wm_window.cc.
References BKE_workspace_active_layout_get(), BKE_workspace_layout_remove(), BKE_workspace_layout_screen_get(), BLI_assert, BLI_remlink(), C, CTX_data_main(), CTX_wm_window_set(), ED_screen_exit(), ListBase::first, wmWindow::handlers, LISTBASE_FOREACH_MUTABLE, wmWindow::modalhandlers, NA_REMOVED, NC_SCREEN, NC_WINDOW, ND_LAYOUTDELETE, wmWindow::next, wmWindow::parent, bScreen::temp, wmWindowManager::windows, WM_event_add_notifier(), WM_event_remove_handlers(), WM_main_add_notifier(), wm_quit_with_optional_confirmation_prompt(), wm_window_close(), wm_window_free(), WM_window_get_active_screen(), WM_window_get_active_workspace(), WM_window_is_temp_screen(), and wmWindow::workspace_hook.
Referenced by area_join_modal(), ghost_event_proc(), render_view_cancel_exec(), wm_handler_fileselect_do(), wm_homefile_write_exec(), wm_stereo3d_set_exec(), wm_window_close(), wm_window_close_exec(), wm_window_copy_test(), wm_window_ghostwindows_remove_invalid(), and WM_window_open().
| wmOperatorStatus wm_window_close_exec | ( | bContext * | C, |
| wmOperator * | op ) |
Definition at line 1227 of file wm_window.cc.
References C, CTX_wm_manager(), CTX_wm_window(), OPERATOR_FINISHED, and wm_window_close().
Referenced by WM_OT_window_close().
| wmWindow * wm_window_copy | ( | Main * | bmain, |
| wmWindowManager * | wm, | ||
| wmWindow * | win_src, | ||
| bool | duplicate_layout, | ||
| bool | child ) |
Part of wm_window.cc API.
Definition at line 329 of file wm_window.cc.
References BKE_workspace_active_layout_set(), BKE_workspace_active_set(), ED_workspace_layout_duplicate(), GHOST_IsDialogWindow(), wmWindow::ghostwin, wmWindow::parent, wmWindow::posx, wmWindow::posy, wmWindow::scene, wmWindow::sizex, wmWindow::sizey, wmWindow::stereo3d_format, STRNCPY(), wmWindow::view_layer_name, wmWindow::winid, WM_window_get_active_layout(), WM_window_get_active_workspace(), wm_window_new(), and wmWindow::workspace_hook.
Referenced by wm_window_copy_test().
| wmWindow * wm_window_copy_test | ( | bContext * | C, |
| wmWindow * | win_src, | ||
| bool | duplicate_layout, | ||
| bool | child ) |
A higher level version of copy that tests the new window can be added. (called from the operator directly).
Definition at line 359 of file wm_window.cc.
References C, CTX_data_main(), CTX_wm_manager(), CTX_wm_window(), wmWindow::ghostwin, NA_ADDED, NC_WINDOW, WM_check(), WM_event_add_notifier_ex(), wm_window_close(), and wm_window_copy().
Referenced by wm_stereo3d_set_exec(), and wm_window_new_main_exec().
Apply the window decoration style using the current style flags and by parsing style settings from the current Blender theme. The screen parameter is optional, and can be passed for enhanced theme parsing.
Definition at line 687 of file wm_window.cc.
References BLI_assert, GHOST_ApplyWindowDecorationStyle(), wmWindow::ghostwin, WM_capabilities_flag(), WM_CAPABILITY_WINDOW_DECORATION_STYLES, and wm_window_decoration_style_set_from_theme().
Referenced by ED_screen_do_listen(), and wm_window_ghostwindow_ensure().
| eWM_WindowDecorationStyleFlag WM_window_decoration_style_flags_get | ( | const wmWindow * | win | ) |
Get the window decoration style flags.
Definition at line 627 of file wm_window.cc.
References GHOST_GetWindowDecorationStyleFlags(), GHOST_kDecorationColoredTitleBar, wmWindow::ghostwin, WM_WINDOW_DECORATION_STYLE_COLORED_TITLEBAR, and WM_WINDOW_DECORATION_STYLE_NONE.
| void WM_window_decoration_style_flags_set | ( | const wmWindow * | win, |
| eWM_WindowDecorationStyleFlag | style_flags ) |
Set window decoration style flags. Use before calling WM_window_decoration_style_apply.
Definition at line 641 of file wm_window.cc.
References BLI_assert, GHOST_kDecorationColoredTitleBar, GHOST_kDecorationNone, GHOST_SetWindowDecorationStyleFlags(), wmWindow::ghostwin, WM_capabilities_flag(), WM_CAPABILITY_WINDOW_DECORATION_STYLES, and WM_WINDOW_DECORATION_STYLE_COLORED_TITLEBAR.
Referenced by wm_window_ghostwindow_ensure().
|
static |
Definition at line 656 of file wm_window.cc.
References bScreen::areabase, BLI_listbase_is_single(), GHOST_WindowDecorationStyleSettings::colored_titlebar_bg_color, GHOST_WindowDecorationStyleSettings::colored_titlebar_fg_color, copy_v3_v3(), ListBase::first, GHOST_SetWindowDecorationStyleSettings(), wmWindow::ghostwin, RGN_TYPE_HEADER, RGN_TYPE_WINDOW, SPACE_TOPBAR, ScrArea::spacetype, TH_BACK, TH_BUTBACK_TEXT, UI_GetThemeColor3fv(), UI_SetTheme(), and WM_window_is_main_top_level().
Referenced by WM_window_decoration_style_apply().
| void WM_window_ensure_active_view_layer | ( | wmWindow * | win | ) |
Definition at line 3089 of file wm_window.cc.
References BKE_view_layer_default_view(), BKE_view_layer_find(), ViewLayer::name, STRNCPY(), wmWindow::view_layer_name, and WM_window_get_active_scene().
Referenced by ED_screen_scene_change().
|
static |
Definition at line 805 of file wm_window.cc.
References wmWindow::eventstate, MEM_callocN(), and wm_window_update_eventstate().
Referenced by wm_window_ghostwindow_add(), and wm_window_ghostwindow_ensure().
| void wm_window_events_process | ( | const bContext * | C | ) |
Definition at line 1937 of file wm_window.cc.
References BLI_assert, BLI_thread_is_main(), BLI_time_sleep_ms(), C, CTX_wm_manager(), G, G_FLAG_EVENT_SIMULATE, g_system, GHOST_DispatchEvents(), GHOST_ProcessEvents(), GPU_render_begin(), GPU_render_end(), wm_window_timers_process(), and wm_xr_events_handle().
Referenced by WM_main().
| wmWindow * WM_window_find_by_area | ( | wmWindowManager * | wm, |
| const ScrArea * | area ) |
Knowing the area, return its screen.
Definition at line 2770 of file wm_window.cc.
References bScreen::areabase, BLI_findindex(), LISTBASE_FOREACH, wmWindowManager::windows, and WM_window_get_active_screen().
Referenced by area_join_init(), area_join_update_data(), graph_init(), and nla_init().
| wmWindow * WM_window_find_under_cursor | ( | wmWindow * | win, |
| const int | event_xy[2], | ||
| int | r_event_xy_other[2] ) |
Definition at line 2738 of file wm_window.cc.
References BLI_rcti_isect_pt_v(), copy_v2_v2_int(), g_system, GHOST_GetWindowUnderCursor(), GHOST_GetWindowUserData(), WM_capabilities_flag(), WM_CAPABILITY_WINDOW_POSITION, wm_cursor_position_from_ghost_screen_coords(), wm_cursor_position_to_ghost_screen_coords(), and WM_window_rect_calc().
Referenced by ED_area_find_under_cursor(), eyedropper_color_sample_fl(), eyedropper_cryptomatte_sample_fl(), eyedropper_win_area_find(), view_edge_pan_modal(), wm_drags_exit(), and wm_event_cursor_other_windows().
| void wm_window_free | ( | bContext * | C, |
| wmWindowManager * | wm, | ||
| wmWindow * | win ) |
Including window itself.
| C | can be NULL. |
Definition at line 239 of file wm_window.cc.
References BKE_screen_area_map_free(), BKE_workspace_instance_hook_free(), C, CTX_wm_window(), CTX_wm_window_set(), wmWindow::cursor_keymap_status, wmWindow::event_last_handled, wmWindow::event_queue_consecutive_gesture_data, wmWindow::eventstate, G_MAIN, wmWindow::global_areas, wmWindow::handlers, LISTBASE_FOREACH_MUTABLE, MEM_freeN(), wmWindow::modalhandlers, wmWindow::runtime, wmWindow::stereo3d_format, TIMERJOBS, wmWindowManager::timers, WM_event_consecutive_data_free(), wm_event_free_all(), WM_event_remove_handlers(), WM_event_timer_remove(), WM_gestures_free_all(), wm_ghostwindow_destroy(), wm_jobs_timer_end(), WM_TIMER_TAGGED_FOR_REMOVAL, wm_window_timers_delete_removed(), and wmWindow::workspace_hook.
Referenced by wm_close_and_free(), and wm_window_close().
| wmOperatorStatus wm_window_fullscreen_toggle_exec | ( | bContext * | C, |
| wmOperator * | op ) |
Full-screen operator callback.
Definition at line 1276 of file wm_window.cc.
References C, CTX_wm_window(), G, GHOST_GetWindowState(), GHOST_kWindowStateFullScreen, GHOST_kWindowStateNormal, GHOST_SetWindowState(), wmWindow::ghostwin, OPERATOR_CANCELLED, OPERATOR_FINISHED, and state.
Referenced by WM_OT_window_fullscreen_toggle().
| WorkSpaceLayout * WM_window_get_active_layout | ( | const wmWindow * | win | ) |
Definition at line 3124 of file wm_window.cc.
References BKE_workspace_active_layout_get(), LIKELY, WM_window_get_active_workspace(), and wmWindow::workspace_hook.
Referenced by ED_screen_state_toggle(), wm_event_do_notifiers(), wm_file_read_setup_wm_keep_old(), wm_window_copy(), and workspace_change_get_new_layout().
Definition at line 3017 of file wm_window.cc.
References wmWindow::scene.
Referenced by buttons_context_path(), buttons_shading_context(), buttons_shading_new_context(), ED_area_init(), ED_area_newspace(), ED_area_offscreen_create(), ED_editors_init_for_undo(), ED_scene_add(), ED_screen_exit(), ED_screen_scene_find_with_window(), ED_view3d_gizmo_ruler_remove_by_gpencil_layer(), find_area_showing_render_result(), graph_init(), image_listener(), nla_init(), blender::ed::object::object_delete_exec(), RE_FreeUnusedGPUResources(), screen_change_update(), screen_ctx_active_annotation_layer(), screen_ctx_active_bone(), screen_ctx_active_object(), screen_ctx_active_pose_bone(), screen_ctx_active_sequence_strip(), screen_ctx_active_strip(), screen_ctx_annotation_data(), screen_ctx_annotation_data_owner(), screen_ctx_edit_object(), screen_ctx_editable_objects(), screen_ctx_grease_pencil_data(), screen_ctx_image_paint_object(), screen_ctx_object(), screen_ctx_objects_in_mode(), screen_ctx_objects_in_mode_unique_data(), screen_ctx_particle_edit_object(), screen_ctx_pose_object(), screen_ctx_scene(), screen_ctx_sculpt_object(), screen_ctx_selectable_objects(), screen_ctx_selected_bones_(), screen_ctx_selected_editable_objects(), screen_ctx_selected_editable_sequences(), screen_ctx_selected_editable_strips(), screen_ctx_selected_objects(), screen_ctx_selected_pose_bones(), screen_ctx_selected_pose_bones_from_active_object(), screen_ctx_selected_sequences(), screen_ctx_selected_strips(), screen_ctx_sequences(), screen_ctx_strips(), screen_ctx_vertex_paint_object(), screen_ctx_visible_objects(), screen_ctx_visible_or_editable_bones_(), screen_ctx_visible_pose_bones(), screen_ctx_weight_paint_object(), screen_global_area_refresh(), sound_jack_sync_callback(), toolsystem_brush_activate_from_toolref_for_object_paint(), toolsystem_brush_activate_from_toolref_for_object_particle(), toolsystem_brush_clear_paint_reference(), toolsystem_refresh_screen_from_active_tool(), blender::ed::outliner::tree_element_viewlayer_activate(), view3d_main_region_cursor(), wm_draw_area_offscreen(), wm_draw_region_test(), wm_draw_update_test_window(), wm_draw_window(), wm_draw_window_offscreen(), wm_event_do_depsgraph(), wm_event_do_handlers(), wm_event_do_notifiers(), WM_event_handler_region_marker_poll(), WM_event_handler_region_v2d_mask_no_marker_poll(), WM_stereo3d_enabled(), WM_toolsystem_do_msg_notify_tag_refresh(), WM_toolsystem_ref_sync_from_context(), WM_toolsystem_refresh_active(), WM_toolsystem_refresh_screen_window(), WM_toolsystem_reinit_all(), WM_window_cursor_keymap_status_refresh(), WM_window_ensure_active_view_layer(), WM_window_get_active_view_layer(), WM_window_open(), WM_window_pixels_read_from_offscreen(), WM_window_set_active_view_layer(), WM_windows_scene_data_sync(), WM_windows_scene_get_from_screen(), wm_xr_session_scene_and_depsgraph_get(), workspace_exit(), and workspace_scene_pinning_update().
Get the active screen of the active workspace in win.
Definition at line 3135 of file wm_window.cc.
References BKE_workspace_active_screen_get(), LIKELY, WM_window_get_active_workspace(), and wmWindow::workspace_hook.
Referenced by actionzone_area_poll(), area_docking_apply(), area_join_dock_cb_window(), area_join_modal(), bpy_rna_context_temp_override_enter(), bpy_rna_context_temp_override_enter_ok_or_error(), bpy_rna_context_temp_override_exit(), bpy_rna_context_temp_set_screen_for_window(), button_activate_init(), button_tooltip_timer_reset(), blender::ed::space_node::compo_get_recalc_flags(), blender::ed::space_node::compositor_is_in_use(), context_find_graph_editor(), ED_area_find_under_cursor(), ED_area_type_hud_clear(), ED_area_update_region_sizes(), ED_areas_do_frame_follow(), ED_clip_update_frame(), ED_editors_init(), ED_fileselect_handler_area_find(), ED_fileselect_handler_area_find_any_with_op(), ED_info_stats_clear(), ED_region_do_draw(), ED_render_scene_update(), ED_render_view3d_update(), ED_screen_animation_no_scrub(), ED_screen_animation_playing(), ED_screen_draw_edges(), ED_screen_refresh(), ED_screen_scene_change(), ED_screen_scene_find_with_window(), ED_screen_set_active_region(), ED_screen_state_toggle(), ED_screen_window_find(), ED_space_image_paint_update(), ED_space_image_sync(), ED_view3d_gizmo_ruler_remove_by_gpencil_layer(), blender::ed::animrig::ensure_asset_ui_visible(), eyedropper_color_sample_fl(), eyedropper_cryptomatte_sample_fl(), eyedropper_win_area_find(), find_area_showing_render_result(), blender::ed::sculpt_paint::flush_update_done(), blender::ed::asset::list::foreach_visible_asset_browser_showing_library(), get_compositor_needed_outputs(), ghost_event_proc(), gizmo_mesh_spin_redo_setup(), menu_items_from_ui_create(), RE_FreeUnusedGPUResources(), redraw_timer_step(), region_cursor_set(), region_cursor_set_ex(), render_image_restore_layer(), render_image_update_pass_and_layer(), render_view_show_invoke(), screen_animation_step_invoke(), screen_cursor_set(), screen_geom_select_connected_edge(), screen_refresh_if_needed(), screen_state_to_nonnormal(), blender::ed::asset::shelf::show_catalog_in_visible_shelves(), toolsystem_refresh_screen_from_active_tool(), UI_but_tooltip_refresh(), UI_popup_block_close(), ui_popup_block_remove(), wm_drags_exit(), wm_draw_region_clear(), wm_draw_update_clear_window(), wm_draw_update_test_window(), wm_draw_window(), wm_draw_window_offscreen(), wm_draw_window_onscreen(), wm_dropbox_active(), wm_dropbox_invoke(), wm_event_do_depsgraph(), wm_event_do_handlers(), wm_event_do_notifiers(), wm_event_do_refresh_wm_and_depsgraph(), wm_event_drag_and_drop_test(), WM_exit_ex(), wm_file_read_setup_wm_init(), wm_file_read_setup_wm_keep_old(), wm_gesture_tag_redraw(), wm_handler_fileselect_do(), wm_handler_op_context_get_if_valid(), WM_keyconfig_update_ex(), WM_operator_handlers_clear(), wm_operator_winactive_normal(), wm_operator_winactive_not_full(), WM_paint_cursor_tag_redraw(), wm_paintcursor_draw(), wm_region_tag_draw_on_gizmo_delay_refresh_for_tweak(), WM_stereo3d_enabled(), wm_stereo3d_set_exec(), WM_toolsystem_do_msg_notify_tag_refresh(), WM_toolsystem_refresh_active(), WM_toolsystem_refresh_screen_window(), WM_toolsystem_reinit_all(), WM_tooltip_clear(), WM_tooltip_immediate_init(), WM_tooltip_init(), WM_tooltip_refresh(), WM_tooltip_timer_clear(), WM_tooltip_timer_init_ex(), wm_window_close(), WM_window_cursor_keymap_status_refresh(), WM_window_find_by_area(), WM_window_is_temp_screen(), WM_window_open(), WM_window_set_active_workspace(), WM_window_status_area_tag_redraw(), WM_window_title(), WM_windows_scene_get_from_screen(), WM_windows_view_layer_get_from_screen(), and WM_windows_workspace_get_from_screen().
Definition at line 3051 of file wm_window.cc.
References BKE_view_layer_default_view(), BKE_view_layer_find(), wmWindow::view_layer_name, WM_window_get_active_scene(), and WM_window_set_active_view_layer().
Referenced by buttons_context_path(), buttons_context_path_brush(), buttons_context_path_view_layer(), buttons_shading_context(), buttons_shading_new_context(), buttons_texture_users_from_context(), clean_viewport_memory(), ED_area_init(), ED_editors_init_for_undo(), ED_info_stats_clear(), ED_screen_scene_change(), ED_undo_object_editmode_validate_scene_from_windows(), image_listener(), screen_animation_step_invoke(), screen_ctx_active_bone(), screen_ctx_active_object(), screen_ctx_active_pose_bone(), screen_ctx_edit_object(), screen_ctx_editable_objects(), screen_ctx_grease_pencil_data(), screen_ctx_image_paint_object(), screen_ctx_object(), screen_ctx_objects_in_mode(), screen_ctx_objects_in_mode_unique_data(), screen_ctx_particle_edit_object(), screen_ctx_pose_object(), screen_ctx_sculpt_object(), screen_ctx_selectable_objects(), screen_ctx_selected_bones_(), screen_ctx_selected_editable_objects(), screen_ctx_selected_objects(), screen_ctx_selected_pose_bones(), screen_ctx_selected_pose_bones_from_active_object(), screen_ctx_vertex_paint_object(), screen_ctx_visible_objects(), screen_ctx_visible_or_editable_bones_(), screen_ctx_visible_pose_bones(), screen_ctx_weight_paint_object(), sound_jack_sync_callback(), toolsystem_refresh_screen_from_active_tool(), blender::ed::outliner::tree_element_object_activate(), view3d_main_region_cursor(), view3d_main_region_listener(), view_layer_add_exec(), wm_draw_update_test_window(), wm_event_do_depsgraph(), WM_toolsystem_do_msg_notify_tag_refresh(), WM_toolsystem_ref_sync_from_context(), WM_toolsystem_refresh_active(), WM_toolsystem_refresh_screen_window(), WM_toolsystem_reinit_all(), WM_window_cursor_keymap_status_refresh(), WM_window_set_active_scene(), WM_windows_view_layer_get_from_screen(), and wm_xr_session_scene_and_depsgraph_get().
Definition at line 3100 of file wm_window.cc.
References BKE_workspace_active_get(), and wmWindow::workspace_hook.
Referenced by ED_area_init(), ED_screen_state_toggle(), ED_workspace_change(), ED_workspace_delete(), screen_state_to_nonnormal(), space_workspace_cycle_invoke(), template_id_workspace_pin_extra_icon(), toolsystem_brush_activate_from_toolref_for_object_paint(), toolsystem_brush_activate_from_toolref_for_object_particle(), toolsystem_brush_clear_paint_reference(), toolsystem_refresh_screen_from_active_tool(), wm_event_do_handlers(), wm_event_do_notifiers(), WM_toolsystem_do_msg_notify_tag_refresh(), WM_toolsystem_ref_sync_from_context(), WM_toolsystem_refresh_active(), WM_toolsystem_refresh_screen_window(), WM_toolsystem_reinit_all(), WM_toolsystem_update_from_context_view3d(), wm_window_close(), wm_window_copy(), WM_window_cursor_keymap_status_refresh(), WM_window_get_active_layout(), WM_window_get_active_screen(), WM_window_open(), and WM_windows_workspace_get_from_screen().
| bool wm_window_get_swap_interval | ( | wmWindow * | win, |
| int * | r_interval ) |
Definition at line 2727 of file wm_window.cc.
References GHOST_GetSwapInterval(), and wmWindow::ghostwin.
|
static |
Definition at line 818 of file wm_window.cc.
References GHOST_GPUSettings::context_type, GHOST_GPUDevice::device_id, Stereo3dFormat::display_mode, GHOST_GPUSettings::flags, G, G_DEBUG_GPU, g_system, GHOST_CreateWindow(), GHOST_GetWindowState(), GHOST_gpuDebugContext, GHOST_gpuStereoVisual, GHOST_kWindowStateMinimized, GHOST_SetWindowState(), GHOST_SetWindowUserData(), wmWindow::ghostwin, GPU_backend_type_selection_get(), GPU_clear_color(), GPU_context_create(), GPU_init(), GPU_render_begin(), GPU_render_end(), wmWindow::gpuctx, GHOST_GPUDevice::index, wmWindow::parent, wmWindow::posx, wmWindow::posy, GHOST_GPUSettings::preferred_device, RGN_TYPE_HEADER, S3D_DISPLAY_PAGEFLIP, wmWindow::sizex, wmWindow::sizey, SPACE_TOPBAR, wmWindow::stereo3d_format, TH_BACK, U, UI_GetThemeColor3fv(), UI_SetTheme(), GHOST_GPUDevice::vendor_id, wmWindow::windowstate, wmWindowManager::windrawable, WM_capabilities_flag(), WM_CAPABILITY_WINDOW_POSITION, wm_get_desktopsize(), wm_ghost_drawing_context_type(), wm_init_state, wm_window_clear_drawable(), wm_window_ensure_eventstate(), WM_window_set_dpi(), wm_window_set_drawable(), wm_window_swap_buffers(), and wm_window_update_size_position().
Referenced by wm_window_ghostwindow_ensure().
|
static |
Definition at line 921 of file wm_window.cc.
References wmWindow::cursor, wmWindowManager::defaultconf, ED_screen_global_areas_refresh(), GHOST_kWindowStateNormal, GHOST_WINDOW_STATE_DEFAULT, wmWindow::ghostwin, wmWindow::handlers, wmWindow::modalhandlers, wmWindow::posx, wmWindow::posy, RGN_TYPE_WINDOW, wmWindow::sizex, wmWindow::sizey, SPACE_EMPTY, WIN_OVERRIDE_GEOM, WIN_OVERRIDE_WINSTATE, wmWindow::windowstate, WM_capabilities_flag(), WM_CAPABILITY_WINDOW_DECORATION_STYLES, WM_CURSOR_DEFAULT, WM_dropboxmap_find(), WM_event_add_dropbox_handler(), WM_event_add_keymap_handler(), wm_init_state, WM_keymap_ensure(), WM_window_decoration_style_apply(), WM_WINDOW_DECORATION_STYLE_COLORED_TITLEBAR, WM_window_decoration_style_flags_set(), wm_window_ensure_eventstate(), wm_window_ghostwindow_add(), WM_window_set_dpi(), and WM_window_title().
Referenced by wm_window_ghostwindows_ensure(), and WM_window_open().
| void wm_window_ghostwindows_ensure | ( | wmWindowManager * | wm | ) |
Initialize wmWindow without ghostwin, open these and clear.
Window size is read from window, if 0 it uses prefsize called in WM_check, also initialize stuff after file read.
Definition at line 989 of file wm_window.cc.
References BLI_assert, G, LISTBASE_FOREACH, UNLIKELY, wmWindowManager::windows, wm_get_screensize(), wm_init_state, and wm_window_ghostwindow_ensure().
Referenced by WM_check().
| void wm_window_ghostwindows_remove_invalid | ( | bContext * | C, |
| wmWindowManager * | wm ) |
Call after wm_window_ghostwindows_ensure or WM_check (after loading a new file) in the unlikely event a window couldn't be created.
Definition at line 1014 of file wm_window.cc.
References BLI_assert, C, G, LISTBASE_FOREACH_MUTABLE, wmWindowManager::windows, and wm_window_close().
Referenced by wm_file_read_post().
| bool WM_window_is_fullscreen | ( | const wmWindow * | win | ) |
Definition at line 2947 of file wm_window.cc.
References GHOST_kWindowStateFullScreen, and wmWindow::windowstate.
Referenced by area_azone_init(), and wm_stereo3d_set_exec().
| bool WM_window_is_main_top_level | ( | const wmWindow * | win | ) |
Return whether the window is a main/top-level window. In which case it is expected to contain global areas (top-bar/status-bar).
Definition at line 2957 of file wm_window.cc.
References BKE_workspace_active_screen_get(), wmWindow::parent, bScreen::temp, and wmWindow::workspace_hook.
Referenced by ED_screen_global_areas_refresh(), and wm_window_decoration_style_set_from_theme().
| bool WM_window_is_maximized | ( | const wmWindow * | win | ) |
Definition at line 2952 of file wm_window.cc.
References GHOST_kWindowStateMaximized, and wmWindow::windowstate.
Referenced by ED_fileselect_window_params_get().
| bool WM_window_is_temp_screen | ( | const wmWindow * | win | ) |
Definition at line 3147 of file wm_window.cc.
References bScreen::temp, and WM_window_get_active_screen().
Referenced by ED_fileselect_exit(), ED_screen_exit(), render_view_cancel_exec(), render_view_show_invoke(), screen_maximize_area_poll(), space_workspace_cycle_invoke(), wm_handler_fileselect_do(), wm_homefile_write_exec(), wm_window_close(), and WM_window_title().
| void wm_window_lower | ( | wmWindow * | win | ) |
Definition at line 2695 of file wm_window.cc.
References GHOST_kWindowOrderBottom, GHOST_SetWindowOrder(), and wmWindow::ghostwin.
Referenced by render_view_show_invoke().
| void wm_window_make_drawable | ( | wmWindowManager * | wm, |
| wmWindow * | win ) |
Definition at line 1384 of file wm_window.cc.
References BLI_assert, G, G_DEBUG_EVENTS, wmWindow::ghostwin, GPU_framebuffer_active_get(), GPU_framebuffer_back_get(), printf, wmWindowManager::windrawable, wmWindow::winid, wm_window_clear_drawable(), WM_window_set_dpi(), and wm_window_set_drawable().
Referenced by blend_file_thumb_from_camera(), ghost_event_proc(), redraw_timer_exec(), wm_add_default(), wm_draw_update(), wm_event_do_handlers(), and wm_handler_fileselect_do().
| void WM_window_native_pixel_coords | ( | const wmWindow * | win, |
| int * | x, | ||
| int * | y ) |
Definition at line 2901 of file wm_window.cc.
References GHOST_GetNativePixelSize(), wmWindow::ghostwin, x, and y.
Referenced by area_docking_target().
| blender::int2 WM_window_native_pixel_size | ( | const wmWindow * | win | ) |
Definition at line 2894 of file wm_window.cc.
References GHOST_GetNativePixelSize(), wmWindow::ghostwin, wmWindow::sizex, and wmWindow::sizey.
Referenced by blender::ed::asset::clamp_point_to_window(), ED_fileselect_window_params_get(), screen_global_statusbar_area_refresh(), screen_global_topbar_area_refresh(), blender::ed::asset::screenshot_preview_draw(), blender::ed::asset::screenshot_preview_modal(), blender::ed::asset::square_points_clamp_to_window(), ui_block_bounds_calc_centered(), ui_block_bounds_calc_popup(), ui_popup_block_clip(), ui_popup_block_position(), ui_popup_block_refresh(), ui_tooltip_create_with_data(), ui_update_window_matrix(), wm_draw_window(), wm_drop_update_active(), wm_event_cursor_other_windows(), wm_gesture_draw_cross(), wm_handler_fileselect_do(), wm_stereo3d_draw_sidebyside(), wm_stereo3d_draw_topbottom(), WM_window_pixels_read_from_frontbuffer(), WM_window_pixels_read_from_offscreen(), WM_window_pixels_read_sample_from_offscreen(), WM_window_rect_calc(), and wmWindowViewport_ex().
| int WM_window_native_pixel_x | ( | const wmWindow * | win | ) |
Support for native pixel size
Definition at line 2881 of file wm_window.cc.
References GHOST_GetNativePixelSize(), wmWindow::ghostwin, and wmWindow::sizex.
Referenced by area_azone_init(), blender::ed::asset::shelf::layout_width_units_clamped(), screen_draw_area_drag_tip(), ui_def_but_rna__menu(), ui_searchbox_region_layout_fn(), wm_block_splash_create(), and wm_stereo3d_mouse_offset_apply().
| int WM_window_native_pixel_y | ( | const wmWindow * | win | ) |
Definition at line 2887 of file wm_window.cc.
References GHOST_GetNativePixelSize(), wmWindow::ghostwin, and wmWindow::sizey.
Referenced by ui_def_but_rna__menu(), wm_drag_draw_tooltip(), wm_software_cursor_draw(), and wm_stereo3d_mouse_offset_apply().
| wmWindow * wm_window_new | ( | const Main * | bmain, |
| wmWindowManager * | wm, | ||
| wmWindow * | parent, | ||
| bool | dialog ) |
Don't change context itself.
Definition at line 313 of file wm_window.cc.
References BKE_workspace_instance_hook_create(), BLI_addtail(), find_free_winid(), MEM_callocN(), wmWindow::parent, wmWindow::runtime, wmWindow::stereo3d_format, wmWindowManager::windows, wmWindow::winid, and wmWindow::workspace_hook.
Referenced by wm_add_default(), wm_window_copy(), and WM_window_open().
| wmOperatorStatus wm_window_new_exec | ( | bContext * | C, |
| wmOperator * | op ) |
Definition at line 1235 of file wm_window.cc.
References BKE_report(), BKE_screen_find_big_area(), C, CTX_wm_screen(), CTX_wm_window(), OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_ERROR, wmWindow::sizex, wmWindow::sizey, SPACE_TYPE_ANY, ScrArea::spacetype, WIN_ALIGN_PARENT_CENTER, and WM_window_open().
Referenced by WM_OT_window_new().
| wmOperatorStatus wm_window_new_main_exec | ( | bContext * | C, |
| wmOperator * | op ) |
Definition at line 1264 of file wm_window.cc.
References BKE_report(), C, CTX_wm_window(), OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_ERROR, and wm_window_copy_test().
Referenced by WM_OT_window_new_main().
| wmWindow * WM_window_open | ( | bContext * | C, |
| const char * | title, | ||
| const rcti * | rect_unscaled, | ||
| int | space_type, | ||
| bool | toplevel, | ||
| bool | dialog, | ||
| bool | temp, | ||
| eWindowAlignment | alignment, | ||
| void(* | area_setup_fn )(bScreen *screen, ScrArea *area, void *user_data), | ||
| void * | area_setup_user_data ) |
Definition at line 1059 of file wm_window.cc.
References bScreen::areabase, BKE_workspace_active_set(), BKE_workspace_layout_screen_get(), BLI_assert, BLI_listbase_is_single(), BLI_rcti_size_x(), BLI_rcti_size_y(), ScrArea::butspacetype, C, CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_area_set(), CTX_wm_manager(), CTX_wm_window(), CTX_wm_window_set(), ED_area_newspace(), ED_screen_change(), ED_screen_refresh(), ED_screen_scene_change(), ED_workspace_layout_add(), ListBase::first, GHOST_GetNativePixelSize(), wmWindow::ghostwin, LISTBASE_FOREACH, ViewLayer::name, wmWindow::posx, wmWindow::posy, wmWindow::sizex, wmWindow::sizey, SPACE_EMPTY, ScrArea::spacetype, wmWindow::stereo3d_format, STRNCPY(), bScreen::temp, wmWindow::view_layer_name, WIN_ALIGN_LOCATION_CENTER, WIN_ALIGN_PARENT_CENTER, wmWindowManager::windows, WM_check(), wm_window_check_size(), wm_window_close(), WM_window_get_active_scene(), WM_window_get_active_screen(), WM_window_get_active_workspace(), wm_window_ghostwindow_ensure(), wm_window_new(), wm_window_raise(), WM_window_set_active_layout(), wm_window_set_size(), WM_window_title(), wm_window_update_size_position(), wmWindow::workspace_hook, x, rcti::xmax, rcti::xmin, y, rcti::ymax, and rcti::ymin.
Referenced by area_dupli_open(), drivers_editor_show_exec(), ED_screen_temp_space_open(), info_log_show_exec(), blender::ed::outliner::outliner_orphans_manage_invoke(), render_view_open(), userpref_show_exec(), and wm_window_new_exec().
| void wm_window_raise | ( | wmWindow * | win | ) |
Definition at line 2700 of file wm_window.cc.
References GHOST_GetWindowState(), GHOST_kWindowOrderTop, GHOST_kWindowStateMinimized, GHOST_kWindowStateNormal, GHOST_SetWindowOrder(), GHOST_SetWindowState(), and wmWindow::ghostwin.
Referenced by render_view_open(), render_view_show_invoke(), wm_quit_with_optional_confirmation_prompt(), and WM_window_open().
Get boundaries usable by all window contents, including global areas.
Definition at line 2909 of file wm_window.cc.
References BLI_rcti_init(), and WM_window_native_pixel_size().
Referenced by area_join_update_data(), area_move_set_limits(), area_split(), area_split_invoke(), screen_area_edge_from_cursor(), screen_geom_find_active_scredge(), screen_geom_vertices_scale(), WM_window_find_under_cursor(), and WM_window_screen_rect_calc().
| void wm_window_reset_drawable | ( | ) |
Reset active the current window gpu drawing context.
Definition at line 1405 of file wm_window.cc.
References BLI_assert, BLI_thread_is_main(), G_MAIN, wmWindow::ghostwin, GPU_framebuffer_active_get(), GPU_framebuffer_back_get(), wmWindowManager::windrawable, wm_window_clear_drawable(), and wm_window_set_drawable().
Referenced by ContextShared::disable(), DRW_gpu_context_activate(), DRW_gpu_context_create(), blender::eevee::LightBake::LightBake(), RE_system_gpu_context_ensure(), RE_system_gpu_context_free(), and wm_xr_session_gpu_binding_context_destroy().
Get boundaries usable by screen-layouts, excluding global areas.
Definition at line 2914 of file wm_window.cc.
References ScrAreaMap::areabase, BLI_assert, BLI_assert_unreachable, BLI_rcti_is_valid(), ED_area_global_size_y(), GLOBAL_AREA_ALIGN_BOTTOM, GLOBAL_AREA_ALIGN_TOP, GLOBAL_AREA_IS_HIDDEN, wmWindow::global_areas, LISTBASE_FOREACH, WM_window_rect_calc(), rcti::ymax, and rcti::ymin.
Referenced by actionzone_modal(), ED_area_init(), ED_area_update_region_sizes(), ED_workspace_layout_add(), screen_draw_move_highlight(), screen_geom_find_active_scredge(), screen_geom_vertices_scale(), and uiTemplateInputStatusBorder().
| void WM_window_set_active_layout | ( | wmWindow * | win, |
| WorkSpace * | workspace, | ||
| WorkSpaceLayout * | layout ) |
Definition at line 3130 of file wm_window.cc.
References BKE_workspace_active_layout_set(), wmWindow::winid, and wmWindow::workspace_hook.
Referenced by wm_file_read_setup_wm_keep_old(), and WM_window_open().
Definition at line 3022 of file wm_window.cc.
References C, CTX_wm_manager(), ED_scene_change_update(), ED_screen_scene_change(), LISTBASE_FOREACH, NC_WINDOW, wmWindow::parent, wmWindow::scene, wmWindowManager::windows, WM_event_add_notifier(), and WM_window_get_active_view_layer().
Referenced by arg_handle_scene_set(), ED_scene_add(), ED_scene_delete(), blender::ed::outliner::outliner_do_object_operation_ex(), blender::ed::outliner::outliner_object_operation_exec(), blender::ed::outliner::tree_element_object_activate(), blender::ed::outliner::tree_element_world_activate(), and workspace_scene_pinning_update().
Definition at line 3142 of file wm_window.cc.
References BKE_workspace_active_screen_set(), wmWindow::winid, and wmWindow::workspace_hook.
Referenced by bpy_rna_context_temp_set_screen_for_window(), ED_screen_change(), and wm_file_read_setup_wm_keep_old().
Definition at line 3071 of file wm_window.cc.
References BKE_view_layer_find(), BKE_workspace_active_screen_get(), BLI_assert, ED_render_view_layer_changed(), ListBase::first, G_MAIN, LISTBASE_FOREACH, ViewLayer::name, wmWindow::parent, STRNCPY(), wmWindowManager::windows, Main::wm, and WM_window_get_active_scene().
Referenced by blender::ed::outliner::tree_element_viewlayer_activate(), view_layer_add_exec(), and WM_window_get_active_view_layer().
Definition at line 3105 of file wm_window.cc.
References C, CTX_wm_manager(), ED_workspace_change(), LISTBASE_FOREACH, wmWindow::parent, bScreen::temp, wmWindowManager::windows, and WM_window_get_active_screen().
Referenced by bpy_rna_context_temp_set_screen_for_window(), and wm_event_do_notifiers().
| void WM_window_set_dpi | ( | const wmWindow * | win | ) |
Definition at line 575 of file wm_window.cc.
References CLAMP, GHOST_GetDPIHint(), GHOST_GetNativePixelSize(), wmWindow::ghostwin, max_ff(), max_ii(), U, VIRTUAL_PIXEL_DOUBLE, and VIRTUAL_PIXEL_NATIVE.
Referenced by ED_fileselect_window_params_get(), ghost_event_proc(), screen_refresh_if_needed(), wm_window_ghostwindow_add(), wm_window_ghostwindow_ensure(), and wm_window_make_drawable().
|
static |
Definition at line 1366 of file wm_window.cc.
References activate(), BLI_assert, ELEM, GHOST_ActivateWindowDrawingContext(), wmWindow::ghostwin, GPU_context_active_set(), wmWindow::gpuctx, and wmWindowManager::windrawable.
Referenced by wm_window_ghostwindow_add(), wm_window_make_drawable(), and wm_window_reset_drawable().
| void wm_window_set_size | ( | wmWindow * | win, |
| int | width, | ||
| int | height ) |
Definition at line 2684 of file wm_window.cc.
References GHOST_SetClientSize(), and wmWindow::ghostwin.
Referenced by WM_window_open().
| void wm_window_set_swap_interval | ( | wmWindow * | win, |
| int | interval ) |
Definition at line 2722 of file wm_window.cc.
References GHOST_SetSwapInterval(), and wmWindow::ghostwin.
| void wm_window_swap_buffers | ( | wmWindow * | win | ) |
Push rendered buffer to the screen.
Definition at line 2717 of file wm_window.cc.
References GHOST_SwapWindowBuffers(), and wmWindow::ghostwin.
Referenced by ghost_event_proc(), wm_draw_update(), and wm_window_ghostwindow_add().
| void wm_window_timers_delete_removed | ( | wmWindowManager * | wm | ) |
Effectively remove timers from the list and delete them. Calling this should only be done by internal WM management code, from specific, safe places.
Definition at line 2374 of file wm_window.cc.
References BLI_remlink(), LISTBASE_FOREACH_MUTABLE, MEM_freeN(), wmWindowManager::timers, and WM_TIMER_TAGGED_FOR_REMOVAL.
Referenced by wm_window_free(), and wm_window_timers_process().
|
static |
This timer system only gives maximum 1 timer event per redraw cycle, to prevent queues to get overloaded.
| sleep_us_p | The number of microseconds to sleep which may be reduced by this function to account for timers that would run during the anticipated sleep period. |
Definition at line 1854 of file wm_window.cc.
References BLI_time_now_seconds(), C, ceil, CTX_data_main(), CTX_wm_manager(), EVENT_NONE, EVT_DATA_TIMER, KM_NOTHING, LISTBASE_FOREACH_MUTABLE, POINTER_AS_UINT, TIMERAUTOSAVE, TIMERJOBS, TIMERNOTIFIER, wmWindowManager::timers, wm_autosave_timer(), WM_event_add(), wm_event_init_from_window(), wm_jobs_timer(), WM_main_add_notifier(), WM_TIMER_TAGGED_FOR_REMOVAL, and wm_window_timers_delete_removed().
Referenced by ghost_event_proc(), and wm_window_events_process().
| void WM_window_title | ( | wmWindowManager * | wm, |
| wmWindow * | win, | ||
| const char * | title = nullptr ) |
Give a title to a window. With "Title" unspecified or nullptr, it is generated automatically from window settings and areas. Only use custom title when really needed.
Definition at line 489 of file wm_window.cc.
References bScreen::areabase, BKE_blender_version_string(), BKE_main_blendfile_path_from_global(), BLI_listbase_is_single(), BLI_path_basename(), BLI_path_extension_or_end(), BLI_str_utf8_invalid_substitute_as_needed(), ED_area_name(), FILE_MAX, wmWindowManager::file_saved, ListBase::first, G_MAIN, GHOST_kSuccess, GHOST_SetPath(), GHOST_SetTitle(), GHOST_SetWindowModifiedState(), wmWindow::ghostwin, IFACE_, OS_MAC, OS_WINDOWS, wmWindow::parent, SPACE_EMPTY, ScrArea::spacetype, WM_window_get_active_screen(), and WM_window_is_temp_screen().
Referenced by area_join_apply(), area_join_modal(), area_split_apply(), ED_area_newspace(), wm_event_do_notifiers(), wm_window_ghostwindow_ensure(), and WM_window_open().
|
static |
Definition at line 796 of file wm_window.cc.
References copy_v2_v2_int(), wmWindow::eventstate, wm_cursor_position_get(), wmEvent::xy, and xy.
Referenced by ghost_event_proc(), and wm_window_ensure_eventstate().
|
static |
When windows are activated, simulate modifier press/release to match the current state of held modifier keys, see #40317.
NOTE(@ideasman42): There is a bug in Windows11 where Alt-Tab sends an Alt-press event to the window after it's deactivated, this means window de-activation is not a fool-proof way of ensuring modifier keys are cleared for inactive windows. So any event added to an inactive window must run wm_window_update_eventstate_modifiers first to ensure no modifier keys are held. See: #105277.
Definition at line 704 of file wm_window.cc.
References ARRAY_SIZE, wmWindow::eventstate, flag, g_modifier_table, GHOST_kEventKeyDown, GHOST_kEventKeyUp, GHOST_kKeyUnknown, i, GHOST_TEventKeyData::is_repeat, GHOST_TEventKeyData::key, MOD_SIDE_LEFT, MOD_SIDE_RIGHT, wmEvent::modifier, GHOST_TEventKeyData::utf8_buf, wm_event_add_ghostevent(), and wm_ghost_modifier_query().
Referenced by ghost_event_proc().
|
static |
When the window is de-activated, release all held modifiers.
Needed so events generated over unfocused (non-active) windows don't have modifiers held. Since modifier press/release events aren't send to unfocused windows it's best to assume modifiers are not pressed. This means when modifiers are held, events will incorrectly reported as not being held. Since this is standard behavior for Linux/MS-Window, opt to use this.
NOTE(@ideasman42): Events generated for non-active windows are rare, this happens when using the mouse-wheel over an unfocused window, see: #103722.
Definition at line 759 of file wm_window.cc.
References ARRAY_SIZE, wmWindow::eventstate, flag, g_modifier_table, GHOST_kEventKeyUp, GHOST_kKeyUnknown, i, GHOST_TEventKeyData::is_repeat, GHOST_TEventKeyData::key, MOD_SIDE_LEFT, MOD_SIDE_RIGHT, wmEvent::modifier, GHOST_TEventKeyData::utf8_buf, wm_event_add_ghostevent(), and wm_ghost_modifier_query().
Referenced by ghost_event_proc().
|
static |
Definition at line 1026 of file wm_window.cc.
References b, GHOST_DisposeRectangle(), GHOST_GetClientBounds(), GHOST_GetRectangle(), wmWindow::ghostwin, l, wmWindow::posx, wmWindow::posy, wmWindow::sizex, wmWindow::sizey, WM_capabilities_flag(), WM_CAPABILITY_WINDOW_POSITION, and wm_get_desktopsize().
Referenced by ghost_event_proc(), wm_window_ghostwindow_add(), and WM_window_open().
Some editor data may need to be synced with scene data (3D View camera and layers). This function ensures data is synced for editors in visible work-spaces and their visible layouts.
Definition at line 2976 of file wm_window.cc.
References ED_workspace_scene_data_sync(), LISTBASE_FOREACH, and WM_window_get_active_scene().
Referenced by ed_marker_camera_bind_exec(), and blender::ed::outliner::tree_element_camera_activate().
| Scene * WM_windows_scene_get_from_screen | ( | const wmWindowManager * | wm, |
| const bScreen * | screen ) |
Definition at line 2985 of file wm_window.cc.
References LISTBASE_FOREACH, wmWindowManager::windows, WM_window_get_active_scene(), and WM_window_get_active_screen().
Referenced by wm_xr_session_update_screen().
| ViewLayer * WM_windows_view_layer_get_from_screen | ( | const wmWindowManager * | wm, |
| const bScreen * | screen ) |
Definition at line 2996 of file wm_window.cc.
References LISTBASE_FOREACH, wmWindowManager::windows, WM_window_get_active_screen(), and WM_window_get_active_view_layer().
| WorkSpace * WM_windows_workspace_get_from_screen | ( | const wmWindowManager * | wm, |
| const bScreen * | screen ) |
Definition at line 3007 of file wm_window.cc.
References LISTBASE_FOREACH, wmWindowManager::windows, WM_window_get_active_screen(), and WM_window_get_active_workspace().
| char* buffers[2] |
Definition at line 2450 of file wm_window.cc.
Referenced by blender::gpu::MTLBatch::bind(), blender::gpu::FrameBuffer::clear(), blender::gpu::GLFrameBuffer::clear(), blender::gpu::MTLFrameBuffer::clear(), blender::gpu::VKFrameBuffer::clear(), blender::gpu::VKTexture::clear_depth_stencil(), blender::opensubdiv::discard_list(), blender::draw::DRW_mesh_batch_cache_create_requested(), get_layer_view_name(), GPU_framebuffer_clear(), blender::ed::sculpt_paint::hide::grow_shrink_visibility_grid(), blender::ed::sculpt_paint::hide::grow_shrink_visibility_mesh(), blender::draw::mesh_buffer_cache_create_requested(), blender::draw::mesh_buffer_cache_create_requested_subdiv(), blender::io::obj::obj_parallel_chunked_output(), blender::ed::sculpt_paint::hide::propagate_vertex_visibility(), pygpu_framebuffer_clear(), TileManager::read_full_buffer_from_disk(), blender::fn::multi_function::ValueAllocator::release_value(), PathTrace::tile_buffer_write_to_disk(), blender::gpu::to_vk_image_aspect_flag_bits(), PathTrace::update_allocated_work_buffer_params(), and blender::io::obj::write_mesh_objects().
| uint8_t flag |
Definition at line 139 of file wm_window.cc.
Referenced by achannel_setting_slider_cb(), achannel_setting_slider_nla_curve_cb(), achannel_setting_slider_shapekey_cb(), blender::bke::action_copy_data(), blender::bke::action_foreach_id(), add_default_keyingset_exec(), add_driver_with_target(), blender::ed::space_node::add_existing_group_input_fn(), blender::bke::node_interface::add_interface_socket_from_node(), add_keyingset_button_exec(), blender::ed::space_node::add_node_group_interface_from_declaration_recursive(), add_node_tag(), add_socket_tag(), blender::deg::DepsgraphRelationBuilder::add_special_eval_flag(), add_tree_tag(), adduplicateflagNurb(), ANIM_add_driver(), ANIM_add_driver_with_target(), ANIM_channel_setting_get(), ANIM_channel_setting_set(), ANIM_draw_cfra(), ANIM_unit_mapping_get_factor(), animsys_evaluate_action_group(), blender::draw::overlay::append_line_loop(), armature_copy_data(), armature_dissolve_selected_exec(), armature_select_mirror_exec(), armature_select_mirrored_ex(), blender::animrig::autokeyframe_object(), blender::animrig::autokeyframe_pose_channel(), blender::animrig::autokeyframe_property(), bevel_extend_edge_data_ex(), blender::ed::transform::bezt_select_to_transform_triple_flag(), blender::draw::beztriple_vflag_get(), blender::gpu::GLBatch::bind(), BKE_animdata_copy(), BKE_animdata_copy_id(), BKE_animdata_copy_in_lib(), BKE_armature_bone_flag_test_recursive(), BKE_blendfile_link_append_context_flag_set(), BKE_blendfile_link_append_context_item_foreach(), BKE_bmbvh_new(), BKE_bmbvh_new(), BKE_bmbvh_new_ex(), BKE_bmbvh_new_ex(), BKE_bmbvh_new_from_editmesh(), BKE_bpath_foreach_path_id(), BKE_bpath_list_backup(), BKE_bpath_list_restore(), BKE_bpath_missing_files_find(), BKE_bpath_relative_rebase(), BKE_brush_weight_get(), BKE_camera_background_image_copy(), BKE_camera_background_image_copy(), BKE_constraint_duplicate_ex(), BKE_constraints_copy_ex(), BKE_constraints_copy_ex(), BKE_constraints_id_loop(), BKE_copy_time_markers(), BKE_copybuffer_paste(), BKE_copybuffer_read(), BKE_curve_deform_coords(), BKE_curve_deform_coords_with_editmesh(), BKE_curve_nurbs_vert_coords_apply(), BKE_curvemap_remove(), BKE_curvemapping_changed(), BKE_curveprofile_copy(), BKE_curveprofile_remove_by_flag(), BKE_fluid_modifier_copy(), BKE_fluid_modifier_copy(), BKE_freestyle_config_copy(), BKE_freestyle_config_copy(), BKE_gpencil_modifier_free_ex(), BKE_id_copy_ex(), BKE_id_copy_in_lib(), BKE_keyingset_add(), BKE_keyingset_add_path(), BKE_lattice_bitmap_from_flag(), BKE_lattice_deform_coords(), BKE_lattice_deform_coords_with_editmesh(), BKE_lattice_deform_coords_with_mesh(), BKE_lattice_vert_coords_apply(), BKE_layer_collection_set_flag(), BKE_lib_query_foreachid_process(), BKE_libblock_alloc(), BKE_libblock_alloc_in_lib(), BKE_libblock_copy_in_lib(), BKE_library_foreach_ID_embedded(), BKE_library_foreach_ID_link(), BKE_library_foreach_subdata_id(), BKE_linestyle_color_modifier_copy(), BKE_linestyle_thickness_modifier_copy(), BKE_main_id_flag_all(), BKE_main_id_flag_listbase(), BKE_main_relations_create(), BKE_mball_is_any_selected_multi(), BKE_mball_minmax_ex(), BKE_mesh_foreach_mapped_face_center(), BKE_mesh_foreach_mapped_loop(), BKE_mesh_foreach_mapped_subdiv_face_center(), BKE_mesh_foreach_mapped_vert(), BKE_modifier_copy_ex(), BKE_modifier_copydata_ex(), BKE_modifier_free_ex(), BKE_movieclip_get_ibuf_flag(), BKE_movieclip_get_ibuf_flag(), BKE_nla_tracks_copy(), BKE_nla_tracks_copy_from_adt(), BKE_nlastrip_copy(), BKE_nlatrack_copy(), BKE_nurb_bezt_handle_test(), BKE_nurb_bezt_handle_test_calc_flag(), BKE_nurb_handles_autocalc(), BKE_nurb_valid_message(), BKE_nurbList_flag_set(), BKE_nurbList_flag_set_from_flag(), BKE_nurbList_handles_autocalc(), BKE_nurbList_handles_recalculate(), BKE_nurbList_handles_set(), BKE_object_copy_particlesystem(), BKE_object_copy_particlesystems(), BKE_object_copy_softbody(), BKE_object_flag_test_recursive(), BKE_object_free_modifiers(), BKE_object_free_shaderfx(), BKE_object_is_deform_modified(), BKE_object_is_modified(), BKE_paint_copy(), BKE_paint_reset_overlay_invalid(), BKE_pose_channels_remove(), BKE_pose_copy_data_ex(), BKE_ptcache_copy_list(), BKE_ptcache_copy_list(), BKE_reports_init(), BKE_rigidbody_object_copy(), BKE_rigidbody_object_copy(), BKE_rigidbody_world_copy(), BKE_scene_orientation_get_index_from_flag(), BKE_scene_orientation_slot_get_from_flag(), BKE_shaderfx_copydata_ex(), BKE_shaderfx_copydata_generic(), BKE_shaderfx_free_ex(), BKE_studiolight_ensure_flag(), BKE_studiolight_find(), BKE_studiolight_find_default(), BKE_studiolight_findindex(), BKE_texture_pointdensity_copy(), BKE_toolsettings_copy(), BKE_tracking_copy(), BKE_tracking_copy(), BKE_tracking_count_selected_tracks_in_list(), BKE_tracking_track_flag_clear(), BKE_tracking_track_flag_set(), BKE_view_layer_copy_data(), BKE_viewer_path_elem_equal(), BKE_viewer_path_equal(), BLI_bvhtree_find_nearest_ex(), BLI_bvhtree_overlap_ex(), BLI_bvhtree_ray_cast_all_ex(), BLI_bvhtree_ray_cast_ex(), BLI_ghash_flag_clear(), BLI_ghash_flag_set(), BLI_gset_flag_clear(), BLI_gset_flag_set(), BLI_mempool_create(), BLI_scanfill_calc(), BLI_scanfill_calc_ex(), blo_do_versions_300(), blo_do_versions_400(), blo_do_versions_420(), BLO_expand_main(), BLO_library_link_params_init(), BLO_library_link_params_init_with_context(), bm_edge_calc_rotate_beauty(), bm_edge_update_beauty_cost(), bm_edge_update_beauty_cost_single(), BM_mesh_beautify_fill(), bm_mesh_edge_collapse_flagged(), BM_mesh_intersect(), BM_verts_calc_rotate_beauty(), bmesh_edit_end(), bmo_beautify_fill_exec(), bmo_offset_edgeloops_exec(), BMO_op_callf(), BMO_op_init(), BMO_op_initf(), BMO_op_vinitf(), BMW_init(), bone_autoside_name(), box_clip_bounds_m4(), box_select_cb(), bpath_absolute_relative_convert(), blender::draw::bpoint_vflag_get(), bpy_app_debug_get(), bpy_app_debug_set(), bpy_app_global_flag_get(), bpy_app_global_flag_set(), bpy_blend_paths(), bpy_bm_elem_hflag_get(), bpy_bm_elem_hflag_set(), BPy_BMesh_CreatePyObject(), bpy_bmesh_select_mode_set(), bpy_bmlayeraccess_collection_get(), bpy_bmvertskin_flag_get(), bpy_bmvertskin_flag_set(), bpy_class_call(), bpy_class_validate_recursive(), bpy_prop_assign_flag(), bpy_slot_from_py(), bpy_wm_capabilities(), brush_comb(), brush_copy_data(), brush_defaults(), brush_smooth_do(), bssrdf_setup(), blender::ed::geometry::build_catalog_tree(), build_edge_mats(), build_emats_stack(), buttons_context_compute(), buttons_context_path(), buttons_shading_new_context(), bvhtree_ray_cast_data_precalc(), calc_edge_subdivisions(), calc_lat_fudu(), calcknots(), camera_copy_data(), camera_foreach_id(), blender::ed::geometry::catalog_assets_draw_unassigned(), blender::ed::sculpt_paint::dyntopo::check_attribute_warning(), check_bit_flag(), check_edge_data_seam_sharp_edges(), blender::ed::object::clear_images_poly(), blender::ed::object::clear_single_image(), HullDesc::ClearHullFlag(), collection_copy_data(), blender::ed::outliner::collection_flag_exec(), blender::ed::outliner::collection_flag_poll(), blender::ed::outliner::collection_view_layer_exec(), blender::ed::outliner::collections_view_layer_poll(), blender::draw::compute_coarse_face_flag_bm(), con_invoke_id_looper(), constraint_copy_data_ex(), constraint_target_to_mat4(), convert_channels(), copy_bit_flag(), copy_bonechildren(), blender::copy_data(), blender::copy_data(), copy_data(), copy_data(), copy_data(), copy_data(), copy_data(), copy_data(), copy_data(), copy_data(), copy_data(), copy_data(), copy_data(), copy_data(), copy_data(), copy_data(), copy_data(), copy_data(), copy_data(), copy_data(), copy_data(), copy_data(), copy_lineset(), copy_object_pose(), blender::seq::copy_text_effect(), CreateSegment(), cuboid_do(), curve_copy_data(), curve_deform_coords_impl(), curve_foreach_id(), curve_pick_vert__do_closest(), curvemap_make_table(), customData_add_layer__internal(), CustomData_set_layer_flag(), DEG_add_special_eval_flag(), blender::deg::deg_graph_build_finalize(), DEG_update_tag_as_string(), ShaderManager::device_free(), ShaderManager::device_update_common(), ObjectManager::device_update_object_transform(), distribute_grid(), do_curve_key(), do_latt_key(), do_mesh_key(), blender::ed::outliner::do_outliner_drivers_editop(), blender::ed::outliner::do_outliner_keyingset_editop(), draw_marker(), draw_setting_widget(), blender::draw::draw_subdiv_cache_extra_coarse_face_data_bm(), blender::draw::draw_subdiv_cache_extra_coarse_face_data_mapped(), blender::draw::draw_subdiv_cache_extra_coarse_face_data_mesh(), driverdropper_sample(), DRW_text_cache_add(), dynamicPaint_Modifier_copy(), dynamicPaint_Modifier_copy(), blender::ed::sculpt_paint::dyntopo::dyntopo_warning_popup(), ED_armature_ebone_select_set(), ED_armature_ebone_selectflag_disable(), ED_armature_ebone_selectflag_enable(), ED_armature_ebone_selectflag_set(), ed_default_handlers(), ed_editnurb_extrude_flag(), ed_editnurb_translate_flag(), ED_gizmotypes_snap_3d_flag_set(), ED_lattice_flags_set(), ED_markers_draw(), ED_view3d_depth_override(), ed_view3d_project__internal(), ED_view3d_project_float_ex(), ED_view3d_project_float_global(), ED_view3d_project_float_object(), ED_view3d_project_int_ex(), ED_view3d_project_int_global(), ED_view3d_project_int_object(), ED_view3d_project_short_ex(), ED_view3d_project_short_global(), ED_view3d_project_short_object(), ED_wpaint_ensure_data(), edbm_dissolve_prop__use_angle_threshold(), edbm_dissolve_prop__use_verts(), blender::ed::object::editmode_enter(), blender::ed::object::editmode_enter_ex(), blender::ed::object::editmode_exit(), blender::ed::object::editmode_exit_ex(), blender::ed::object::editmode_exit_multi(), blender::ed::object::editmode_exit_multi_ex(), event_ids_from_flag(), execute_posetree(), blender::draw::extract_loose_positions_subdiv(), blender::draw::extract_vertex_flags(), file_browse_operator_relative_paths_supported(), file_select_deselect_all(), filelist_entries_select_index_range_set(), filelist_entry_parent_select_set(), filelist_entry_select_index_set(), filelist_entry_select_set(), filelist_setdir(), film_write_background(), film_write_data_passes(), film_write_data_passes_background(), film_write_direct_light(), film_write_emission_or_background_pass(), film_write_surface_emission(), film_write_volume_emission(), blender::geometry::fit_poly_to_bezier_curves(), for_mouse_hit_keys(), fsmenu_insert_entry(), blender::animrig::get_autokey_flags(), blender::ed::greasepencil::get_flag(), get_imbuf_cache(), blender::animrig::get_keyframing_flags(), blender::io::obj::OBJCurve::get_knots_u(), get_panel_expand_flag(), get_postprocessed_cached_frame(), get_timecode(), blender::ed::outliner::TreeElementOverridesBase::get_warning(), blender::ed::transform::getTransformOrientation_ex(), ghash_new(), GPU_material_flag_get(), GPU_material_flag_set(), guiding_record_background(), guiding_record_bssrdf_bounce(), guiding_record_bssrdf_segment(), guiding_record_bssrdf_weight(), guiding_record_continuation_probability(), guiding_record_light_surface_segment(), guiding_record_surface_bounce(), guiding_record_surface_emission(), guiding_record_surface_segment(), guiding_record_volume_bounce(), guiding_record_volume_emission(), guiding_record_volume_segment(), guiding_record_volume_transmission(), blender::ed::asset::has_external_files(), has_imbuf_cache(), HullDesc::HasHullFlag(), HullDesc::HullDesc(), id_free(), id_search_allows_id(), id_search_cb(), id_search_cb_tagged(), IDP_AssignID(), IDP_CopyArray(), IDP_CopyGroup(), IDP_CopyID(), IDP_CopyIDPArray(), IDP_CopyProperty_ex(), IDP_CopyString(), IDP_InsertToGroup(), IDP_MergeGroup_ex(), IDP_ReplaceInGroup_ex(), IK_CreateSegment(), image_copy_data(), image_foreach_path(), imb_load_openexr(), insert_action_keys(), blender::animrig::insert_bezt_fcurve(), insert_fcurve_key(), insert_graph_keys(), insert_key_button_exec(), blender::animrig::insert_keyframe_direct(), blender::animrig::insert_keyframe_fcurve_value(), blender::animrig::insert_keyframe_value(), blender::animrig::insert_vert_fcurve(), Freestyle::BlenderFileLoader::insertShapeNode(), integrate_background(), integrate_distant_lights(), integrate_intersect_shadow_visibility(), integrate_light(), integrate_surface(), integrate_surface_bsdf_bssrdf_bounce(), integrate_surface_direct_light(), integrate_surface_emission(), integrate_surface_holdout(), integrator_eval_background_shader(), integrator_intersect_closest(), integrator_intersect_terminate(), integrator_intersect_volume_stack(), integrator_shade_background(), integrator_shade_surface_next_kernel(), integrator_volume_stack_update_for_subsurface(), ipo_foreach_id(), is_disabled(), is_disabled(), is_disabled(), blender::animrig::is_keying_flag(), is_track_clean(), isNurbselU(), isNurbselV(), blender::bke::node_interface::item_types::item_copy(), kernel_shadow_catcher_is_path_split_bounce(), kernel_shadow_catcher_path_can_split(), blender::bke::knots_mode_from_legacy(), lattice_copy_data(), lattice_deform_coords_impl(), lattice_foreach_id(), layer_collection_flag_recursive_set(), layer_collection_flag_set_recursive(), layer_collection_flag_unset_recursive(), lib_link_all(), library_foreach_ID_link(), library_link_end(), light_copy_data(), light_foreach_id(), lineart_triangle_set_cull_flag(), linestyle_copy_data(), link_named_part(), load_image_single(), loop_find_region(), loose_data_instantiate_object_base_instance_init(), blender::bke::node_interface::make_panel(), blender::ed::object::make_single_user_exec(), blender::bke::node_interface::make_socket(), marker_get_icon_id(), material_copy_data(), material_foreach_id(), mathutils_array_parse(), mesh_copy_data(), mesh_foreach_id(), blender::ed::transform::mesh_partial_ensure(), metaball_foreach_id(), blender::gpu::shader::ShaderCreateInfo::metal_backend_only(), mnee_path_contribution(), blender::ed::object::modifier_skin_armature_create(), movie_clip_copy_data(), movieclip_get_postprocessed_ibuf(), movieclip_load_movie_file(), movieclip_load_sequence_file(), blender::bke::node_copy(), blender::bke::node_copy_with_mapping(), blender::nodes::node_shader_bsdf_principled_cc::node_shader_gpu_bsdf_principled(), blender::nodes::node_shader_eevee_specular_cc::node_shader_gpu_eevee_specular(), blender::bke::node_socket_copy(), blender::bke::node_tree_add_tree_do(), blender::bke::node_tree_copy_tree_ex(), blender::bke::node_tree_node_flag_set(), normalization_factor_get(), blender::bke::ntree_copy_data(), nurb_check_valid(), object_bases_iterator_begin(), object_bases_iterator_is_valid(), object_bases_iterator_next(), object_copy_data(), object_foreach_id(), object_ray_visibility(), blender::ed::sculpt_paint::object_sculpt_mode_enter(), objects_iterator_begin(), objects_iterator_next(), uiLayout::op(), uiLayout::op(), orthogonalize_m3_zero_axes_impl(), blender::ed::outliner::outliner_dropzone_element(), blender::ed::outliner::outliner_find_element_with_flag(), blender::ed::outliner::outliner_flag_flip(), blender::ed::outliner::outliner_flag_flip(), blender::ed::outliner::outliner_flag_is_any_test(), blender::ed::outliner::outliner_flag_set(), blender::ed::outliner::outliner_flag_set(), blender::ed::outliner::outliner_id_paste_exec(), blender::ed::outliner::outliner_item_drag_drop_invoke(), blender::fn::multi_function::SignatureBuilder::output(), blender::bke::node_interface::item_types::panel_init(), panel_set_expand_from_list_data_recursive(), panel_set_flag_recursive(), panel_set_runtime_flag_recursive(), particle_settings_foreach_id(), paste_material_exec(), path_state_init_integrator(), path_state_next(), path_state_ray_visibility(), PlaneTest(), point_init(), postprocess_frame(), prefetch_task_func(), project_bucket_clip_face(), project_paint_face_init(), blender::ed::transform::projectFloatViewEx(), blender::ed::transform::projectIntViewEx(), uiLayout::prop(), uiLayout::prop(), put_imbuf_cache(), put_postprocessed_frame_to_cache(), py_to_array(), PyC_FlagSet_FromBitfield(), PyC_FlagSet_ToBitfield(), pyrna_enum_bitfield_from_set(), pyrna_math_object_from_array(), pyrna_param_to_py(), pyrna_py_to_prop(), pyrna_subtype_set_rna(), rendersize_to_proxy(), blender::ed::outliner::restrictbutton_recursive_bone(), blender::ed::outliner::restrictbutton_recursive_ebone(), rigidbody_copy_object(), rna_def_fileselect_idfilter(), RNA_def_function_flag(), rna_def_function_funcs(), RNA_def_property_clear_flag(), RNA_def_property_flag(), RNA_def_property_override_clear_flag(), RNA_def_property_override_flag(), RNA_def_struct_clear_flag(), RNA_def_struct_flag(), rna_def_struct_function_prototype_cpp(), rna_function_register_arg_count(), rna_generate_static_parameter_prototypes(), rna_generic_op_invoke(), RNA_pointer_as_string_keywords_ex(), RNA_property_collection_clear(), RNA_property_collection_move(), RNA_property_collection_remove(), rna_property_editable_do(), RNA_property_editable_flag(), RNA_property_is_unlink(), rna_property_sync_flag(), RNA_struct_override_apply(), rotateflagNurb(), blender::ed::geometry::run_node_ui_poll(), scanfill(), scene_copy_data(), scene_foreach_id(), screen_foreach_id(), blender::ed::sculpt_paint::dyntopo::sculpt_dynamic_topology_toggle_invoke(), sel_to_copy_ints(), select_beztriple(), select_bpoint(), select_bpoints(), select_less_keys(), select_more_keys(), select_random_exec(), selectend_nurb(), blender::seq::seq_render_image_strip_view(), blender::seq::seqbase_dupli_recursive(), blender::seq::seqbase_duplicate_recursive(), blender::ed::transform::SeqToTransData(), blender::ed::transform::SeqToTransData_build(), blender::ed::transform::SeqTransCount(), blender::ed::vse::sequencer_generic_invoke_xy__internal(), blender::ed::vse::sequencer_generic_props__internal(), set_element_flag(), blender::ed::greasepencil::set_flag(), blender::io::usd::USDPrimReader::set_is_in_instancer_proto(), blender::io::usd::USDXformReader::set_use_parent_xform(), HullDesc::SetHullFlag(), blender::draw::overlay::ShapeCache::ShapeCache(), shapekey_foreach_id(), blender::ed::object::single_mat_users(), blender::ed::object::single_obdata_users(), blender::ed::object::single_object_action_users(), blender::ed::object::single_object_users(), blender::ed::object::single_object_users_collection(), blender::ed::object::single_objectdata_action_users(), blender::fn::multi_function::SignatureBuilder::single_output(), blender::fn::multi_function::SignatureBuilder::single_output(), smoothModifier_do(), blender::bke::node_interface::socket_types::socket_data_copy(), blender::bke::node_interface::socket_types::socket_data_copy_ptr(), sort_bmelem_flag(), sound_foreach_id(), sphere_do(), SplitTest(), blender::seq::strip_duplicate(), strip_foreach_member_id_cb(), studiolight_add_file(), studiolight_add_files_from_datafolder(), studiolight_create(), KDL::svd_eigen_HH(), GeometryManager::tag_update(), Integrator::tag_update(), LightManager::tag_update(), ObjectManager::tag_update(), template_ID(), template_ID_tabs(), test_float_state(), test_vec2f_state(), Freestyle::testEdgeMark(), texture_copy_data(), texture_foreach_id(), blender::TimeMapping::TimeMapping(), tracking_object_copy(), tracking_objects_copy(), tracking_plane_tracks_copy(), tracking_tracks_copy(), blender::ed::transform::transform_convert_mesh_mirrordata_calc(), blender::ed::outliner::tree_element_to_path(), triangulate_mesh(), UI_block_flag_disable(), UI_block_flag_enable(), ui_block_new_button_group(), ui_but_anim_decorate_update_from_flag(), ui_but_context_poll_operator_ex(), UI_but_dragflag_disable(), UI_but_dragflag_enable(), UI_but_drawflag_disable(), UI_but_drawflag_enable(), UI_but_flag2_enable(), UI_but_flag_disable(), UI_but_flag_enable(), UI_but_flag_is_set(), ui_but_string_get_ex(), ui_def_but_icon(), ui_draw_but_CURVE(), ui_draw_but_CURVEPROFILE(), ui_item_flag(), ui_item_with_label(), ui_litem_layout_row(), ui_numedit_but_CURVE(), ui_numedit_but_CURVEPROFILE(), ui_pie_menu_level_create(), UI_popup_handlers_add(), ui_rna_collection_search_update_fn(), ui_template_id(), UI_view2d_sync(), uiDefAutoButsRNA(), uiItemEnumR_string_prop(), uiItemFullO_ptr_ex(), uiItemFullOMenuHold_ptr(), uiItemFullR_with_menu(), uiItemFullR_with_popover(), uiItemsFullEnumO(), uiItemsFullEnumO_items(), uiTemplateAction(), uiTemplateGpencilModifier(), uiTemplateOperatorPropertyButs(), blender::ed::geometry::unassigned_local_poll(), uv_select_linked_multi(), validate_solution(), blender::fn::multi_function::SignatureBuilder::vector_output(), blender::fn::multi_function::SignatureBuilder::vector_output(), vfont_copy_data(), vfont_to_curve(), view3d_boundbox_clip_m4(), view3d_operator_properties_common(), view3d_pastebuffer_exec(), viewops_flag_from_prefs(), volume_preservation(), weight_paint_set(), weightflagNurb(), WIDGETGROUP_light_area_refresh(), window_manager_foreach_id(), WM_capabilities_flag(), WM_drag_asset_id_import(), WM_event_add_ui_handler(), WM_file_append_datablock(), wm_file_link_append_datablock_ex(), WM_file_link_datablock(), WM_gizmo_set_flag(), wm_id_linked_relocate_exec(), WM_jobs_get(), wm_lib_relocate_exec_do(), wm_link_append_exec(), wm_link_append_flag(), WM_operator_properties_filesel(), WM_operator_ui_poll(), WM_operatortype_append_macro(), wm_window_update_eventstate_modifiers(), wm_window_update_eventstate_modifiers_clear(), world_copy_data(), world_foreach_id(), blender::bke::forward_compat::write_compositor_legacy_properties(), GeometryManager::~GeometryManager(), Integrator::~Integrator(), and ObjectManager::~ObjectManager().
| const struct { ... } g_modifier_table[] |
Referenced by wm_ghost_modifier_query(), wm_window_update_eventstate_modifiers(), and wm_window_update_eventstate_modifiers_clear().
|
static |
Definition at line 96 of file wm_window.cc.
Referenced by ghost_event_proc(), ghost_event_proc_timestamp_warning(), wm_cursor_position_get(), WM_cursor_preferred_logical_size(), WM_cursor_warp(), wm_get_desktopsize(), wm_get_screensize(), WM_ghost_backend(), wm_ghost_exit(), wm_ghost_init(), wm_ghost_init_background(), wm_ghost_modifier_query(), WM_ghost_show_message_box(), wm_ghostwindow_destroy(), WM_init_input_devices(), WM_system_gpu_context_create(), WM_system_gpu_context_dispose(), wm_window_events_process(), WM_window_find_under_cursor(), and wm_window_ghostwindow_add().
|
static |
Definition at line 98 of file wm_window.cc.
Referenced by WM_ghost_backend(), and wm_ghost_init().
| struct { ... } * g_wm_clipboard_text_simulate |
Referenced by wm_clipboard_free(), wm_clipboard_text_get_impl(), and wm_clipboard_text_set_impl().
| GHOST_TKey ghost_key_pair[2] |
Definition at line 140 of file wm_window.cc.
| GHOST_TModifierKey ghost_mask_pair[2] |
Definition at line 141 of file wm_window.cc.
Referenced by wm_ghost_modifier_query().
|
static |