Blender
V3.3
|
#include <stdlib.h>
#include <string.h>
#include "DNA_camera_types.h"
#include "DNA_listBase.h"
#include "DNA_object_types.h"
#include "DNA_screen_types.h"
#include "DNA_userdef_types.h"
#include "DNA_view3d_types.h"
#include "DNA_windowmanager_types.h"
#include "MEM_guardedalloc.h"
#include "BLI_blenlib.h"
#include "BLI_utildefines.h"
#include "BKE_context.h"
#include "BKE_global.h"
#include "BKE_image.h"
#include "BKE_main.h"
#include "BKE_scene.h"
#include "BKE_screen.h"
#include "GHOST_C-api.h"
#include "ED_node.h"
#include "ED_screen.h"
#include "ED_view3d.h"
#include "GPU_batch_presets.h"
#include "GPU_context.h"
#include "GPU_debug.h"
#include "GPU_framebuffer.h"
#include "GPU_immediate.h"
#include "GPU_matrix.h"
#include "GPU_state.h"
#include "GPU_texture.h"
#include "GPU_viewport.h"
#include "RE_engine.h"
#include "WM_api.h"
#include "WM_toolsystem.h"
#include "WM_types.h"
#include "wm.h"
#include "wm_draw.h"
#include "wm_event_system.h"
#include "wm_surface.h"
#include "wm_window.h"
#include "UI_resources.h"
Go to the source code of this file.
Classes | |
struct | GrabState |
struct | WindowDrawCB |
Macros | |
#define | SPACE_NAME(space) |
Window Drawing (Draw All) | |
typedef struct WindowDrawCB | WindowDrawCB |
void * | WM_draw_cb_activate (wmWindow *win, void(*draw)(const struct wmWindow *, void *), void *customdata) |
void | WM_draw_cb_exit (wmWindow *win, void *handle) |
static void | wm_draw_callbacks (wmWindow *win) |
Draw Software Cursor | |
Draw the cursor instead of relying on the graphical environment. Needed when setting the cursor position (warping) isn't supported (GHOST/WAYLAND). | |
struct { | |
int8_t enabled | |
int winid | |
int xy [2] | |
} | g_software_cursor |
static bool | wm_software_cursor_needed (void) |
static bool | wm_software_cursor_needed_for_window (const wmWindow *win, struct GrabState *grab_state) |
static bool | wm_software_cursor_motion_test (const wmWindow *win) |
static void | wm_software_cursor_motion_update (const wmWindow *win) |
static void | wm_software_cursor_motion_clear (void) |
static void | wm_software_cursor_draw_bitmap (const int event_xy[2], const GHOST_CursorBitmapRef *bitmap) |
static void | wm_software_cursor_draw_crosshair (const int event_xy[2]) |
static void | wm_software_cursor_draw (wmWindow *win, const struct GrabState *grab_state) |
Handle OpenGL buffers for windowing, also paint cursor.
Definition in file wm_draw.c.
#define SPACE_NAME | ( | space | ) |
typedef struct WindowDrawCB WindowDrawCB |
|
static |
Definition at line 514 of file wm_draw.c.
References blender::compositor::area(), SPACE_ACTION, SPACE_CLIP, SPACE_CONSOLE, SPACE_EMPTY, SPACE_FILE, SPACE_GRAPH, SPACE_IMAGE, SPACE_INFO, SPACE_NAME, SPACE_NLA, SPACE_NODE, SPACE_OUTLINER, SPACE_PROPERTIES, SPACE_SCRIPT, SPACE_SEQ, SPACE_STATUSBAR, SPACE_TEXT, SPACE_TOPBAR, SPACE_USERPREF, and SPACE_VIEW3D.
Referenced by wm_draw_window_offscreen().
Definition at line 585 of file wm_draw.c.
References wmWindow::drawcalls, and LISTBASE_FOREACH.
Referenced by wm_draw_window_onscreen().
void* WM_draw_cb_activate | ( | wmWindow * | win, |
void(*)(const struct wmWindow *, void *) | draw, | ||
void * | customdata | ||
) |
Definition at line 561 of file wm_draw.c.
References BLI_addtail(), WindowDrawCB::customdata, WindowDrawCB::draw, wmWindow::drawcalls, and MEM_callocN.
Referenced by area_join_init(), area_split_invoke(), and eyedropper_init().
Definition at line 574 of file wm_draw.c.
References BLI_remlink(), wmWindow::drawcalls, LISTBASE_FOREACH, and MEM_freeN.
Referenced by area_join_exit(), area_split_exit(), and eyedropper_exit().
|
static |
Definition at line 618 of file wm_draw.c.
References GPU_offscreen_color_texture(), and GPU_texture_mipmap_mode().
Referenced by wm_draw_region_buffer_create(), and wm_draw_window().
Definition at line 674 of file wm_draw.c.
References wmDrawBuffer::bound_view, C, CTX_data_scene(), ARegion::draw_buffer, RenderData::engine, G, GPU_offscreen_bind(), GPU_scissor(), GPU_scissor_test(), GPU_viewport_bind(), GPU_viewport_tag_update(), NULL, wmDrawBuffer::offscreen, Scene::r, RE_engine_is_opengl(), RE_engines_find(), scene, view, wmDrawBuffer::viewport, ARegion::winrct, ARegion::winx, and ARegion::winy.
Referenced by wm_draw_region_test(), WM_draw_region_viewport_bind(), and wm_draw_window_offscreen().
Definition at line 763 of file wm_draw.c.
References ARegion::alignment, blend(), BLI_rcti_size_x(), BLI_rcti_size_y(), ARegion::draw_buffer, ED_region_blend_alpha(), GPU_batch_draw(), GPU_batch_preset_quad(), GPU_batch_set_shader(), GPU_blend(), GPU_BLEND_ALPHA_PREMULT, GPU_BLEND_NONE, GPU_SHADER_2D_IMAGE_RECT_COLOR, GPU_shader_bind(), GPU_shader_get_builtin_shader(), GPU_shader_get_builtin_uniform(), GPU_shader_get_texture_binding(), GPU_shader_get_uniform(), GPU_shader_uniform_vector(), GPU_texture_bind(), GPU_texture_unbind(), GPU_UNIFORM_COLOR, GPUBatch, quad, RGN_ALIGN_ENUM_FROM_MASK, RGN_ALIGN_LEFT, RGN_ALIGN_RIGHT, view, ARegion::winrct, wm_draw_region_texture(), rcti::xmax, rctf::xmax, rcti::xmin, rctf::xmin, rcti::ymax, rctf::ymax, rcti::ymin, and rctf::ymin.
Referenced by wm_draw_window_onscreen().
Definition at line 724 of file wm_draw.c.
References ARegion::draw_buffer, GPU_offscreen_draw_to_screen(), GPU_viewport_draw_to_screen(), NULL, wmDrawBuffer::offscreen, view, wmDrawBuffer::viewport, ARegion::winrct, rcti::xmin, and rcti::ymin.
Referenced by wm_draw_window_onscreen().
|
static |
Definition at line 627 of file wm_draw.c.
References wmDrawBuffer::bound_view, ARegion::draw_buffer, GPU_offscreen_create(), GPU_offscreen_height(), GPU_offscreen_width(), GPU_RGBA8, GPU_viewport_create(), GPU_viewport_stereo_create(), MEM_callocN, NULL, wmDrawBuffer::offscreen, RPT_ERROR, wmDrawBuffer::stereo, wmDrawBuffer::viewport, ARegion::winx, ARegion::winy, wm_draw_offscreen_texture_parameters(), wm_draw_region_buffer_free(), and WM_report().
Referenced by wm_draw_region_test(), WM_draw_region_viewport_ensure(), and wm_draw_window_offscreen().
Definition at line 603 of file wm_draw.c.
References ARegion::draw_buffer, GPU_offscreen_free(), GPU_viewport_free(), MEM_freeN, NULL, wmDrawBuffer::offscreen, and wmDrawBuffer::viewport.
Referenced by wm_draw_region_buffer_create(), and WM_draw_region_free().
Definition at line 1354 of file wm_draw.c.
References bScreen::do_draw, and WM_window_get_active_screen().
Referenced by ui_region_temp_remove().
Definition at line 1360 of file wm_draw.c.
References ARegion::visible, and wm_draw_region_buffer_free().
Referenced by area_offscreen_exit(), ED_region_exit(), and ED_view3d_stop_render_preview().
GPUViewport* WM_draw_region_get_bound_viewport | ( | ARegion * | region | ) |
Definition at line 856 of file wm_draw.c.
References wmDrawBuffer::bound_view, ARegion::draw_buffer, NULL, and wmDrawBuffer::viewport.
Referenced by DRW_draw_render_loop_2d_ex(), DRW_draw_render_loop_ex(), DRW_draw_view(), and sequencer_ibuf_get().
GPUViewport* WM_draw_region_get_viewport | ( | ARegion * | region | ) |
Definition at line 846 of file wm_draw.c.
References ARegion::draw_buffer, NULL, and wmDrawBuffer::viewport.
Referenced by draw_timeline_seq(), DRW_draw_select_id(), DRW_notify_view_update(), ED_view3d_depth_override(), gizmo_find_intersected_3d(), blender::ed::space_node::node_draw_space(), sequencer_draw_preview(), view3d_depths_create(), view3d_depths_rect_create(), and wm_region_test_render_do_draw().
|
static |
Definition at line 352 of file wm_draw.c.
References blender::compositor::area(), Camera::bg_images, BKE_image_ensure_viewer(), View3D::camera, Object::data, SpaceSeq::draw_flag, ED_node_is_compositor(), ELEM, Image::eye, ListBase::first, SpaceNode::flag, RenderEngineType::flag, IMA_TYPE_COMPOSITE, CameraBGImage::iuser, SpaceImage::iuser, ImageUser::multiview_eye, SpaceSeq::multiview_eye, View3D::multiview_eye, OB_CAMERA, RE_USE_STEREO_VIEWPORT, ARegion::regiondata, ARegion::regiontype, RegionView3D::render_engine, RGN_TYPE_PREVIEW, RGN_TYPE_WINDOW, SEQ_DRAW_BACKDROP, SNODE_BACKDRAW, SPACE_IMAGE, SPACE_NODE, SPACE_SEQ, SPACE_VIEW3D, Object::type, and RenderEngine::type.
Referenced by wm_draw_window_offscreen().
Definition at line 1368 of file wm_draw.c.
References blender::compositor::area(), C, ARegion::do_draw, ED_region_do_draw(), wm_draw_region_bind(), wm_draw_region_buffer_create(), wm_draw_region_unbind(), and WM_region_use_viewport().
Referenced by redraw_timer_step().
GPUTexture* wm_draw_region_texture | ( | ARegion * | region, |
int | view | ||
) |
Definition at line 750 of file wm_draw.c.
References ARegion::draw_buffer, GPU_offscreen_color_texture(), GPU_viewport_color_texture(), NULL, wmDrawBuffer::offscreen, view, and wmDrawBuffer::viewport.
Referenced by wm_draw_region_blend().
Definition at line 707 of file wm_draw.c.
References wmDrawBuffer::bound_view, ARegion::draw_buffer, GPU_offscreen_unbind(), GPU_scissor_test(), GPU_viewport_unbind(), wmDrawBuffer::offscreen, and wmDrawBuffer::viewport.
Referenced by wm_draw_region_test(), WM_draw_region_viewport_unbind(), and wm_draw_window_offscreen().
Definition at line 1411 of file wm_draw.c.
References NULL, and wm_draw_region_bind().
Referenced by ED_view3d_depth_override(), and ui_region_redraw_immediately().
Definition at line 1405 of file wm_draw.c.
References ARegion::regiontype, wm_draw_region_buffer_create(), and wm_region_use_viewport_by_type().
Referenced by ED_view3d_depth_override().
Definition at line 1416 of file wm_draw.c.
References wm_draw_region_unbind().
Referenced by ED_view3d_depth_override(), and ui_region_redraw_immediately().
Draw offscreen contexts not bound to a specific window.
Definition at line 1179 of file wm_draw.c.
References C, CTX_wm_manager(), GPU_context_begin_frame(), GPU_context_end_frame(), surface, wm_surface_clear_drawable(), wm_surface_make_drawable(), and wm_window_clear_drawable().
Referenced by wm_draw_update().
Definition at line 1302 of file wm_draw.c.
References BKE_image_free_unused_gpu_textures(), C, CTX_data_main(), CTX_wm_manager(), CTX_wm_window_set(), ED_screen_ensure_updated(), GHOST_GetWindowState(), GHOST_kWindowStateMinimized, wmWindow::ghostwin, GPU_context_main_lock(), GPU_context_main_unlock(), GPU_render_begin(), GPU_render_end(), GPU_render_step(), LISTBASE_FOREACH, NULL, state, wmWindowManager::windows, wm_draw_surface(), wm_draw_update_clear_window(), wm_draw_update_test_window(), wm_draw_window(), wm_surfaces_iter(), WM_window_get_active_screen(), wm_window_make_drawable(), and wm_window_swap_buffers().
Referenced by ghost_event_proc(), redraw_timer_step(), redraw_timer_window_swap(), WM_main(), and WM_redraw_windows().
Definition at line 1279 of file wm_draw.c.
References blender::compositor::area(), C, bScreen::do_draw_drag, bScreen::do_draw_gesture, bScreen::do_draw_paintcursor, ED_screen_areas_iter, LISTBASE_FOREACH, wm_region_test_gizmo_do_draw(), and WM_window_get_active_screen().
Referenced by wm_draw_update().
Definition at line 1201 of file wm_draw.c.
References blender::compositor::area(), BKE_scene_ensure_depsgraph(), C, CTX_wm_manager(), depsgraph, bScreen::do_draw, ARegion::do_draw, bScreen::do_draw_drag, bScreen::do_draw_gesture, bScreen::do_draw_paintcursor, ARegion::do_draw_paintcursor, bScreen::do_refresh, ED_screen_areas_iter, g_software_cursor, LISTBASE_FOREACH, bScreen::regionbase, scene, UNUSED_VARS, ARegion::visible, wm_region_test_gizmo_do_draw(), wm_region_test_render_do_draw(), wm_software_cursor_motion_test(), wm_software_cursor_needed(), wm_software_cursor_needed_for_window(), WM_window_get_active_scene(), WM_window_get_active_screen(), and WM_window_get_active_view_layer().
Referenced by wm_draw_update().
Definition at line 1099 of file wm_draw.c.
References C, Stereo3dFormat::display_mode, bScreen::do_draw, ELEM, GPU_backbuffer_bind(), GPU_BACKBUFFER_LEFT, GPU_BACKBUFFER_RIGHT, GPU_bgl_end(), GPU_context_begin_frame(), GPU_context_end_frame(), GPU_offscreen_bind(), GPU_offscreen_color_texture(), GPU_offscreen_create(), GPU_offscreen_free(), GPU_offscreen_unbind(), GPU_RGBA8, GPU_texture_bind(), GPU_texture_unbind(), wmWindow::gpuctx, height, NULL, S3D_DISPLAY_ANAGLYPH, S3D_DISPLAY_INTERLACE, S3D_DISPLAY_PAGEFLIP, S3D_DISPLAY_SIDEBYSIDE, wmWindow::stereo3d_format, view, width, wm_draw_offscreen_texture_parameters(), wm_draw_window_offscreen(), wm_draw_window_onscreen(), wm_stereo3d_draw_sidebyside(), wm_stereo3d_draw_topbottom(), WM_stereo3d_enabled(), WM_window_get_active_screen(), WM_window_pixels_x(), WM_window_pixels_y(), and wmWindowViewport().
Referenced by wm_draw_update().
Definition at line 866 of file wm_draw.c.
References blender::compositor::area(), AREA_FLAG_ACTIVE_TOOL_UPDATE, C, CTX_data_main(), CTX_data_view_layer(), CTX_wm_area_set(), CTX_wm_manager(), CTX_wm_menu_set(), CTX_wm_region_set(), CTX_wm_workspace(), ARegion::do_draw, ARegion::draw_buffer, ED_area_update_region_sizes(), ED_region_do_draw(), ED_region_do_layout(), ED_screen_areas_iter, ARegion::flag, GPU_clear_color(), GPU_debug_group_begin(), GPU_debug_group_end(), GPU_viewport_stereo_composite(), ARegionType::layout, LISTBASE_FOREACH, NULL, bScreen::regionbase, RGN_FLAG_DYNAMIC_SIZE, RGN_FLAG_HIDDEN, RGN_FLAG_TOO_SMALL, wmWindow::stereo3d_format, STEREO_LEFT_ID, STEREO_RIGHT_ID, ARegion::type, view, wmDrawBuffer::viewport, ARegion::visible, ARegion::winrct, wm_area_name(), wm_draw_region_bind(), wm_draw_region_buffer_create(), wm_draw_region_stereo_set(), wm_draw_region_unbind(), WM_region_use_viewport(), WM_TOOLSYSTEM_SPACE_MASK, WM_toolsystem_update_from_context(), WM_window_get_active_screen(), and wmViewport().
Referenced by wm_draw_window().
Definition at line 990 of file wm_draw.c.
References bScreen::active_region, blender::compositor::area(), C, CTX_wm_area_set(), CTX_wm_manager(), CTX_wm_region_set(), wmWindowManager::drags, ARegionType::draw_overlay, ED_screen_areas_iter, ED_screen_draw_edges(), ListBase::first, wmWindow::gesture, GPU_clear_color(), GPU_debug_group_begin(), GPU_debug_group_end(), LISTBASE_FOREACH, NULL, ARegion::overlap, wmWindowManager::paintcursors, bScreen::regionbase, ARegion::type, UI_SetTheme(), view, ARegion::visible, wm_drags_draw(), wm_draw_callbacks(), wm_draw_region_blend(), wm_draw_region_blit(), wm_gesture_draw(), wm_paintcursor_draw(), wm_region_draw_overlay(), wm_software_cursor_draw(), wm_software_cursor_motion_clear(), wm_software_cursor_motion_update(), wm_software_cursor_needed(), wm_software_cursor_needed_for_window(), WM_window_get_active_screen(), and wmWindowViewport().
Referenced by wm_draw_window().
Definition at line 1294 of file wm_draw.c.
References bScreen::do_draw_paintcursor, and WM_window_get_active_screen().
Referenced by paint_stroke_modal(), paintcurve_delete_point_exec(), paintcurve_point_add(), paintcurve_point_select(), paintcurve_slide_invoke(), paintcurve_slide_modal(), sample_color_exec(), sample_color_invoke(), viewRedrawForce(), and wm_paintcursor_tag().
Definition at line 70 of file wm_draw.c.
References bScreen::active_region, blender::compositor::area(), BLI_rcti_size_x(), BLI_rcti_size_y(), C, CTX_wm_manager(), CTX_wm_window(), ELEM, wmWindow::eventstate, GHOST_kGrabHide, GHOST_kGrabWrap, GPU_scissor(), GPU_scissor_test(), wmWindow::grabcursor, wmWindowManager::is_interface_locked, LISTBASE_FOREACH_MUTABLE, NULL, wmWindowManager::paintcursors, ARegion::regiontype, RGN_TYPE_ANY, SPACE_TYPE_ANY, UI_SetTheme(), ARegion::visible, ARegion::winrct, wm_cursor_position_get(), WM_window_get_active_screen(), x, rcti::xmin, wmEvent::xy, y, and rcti::ymin.
Referenced by wm_draw_window_onscreen().
Definition at line 1380 of file wm_draw.c.
References C, CTX_wm_area(), CTX_wm_area_set(), CTX_wm_region(), CTX_wm_region_set(), CTX_wm_window(), CTX_wm_window_set(), and wm_draw_update().
Referenced by sample_color_exec(), sample_color_invoke(), and screenshot_data_create().
Definition at line 336 of file wm_draw.c.
References blender::compositor::area(), C, CTX_wm_window(), ARegionType::draw_overlay, ARegion::regiontype, ARegion::type, UI_SetTheme(), ARegion::winrct, wmViewport(), and wmWindowViewport().
Referenced by wm_draw_window_onscreen().
|
static |
Definition at line 420 of file wm_draw.c.
References blender::compositor::area(), C, CTX_wm_area(), CTX_wm_area_set(), CTX_wm_region(), CTX_wm_region_set(), ED_region_tag_redraw_editor_overlays(), ARegion::gizmo_map, LISTBASE_FOREACH, NULL, WM_gizmo_group_type_poll(), WM_GIZMOGROUPTYPE_VR_REDRAWS, and WM_gizmomap_group_list().
Referenced by wm_draw_update_clear_window(), and wm_draw_update_test_window().
|
static |
Definition at line 458 of file wm_draw.c.
References blender::compositor::area(), depsgraph, ED_region_tag_redraw_no_rebuild(), ED_region_tag_redraw_partial(), ED_view3d_calc_render_border(), RenderEngine::flag, GPU_viewport_do_update(), RE_ENGINE_DO_DRAW, ARegion::regiondata, ARegion::regiontype, RegionView3D::render_engine, RGN_TYPE_WINDOW, scene, SPACE_VIEW3D, and WM_draw_region_get_viewport().
Referenced by wm_draw_update_test_window().
Definition at line 509 of file wm_draw.c.
References blender::compositor::area(), ARegion::regiontype, and wm_region_use_viewport_by_type().
Referenced by region_draw_azone_tab_arrow(), wm_draw_region_test(), and wm_draw_window_offscreen().
|
static |
Definition at line 502 of file wm_draw.c.
References ELEM, RGN_TYPE_PREVIEW, RGN_TYPE_WINDOW, SPACE_IMAGE, SPACE_NODE, SPACE_SEQ, and SPACE_VIEW3D.
Referenced by WM_draw_region_viewport_ensure(), and WM_region_use_viewport().
Definition at line 301 of file wm_draw.c.
References GrabState::bounds, wmWindow::eventstate, GHOST_GetCursorBitmap(), GHOST_kAxisX, GHOST_kAxisY, GHOST_kSuccess, wmWindow::ghostwin, height, max, min, mod_i(), UNPACK2, wm_software_cursor_draw_bitmap(), wm_software_cursor_draw_crosshair(), WM_window_pixels_y(), GrabState::wrap_axis, and wmEvent::xy.
Referenced by wm_draw_window_onscreen().
|
static |
Definition at line 197 of file wm_draw.c.
References GHOST_CursorBitmapRef::data, GHOST_CursorBitmapRef::data_size, GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_COMP_F32, GPU_DATA_UBYTE, GPU_FETCH_FLOAT, GPU_matrix_mul, GPU_matrix_pop(), GPU_matrix_push(), GPU_PRIM_TRI_FAN, GPU_RGBA8, GPU_SHADER_3D_IMAGE_MODULATE_ALPHA, GPU_texture_create_2d(), GPU_texture_filter_mode(), GPU_texture_free(), GPU_texture_unbind(), GPU_texture_update(), GPU_vertformat_attr_add(), GHOST_CursorBitmapRef::hot_spot, immAttr2f(), immBegin(), immBindBuiltinProgram(), immBindTexture(), immEnd(), immUnbindProgram(), immUniform1f(), immVertex3f(), immVertexFormat(), NULL, pos, and unit_m4().
Referenced by wm_software_cursor_draw().
|
static |
Definition at line 258 of file wm_draw.c.
References GPU_COMP_I32, GPU_FETCH_INT_TO_FLOAT, GPU_SHADER_2D_UNIFORM_COLOR, GPU_vertformat_attr_add(), immBindBuiltinProgram(), immRecti(), immUnbindProgram(), immUniformColor4f(), immVertexFormat(), max_ff(), and pos.
Referenced by wm_software_cursor_draw().
Definition at line 190 of file wm_draw.c.
References g_software_cursor.
Referenced by wm_draw_window_onscreen().
Definition at line 175 of file wm_draw.c.
References wmWindow::eventstate, g_software_cursor, wmWindow::winid, and wmEvent::xy.
Referenced by wm_draw_update_test_window().
Definition at line 182 of file wm_draw.c.
References wmWindow::eventstate, g_software_cursor, wmWindow::winid, and wmEvent::xy.
Referenced by wm_draw_window_onscreen().
Definition at line 148 of file wm_draw.c.
References g_software_cursor, GHOST_SupportsCursorWarp(), and UNLIKELY.
Referenced by wm_draw_update_test_window(), wm_draw_window_onscreen(), and wm_software_cursor_needed_for_window().
|
static |
Definition at line 156 of file wm_draw.c.
References BLI_assert, GrabState::bounds, GHOST_GetCursorGrabState(), GHOST_GetCursorVisibility(), wmWindow::ghostwin, GrabState::mode, wm_software_cursor_needed(), and GrabState::wrap_axis.
Referenced by wm_draw_update_test_window(), and wm_draw_window_onscreen().
struct { ... } g_software_cursor |
Track the state of the last drawn cursor.
Referenced by wm_draw_update_test_window(), wm_software_cursor_motion_clear(), wm_software_cursor_motion_test(), wm_software_cursor_motion_update(), and wm_software_cursor_needed().
int winid |
Definition at line 134 of file wm_draw.c.
Referenced by BKE_workspace_active_layout_set(), BKE_workspace_active_screen_set(), BKE_workspace_instance_hook_create(), and find_free_winid().
int xy[2] |
Definition at line 135 of file wm_draw.c.
Referenced by actionzone_area_poll(), area_actionzone_refresh_xy(), area_event_inside(), BKE_area_find_region_xy(), BKE_maskrasterize_handle_sample(), BKE_screen_area_map_find_area_xy(), BKE_screen_find_area_xy(), BKE_screen_find_main_region_at_xy(), BKE_screen_find_region_xy(), BLI_rctf_clamp_pt_v(), BLI_rctf_do_minmax_v(), BLI_rctf_init_pt_radius(), BLI_rctf_isect_circle(), BLI_rctf_isect_pt_v(), BLI_rcti_clamp_pt_v(), BLI_rcti_do_minmax_v(), BLI_rcti_init_pt_radius(), BLI_rcti_isect_circle(), BLI_rcti_isect_pt_v(), btMatrix3x3(), collection_drop_init(), collection_drop_tooltip(), CreateMatrix(), data_device_handle_drop(), draw_seq_in_view(), dropbox_tooltip(), ED_area_actionzone_find_xy(), ED_area_azones_update(), ED_area_find_under_cursor(), ED_armature_pick_bone(), ed_armature_pick_bone_impl(), ED_armature_pick_ebone(), ED_armature_pick_pchan(), ED_gpencil_project_stroke_to_view(), ED_gpencil_stroke_reproject(), ED_screen_set_active_region(), blender::compositor::ScreenLensDistortionOperation::execute_pixel(), blender::compositor::DisplaceOperation::execute_pixel_sampled(), blender::compositor::MapUVOperation::execute_pixel_sampled(), blender::compositor::MaskOperation::execute_pixel_sampled(), eyedropper_draw_cursor_text_ex(), eyedropper_draw_cursor_text_region(), flushTransNodes(), GHOST_SystemWayland::getAllDisplayDimensions(), KDL::Vector2::GetValue(), gpencil_draw_modal(), gpencil_point_3d_to_xy(), gpencil_select_exec(), gpencil_speed_guide_init(), blender::compositor::FastGaussianBlurOperation::IIR_gauss(), imapaint_pick_uv(), keyframe_region_circle_test(), keyframe_region_lasso_test(), layer_bucket_depth_from_xy(), layer_bucket_index_from_xy(), maskrasterize_buffer_cb(), maskrasterize_layer_isect(), outliner_drop_insert_collection_find(), outliner_drop_insert_find(), blender::compositor::DisplaceOperation::pixel_transform(), blender::compositor::MapUVOperation::pixel_transform(), region_event_inside(), relative_pointer_handle_relative_motion_impl(), ScaleAlongAxis(), screen_actionzone_find_xy(), screen_cursor_set(), sequencer_drop_copy(), setRotation(), setValue(), textview_draw(), textview_draw_sel(), ui_block_bounds_calc_centered_pie(), ui_block_bounds_calc_popup(), UI_block_end_ex(), ui_block_find_mouse_over_ex(), ui_but_contains_point_px(), ui_but_find_mouse_over_ex(), ui_drag_toggle_set(), ui_list_find_mouse_over_ex(), ui_list_row_find_mouse_over(), ui_mouse_motion_towards_check(), ui_mouse_motion_towards_init(), ui_mouse_motion_towards_init_ex(), ui_mouse_motion_towards_reinit(), UI_region_block_find_mouse_over(), ui_region_contains_point_px(), UI_region_views_find_item_at(), ui_screen_region_find_mouse_over_ex(), ui_searchbox_inside(), UI_view2d_edge_pan_apply(), UI_view2d_mouse_in_scrollers(), UI_view2d_mouse_in_scrollers_ex(), ui_view_drop_tooltip(), ui_view_item_find_mouse_over(), blender::compositor::DisplaceOperation::update_memory_buffer_partial(), blender::compositor::MapUVOperation::update_memory_buffer_partial(), blender::compositor::MaskOperation::update_memory_buffer_partial(), blender::compositor::MovieDistortionOperation::update_memory_buffer_partial(), blender::compositor::ScreenLensDistortionOperation::update_memory_buffer_partial(), view2d_edge_pan_loc_compensate(), view3d_mat_drop_tooltip(), view3d_ruler_item_project(), viewdolly_apply(), viewzoom_apply(), viewzoom_apply_3d(), viewzoom_apply_camera(), wm_drag_draw_default(), WM_drag_draw_default_fn(), wm_drag_draw_icon(), WM_drag_draw_item_name_fn(), wm_drag_draw_tooltip(), wm_drags_draw(), WM_event_drag_start_mval(), WM_event_drag_start_mval_fl(), WM_gesture_new(), and wm_handlers_do().