Blender
V3.3
|
#include <DNA_windowmanager_types.h>
Public Attributes | |
struct wmWindow * | next |
struct wmWindow * | prev |
void * | ghostwin |
void * | gpuctx |
struct wmWindow * | parent |
struct Scene * | scene |
struct Scene * | new_scene |
char | view_layer_name [64] |
struct Scene * | unpinned_scene |
struct WorkSpaceInstanceHook * | workspace_hook |
ScrAreaMap | global_areas |
struct bScreen *screen | DNA_DEPRECATED |
int | winid |
short | posx |
short | posy |
short | sizex |
short | sizey |
char | windowstate |
char | active |
short | cursor |
short | lastcursor |
short | modalcursor |
short | grabcursor |
char | addmousemove |
char | tag_cursor_refresh |
char | event_queue_check_click |
char | event_queue_check_drag |
char | event_queue_check_drag_handled |
char | _pad0 [1] |
short | pie_event_type_lock |
short | pie_event_type_last |
struct wmEvent * | eventstate |
struct wmEvent * | event_last_handled |
struct wmIMEData * | ime_data |
ListBase | event_queue |
ListBase | handlers |
ListBase | modalhandlers |
ListBase | gesture |
struct Stereo3dFormat * | stereo3d_format |
ListBase | drawcalls |
void * | cursor_keymap_status |
The saveable part, the rest of the data is local in GHOST.
Definition at line 225 of file DNA_windowmanager_types.h.
char wmWindow::_pad0[1] |
Definition at line 288 of file DNA_windowmanager_types.h.
char wmWindow::active |
Set to 1 if an active window, for quick rejects.
Definition at line 261 of file DNA_windowmanager_types.h.
Referenced by current_screen_compat(), ghost_event_proc(), gizmo_mesh_spin_redo_setup(), and wm_window_substitute_old().
char wmWindow::addmousemove |
Internal: tag this for extra mouse-move event, makes cursors/buttons active on UI switching.
Definition at line 272 of file DNA_windowmanager_types.h.
Referenced by ghost_event_proc(), WM_event_add_mousemove(), wm_event_do_handlers(), and WM_toolsystem_ref_set_from_runtime().
short wmWindow::cursor |
Current mouse cursor type.
Definition at line 263 of file DNA_windowmanager_types.h.
Referenced by WM_cursor_modal_set(), WM_cursor_set(), WM_cursor_set_from_tool(), WM_cursor_time(), wm_gizmomap_highlight_set(), and wm_window_ghostwindow_ensure().
void* wmWindow::cursor_keymap_status |
Definition at line 324 of file DNA_windowmanager_types.h.
Referenced by WM_window_cursor_keymap_status_get(), WM_window_cursor_keymap_status_refresh(), and wm_window_free().
struct bScreen* screen wmWindow::DNA_DEPRECATED |
Definition at line 252 of file DNA_windowmanager_types.h.
ListBase wmWindow::drawcalls |
Definition at line 321 of file DNA_windowmanager_types.h.
Referenced by wm_draw_callbacks(), WM_draw_cb_activate(), and WM_draw_cb_exit().
struct wmEvent* wmWindow::event_last_handled |
Keep the last handled event in event_queue
here (owned and must be freed).
Definition at line 301 of file DNA_windowmanager_types.h.
Referenced by ui_popup_block_refresh(), wm_event_add_mousemove_to_head(), wm_event_free_last_handled(), wm_window_free(), and wm_window_substitute_old().
ListBase wmWindow::event_queue |
All events wmEvent (ghost level events were handled).
Definition at line 308 of file DNA_windowmanager_types.h.
Referenced by wm_event_add_ex(), wm_event_add_mousemove(), wm_event_add_mousemove_to_head(), wm_event_add_trackpad(), wm_event_do_handlers(), wm_event_free_all(), wm_event_free_last(), and wm_event_is_ignorable_key_press().
char wmWindow::event_queue_check_click |
Enable when KM_PRESS events are not handled (keyboard/mouse-buttons only).
Definition at line 278 of file DNA_windowmanager_types.h.
Referenced by wm_event_do_handlers(), and wm_handlers_do().
char wmWindow::event_queue_check_drag |
Enable when KM_PRESS events are not handled (keyboard/mouse-buttons only).
Definition at line 280 of file DNA_windowmanager_types.h.
Referenced by wm_event_do_handlers(), WM_gizmo_group_refresh(), and wm_handlers_do().
char wmWindow::event_queue_check_drag_handled |
Enable when the drag was handled, to avoid mouse-motion continually triggering drag events which are not handled but add overhead to gizmo handling (for example), see T87511.
Definition at line 286 of file DNA_windowmanager_types.h.
Referenced by wm_event_do_handlers(), and wm_handlers_do().
struct wmEvent* wmWindow::eventstate |
Storage for event system.
Definition at line 299 of file DNA_windowmanager_types.h.
Referenced by actionzone_area_poll(), collection_drop_tooltip(), console_cursor(), drivers_editor_show_exec(), ED_area_update_region_sizes(), ED_gizmotypes_snap_3d_data_get(), ED_imbuf_sample_draw(), ED_region_draw_mouse_line_cb(), ED_screen_area_active(), eyedropper_draw_cursor_text_window(), file_main_region_draw(), ghost_event_proc(), gizmo_mesh_placement_modal_from_setup(), gizmo_mesh_spin_redo_modal_from_setup(), gizmo_mesh_spin_redo_setup(), gizmo_preselect_elem_test_select(), handle_layer_buttons(), info_log_show_exec(), menu_types_add_from_keymap_items(), blender::ed::space_node::node_cursor(), blender::ed::space_node::node_draw_space(), outliner_collection_set_flag_recursive_fn(), outliner_mode_toggle_fn(), outliner_object_set_flag_recursive_fn(), panel_handle_data_ensure(), restrictbutton_bone_select_fn(), restrictbutton_bone_visibility_fn(), restrictbutton_ebone_select_fn(), restrictbutton_ebone_visibility_fn(), screen_ctx_ui_list(), scroller_activate_poll(), sequencer_drop_copy(), snap_gizmo_test_select(), text_cursor(), ui_apply_but(), UI_block_end(), ui_but_tooltip_init(), ui_item_enum_expand_handle(), ui_layer_but_cb(), ui_list_focused_poll(), ui_panel_drag_collapse_handler_add(), ui_pie_menu_level_invoke(), ui_popover_panel_create(), ui_popup_block_create(), ui_popup_block_refresh(), ui_popup_menu_create(), UI_popup_menu_end(), ui_search_menu_create_tooltip(), ui_selectcontext_apply(), ui_textedit_begin(), UI_tooltip_create_from_button_or_extra_icon(), UI_tooltip_create_from_gizmo(), UI_tooltip_create_from_search_item_generic(), ui_view_drop_poll(), userpref_show_exec(), v3d_cursor_eventstate_has_changed(), v3d_cursor_eventstate_save_modifier(), v3d_cursor_is_snap_invert(), v3d_cursor_snap_poll_fn(), weight_paint_sample_enum_itemf(), WM_cursor_grab_enable(), wm_cursor_position_get(), WM_cursor_warp(), wm_drags_draw(), WM_event_add_fileselect(), wm_event_add_ghostevent(), wm_event_add_mousemove(), WM_event_add_simulate(), wm_event_do_handlers(), WM_event_fileselect_event(), wm_event_init_from_window(), WM_event_remove_handlers(), WM_gizmo_group_refresh(), wm_handler_fileselect_do(), wm_operator_call_internal(), wm_paintcursor_draw(), wm_software_cursor_draw(), wm_software_cursor_motion_test(), wm_software_cursor_motion_update(), WM_tooltip_init(), WM_window_cursor_keymap_status_refresh(), wm_window_ensure_eventstate(), wm_window_free(), wm_window_substitute_old(), and wm_window_update_eventstate().
ListBase wmWindow::gesture |
Gesture stuff.
Definition at line 315 of file DNA_windowmanager_types.h.
Referenced by wm_draw_window_onscreen(), wm_gesture_draw(), WM_gesture_end(), WM_gesture_new(), WM_gestures_free_all(), and WM_gestures_remove().
void* wmWindow::ghostwin |
Don't want to include ghost.h stuff.
Definition at line 229 of file DNA_windowmanager_types.h.
Referenced by ED_screen_refresh(), ghost_event_proc(), window_set_custom_cursor(), window_set_custom_cursor_ex(), wm_cursor_arrow_move(), WM_cursor_grab_disable(), WM_cursor_grab_enable(), wm_cursor_position_from_ghost_client_coords(), wm_cursor_position_from_ghost_screen_coords(), wm_cursor_position_get(), wm_cursor_position_to_ghost_client_coords(), wm_cursor_position_to_ghost_screen_coords(), WM_cursor_set(), WM_cursor_warp(), wm_draw_update(), wm_ghostwindow_destroy(), WM_progress_clear(), WM_progress_set(), wm_software_cursor_draw(), wm_software_cursor_needed_for_window(), WM_stereo3d_enabled(), wm_window_copy(), wm_window_copy_test(), wm_window_fullscreen_toggle_exec(), wm_window_get_swap_interval(), wm_window_ghostwindow_add(), wm_window_ghostwindow_ensure(), wm_window_lower(), wm_window_make_drawable(), WM_window_open(), WM_window_pixel_sample_read(), WM_window_pixels_read(), WM_window_pixels_x(), WM_window_pixels_y(), wm_window_raise(), wm_window_reset_drawable(), WM_window_set_dpi(), wm_window_set_drawable(), wm_window_set_size(), wm_window_set_swap_interval(), wm_window_substitute_old(), wm_window_swap_buffers(), wm_window_title(), and wm_window_update_size_position().
ScrAreaMap wmWindow::global_areas |
Global areas aren't part of the screen, but part of the window directly.
Definition at line 250 of file DNA_windowmanager_types.h.
Referenced by area_move_set_limits(), ED_screen_areas_iter_first(), ED_screen_exit(), ED_screen_global_areas_refresh(), ED_screen_global_areas_sync(), ED_screen_state_toggle(), ED_workspace_status_text(), screen_geom_find_active_scredge(), screen_geom_vertices_scale(), screen_global_area_refresh(), screen_state_to_nonnormal(), wm_window_free(), WM_window_screen_rect_calc(), and WM_window_status_area_find().
void* wmWindow::gpuctx |
Don't want to include gpu stuff.
Definition at line 231 of file DNA_windowmanager_types.h.
Referenced by wm_draw_window(), wm_ghostwindow_destroy(), wm_window_ghostwindow_add(), WM_window_pixel_sample_read(), WM_window_pixels_read(), wm_window_set_drawable(), and wm_window_substitute_old().
short wmWindow::grabcursor |
Cursor grab mode.
Definition at line 269 of file DNA_windowmanager_types.h.
Referenced by image_view_pan_init(), image_view_zoom_init(), view_pan_init(), view_zoom_init(), WM_cursor_grab_disable(), WM_cursor_grab_enable(), wm_drags_draw(), wm_gizmomap_modal_set(), and wm_paintcursor_draw().
ListBase wmWindow::handlers |
Window+screen handlers, handled last.
Definition at line 310 of file DNA_windowmanager_types.h.
Referenced by menu_types_add_from_keymap_items(), wm_dropbox_active(), wm_event_do_handlers(), wm_keymap_item_find_props(), wm_window_close(), WM_window_cursor_keymap_status_refresh(), wm_window_free(), and wm_window_ghostwindow_ensure().
struct wmIMEData* wmWindow::ime_data |
Definition at line 305 of file DNA_windowmanager_types.h.
Referenced by ui_do_but_textedit(), ui_textedit_end(), and wm_event_add_ghostevent().
short wmWindow::lastcursor |
Previous cursor when setting modal one.
Definition at line 265 of file DNA_windowmanager_types.h.
Referenced by WM_cursor_modal_restore(), WM_cursor_modal_set(), and WM_cursor_time().
short wmWindow::modalcursor |
The current modal cursor.
Definition at line 267 of file DNA_windowmanager_types.h.
Referenced by WM_cursor_modal_restore(), WM_cursor_modal_set(), WM_cursor_set(), and WM_cursor_set_from_tool().
ListBase wmWindow::modalhandlers |
Priority handlers, handled first.
Definition at line 312 of file DNA_windowmanager_types.h.
Referenced by ghost_event_proc(), panel_activate_state(), panel_handle_data_ensure(), screen_change_prepare(), ui_block_free_func_POPOVER(), ui_handler_region_drag_toggle(), ui_handler_wait_for_input(), ui_panel_drag_collapse_handler(), ui_panel_drag_collapse_handler_add(), UI_pie_menu_end(), UI_popover_end(), ui_popover_panel_create(), UI_popup_block_close(), UI_popup_block_ex(), UI_popup_block_invoke_ex(), ui_popup_handler(), ui_popup_menu_create(), UI_popup_menu_end(), WM_event_add_fileselect(), WM_event_add_modal_handler(), wm_event_cursor_other_windows(), wm_event_do_handlers(), WM_event_modal_handler_area_replace(), WM_event_modal_handler_region_replace(), wm_exit_schedule_delayed(), wm_keymap_item_find_props(), wm_macro_modal(), WM_operator_find_modal_by_type(), WM_operator_name_call_ptr_with_depends_on_cursor(), wm_window_close(), wm_window_free(), wm_window_ghostwindow_ensure(), and WM_window_modal_keymap_status_draw().
struct Scene* wmWindow::new_scene |
Temporary when switching.
Definition at line 239 of file DNA_windowmanager_types.h.
struct wmWindow* wmWindow::next |
Definition at line 226 of file DNA_windowmanager_types.h.
Referenced by blo_do_versions_270(), current_screen_compat(), find_area_showing_r_result(), render_image_restore_layer(), render_image_update_pass_and_layer(), render_view_show_invoke(), WM_cursor_wait(), wm_scene_is_visible(), WM_toolsystem_do_msg_notify_tag_refresh(), and wm_window_close().
struct wmWindow* wmWindow::parent |
Parent window.
Definition at line 234 of file DNA_windowmanager_types.h.
Referenced by blend_file_thumb_from_screenshot(), ED_area_find_under_cursor(), ED_screen_global_areas_refresh(), wm_event_find_fileselect_root_window_from_context(), wm_window_close(), wm_window_copy(), wm_window_ghostwindow_add(), wm_window_new(), WM_window_set_active_scene(), WM_window_set_active_view_layer(), and WM_window_set_active_workspace().
short wmWindow::pie_event_type_last |
Exception to the above rule for nested pies, store last pie event for operators that spawn a new pie right after destruction of last pie.
Definition at line 296 of file DNA_windowmanager_types.h.
Referenced by UI_pie_menu_begin(), and ui_popup_handler().
short wmWindow::pie_event_type_lock |
Internal, lock pie creation from this event until released.
Definition at line 291 of file DNA_windowmanager_types.h.
Referenced by UI_pie_menu_begin(), and wm_event_pie_filter().
short wmWindow::posx |
Window coords.
Definition at line 257 of file DNA_windowmanager_types.h.
Referenced by ghost_event_proc(), wm_window_copy(), wm_window_get_position(), wm_window_ghostwindow_add(), wm_window_ghostwindow_ensure(), WM_window_open(), wm_window_substitute_old(), and wm_window_update_size_position().
short wmWindow::posy |
Definition at line 257 of file DNA_windowmanager_types.h.
Referenced by ghost_event_proc(), wm_window_copy(), wm_window_get_position(), wm_window_ghostwindow_add(), wm_window_ghostwindow_ensure(), WM_window_open(), wm_window_substitute_old(), and wm_window_update_size_position().
struct wmWindow * wmWindow::prev |
Definition at line 226 of file DNA_windowmanager_types.h.
struct Scene* wmWindow::scene |
Active scene displayed in this window.
Definition at line 237 of file DNA_windowmanager_types.h.
Referenced by buttons_context_path_view_layer(), buttons_texture_users_from_context(), CTX_wm_window_set(), current_screen_compat(), ED_screen_scene_change(), setup_app_data(), wm_add_default(), wm_event_do_notifiers(), wm_event_get_keymap_from_toolsystem_ex(), wm_scene_is_visible(), wm_window_copy(), WM_window_get_active_scene(), and WM_window_set_active_scene().
short wmWindow::sizex |
Definition at line 257 of file DNA_windowmanager_types.h.
Referenced by ghost_event_proc(), wm_window_copy(), wm_window_ghostwindow_add(), wm_window_ghostwindow_ensure(), wm_window_new_exec(), WM_window_open(), WM_window_pixels_x(), wm_window_substitute_old(), and wm_window_update_size_position().
short wmWindow::sizey |
Definition at line 257 of file DNA_windowmanager_types.h.
Referenced by ghost_event_proc(), wm_cursor_position_from_ghost_client_coords(), wm_cursor_position_to_ghost_client_coords(), wm_window_copy(), wm_window_ghostwindow_add(), wm_window_ghostwindow_ensure(), wm_window_new_exec(), WM_window_open(), WM_window_pixels_y(), wm_window_substitute_old(), and wm_window_update_size_position().
struct Stereo3dFormat* wmWindow::stereo3d_format |
Properties for stereoscopic displays.
Definition at line 318 of file DNA_windowmanager_types.h.
Referenced by blo_do_versions_270(), wm_draw_window(), wm_draw_window_offscreen(), wm_stereo3d_draw_sidebyside(), WM_stereo3d_enabled(), wm_stereo3d_mouse_offset_apply(), wm_stereo3d_set_exec(), wm_stereo3d_set_init(), wm_window_copy(), wm_window_free(), wm_window_ghostwindow_add(), wm_window_new(), and WM_window_open().
char wmWindow::tag_cursor_refresh |
Definition at line 273 of file DNA_windowmanager_types.h.
Referenced by region_cursor_set_ex(), ui_popup_block_remove(), wm_drags_exit(), and WM_toolsystem_ref_set_from_runtime().
struct Scene* wmWindow::unpinned_scene |
The workspace may temporarily override the window's scene with scene pinning. This is the "overridden" or "default" scene to restore when entering a workspace with no scene pinned.
Definition at line 244 of file DNA_windowmanager_types.h.
Referenced by workspace_exit(), and workspace_scene_pinning_update().
char wmWindow::view_layer_name[64] |
Active view layer displayed in this window.
Definition at line 241 of file DNA_windowmanager_types.h.
Referenced by CTX_data_view_layer(), current_screen_compat(), wm_add_default(), wm_window_copy(), WM_window_ensure_active_view_layer(), WM_window_get_active_view_layer(), and WM_window_open().
char wmWindow::windowstate |
Borderless, full.
Definition at line 259 of file DNA_windowmanager_types.h.
Referenced by ghost_event_proc(), wm_window_ghostwindow_add(), wm_window_ghostwindow_ensure(), WM_window_is_fullscreen(), and WM_window_is_maximized().
int wmWindow::winid |
Winid also in screens, is for retrieving this window after read.
Definition at line 255 of file DNA_windowmanager_types.h.
Referenced by blo_do_versions_290(), ED_screen_refresh(), ED_workspace_change(), ghost_event_proc(), screen_is_used_by_other_window(), screen_new_activate_prepare(), wm_add_default(), wm_software_cursor_motion_test(), wm_software_cursor_motion_update(), wm_window_make_drawable(), wm_window_new(), WM_window_set_active_layout(), and WM_window_set_active_screen().
struct WorkSpaceInstanceHook* wmWindow::workspace_hook |
Definition at line 246 of file DNA_windowmanager_types.h.
Referenced by CTX_wm_window_set(), current_screen_compat(), ED_area_init(), ED_screen_change(), ED_screen_global_areas_refresh(), ED_screen_global_areas_sync(), ED_workspace_change(), ED_workspace_duplicate(), ED_workspace_layout_cycle(), find_screen_to_search_for_context(), lib_link_window_scene_data_restore(), screen_change_update(), screen_new_exec(), space_workspace_cycle_invoke(), wm_add_default(), wm_close_and_free(), wm_window_close(), wm_window_free(), WM_window_get_active_layout(), WM_window_get_active_screen(), WM_window_get_active_workspace(), wm_window_new(), WM_window_open(), WM_window_set_active_layout(), WM_window_set_active_screen(), workspace_change_get_new_layout(), and workspace_layout_delete_doit().