|
Blender V5.0
|
Go to the source code of this file.
| void GIZMOGROUP_OT_gizmo_select | ( | wmOperatorType * | ot | ) |
Definition at line 380 of file wm_gizmo_group.cc.
References ED_operator_region_gizmo_active(), gizmo_select_invoke(), OPTYPE_UNDO, ot, and WM_operator_properties_mouse_select().
Referenced by wm_operatortypes_register().
| void GIZMOGROUP_OT_gizmo_tweak | ( | wmOperatorType * | ot | ) |
Definition at line 620 of file wm_gizmo_group.cc.
References ED_operator_region_gizmo_active(), gizmo_tweak_invoke(), gizmo_tweak_modal(), OPTYPE_BLOCKING, OPTYPE_GRAB_CURSOR_XY, OPTYPE_UNDO, and ot.
Referenced by wm_operatortypes_register().
| bool wm_gizmogroup_is_any_selected | ( | const wmGizmoGroup * | gzgroup | ) |
Definition at line 313 of file wm_gizmo_group.cc.
References wmGizmoGroupType::flag, wmGizmoGroup::gizmos, LISTBASE_FOREACH, wmGizmoGroup::type, WM_GIZMO_STATE_SELECT, and WM_GIZMOGROUPTYPE_SELECT.
Referenced by wm_handlers_do_gizmo_handler().
| void wm_gizmogrouptype_free | ( | ) |
Definition at line 162 of file wm_gizmo_group_type.cc.
References get_gizmo_group_type_map(), and gizmogrouptype_free().
Referenced by WM_exit_ex().
| void wm_gizmogrouptype_init | ( | ) |
Called on initialize WM_init().
Definition at line 170 of file wm_gizmo_group_type.cc.
References get_gizmo_group_type_map().
Referenced by WM_init().
| ListBase * wm_gizmomap_groups_get | ( | wmGizmoMap * | gzmap | ) |
Definition at line 1213 of file wm_gizmo_map.cc.
References wmGizmoMap::groups.
| void wm_gizmomap_handler_context_gizmo | ( | bContext * | C, |
| wmEventHandler_Gizmo * | handler ) |
Definition at line 1017 of file wm_gizmo_map.cc.
Referenced by wm_handlers_do_gizmo_handler().
| void wm_gizmomap_handler_context_op | ( | bContext * | C, |
| wmEventHandler_Op * | handler ) |
Prepare context for gizmo handling (but only if area/region is part of screen). Version of wm_handler_op_context for gizmos.
Definition at line 984 of file wm_gizmo_map.cc.
References wmEventHandler_Op::area, bScreen::areabase, C, wmEventHandler_Op::context, CTX_wm_area_set(), CTX_wm_region_set(), CTX_wm_screen(), ListBase::first, ARegion::next, ScrArea::next, wmEventHandler_Op::region, and ScrArea::regionbase.
Referenced by wm_gizmomaps_handled_modal_update().
| wmGizmo * wm_gizmomap_highlight_find | ( | wmGizmoMap * | gzmap, |
| bContext * | C, | ||
| const wmEvent * | event, | ||
| int * | r_part ) |
Try to find a gizmo under the mouse position. 2D intersections have priority over 3D ones (could check for smallest screen-space distance but not needed right now).
Definition at line 772 of file wm_gizmo_map.cc.
References ARRAY_SIZE, C, copy_v2_v2_int(), CTX_wm_manager(), CTX_wm_region(), blender::Vector< T, InlineBufferCapacity, Allocator >::data(), gizmo_find_intersected_3d(), GIZMOMAP_IS_REFRESH_CALLBACK, wmGizmoMap::groups, i, blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), KM_PRESS_DRAG, LISTBASE_FOREACH, wmEvent::modifier, wmEvent::mval, blender::Vector< T, InlineBufferCapacity, Allocator >::size(), step, wmGizmoMap::update_flag, wmEvent::val, WM_event_drag_start_mval(), WM_gizmo_context_check_drawstep(), WM_gizmo_group_refresh(), WM_gizmo_group_type_poll(), wm_gizmogroup_find_intersected_gizmo(), WM_GIZMOGROUP_INIT_SETUP, wm_gizmogroup_intersectable_gizmos_to_list(), WM_GIZMOMAP_DRAWSTEP_2D, WM_GIZMOMAP_DRAWSTEP_3D, WM_gizmomap_drawstep_from_gizmo_group(), and WM_GIZMOMAP_DRAWSTEP_MAX.
Referenced by wm_handlers_do_gizmo_handler().
| wmGizmo * wm_gizmomap_highlight_get | ( | wmGizmoMap * | gzmap | ) |
Definition at line 1080 of file wm_gizmo_map.cc.
References wmGizmoMap::gzmap_context, and wmGizmoMap::highlight.
Referenced by wm_event_get_keymap_from_toolsystem_ex(), WM_gizmo_group_refresh(), wm_handler_operator_call(), and wm_handlers_do_gizmo_handler().
| bool wm_gizmomap_highlight_handled | ( | wmGizmoMap * | gzmap | ) |
Definition at line 767 of file wm_gizmo_map.cc.
References wmGizmoMap::tag_highlight_pending.
Referenced by wm_handlers_do_gizmo_handler().
| bool wm_gizmomap_highlight_pending | ( | const wmGizmoMap * | gzmap | ) |
Definition at line 763 of file wm_gizmo_map.cc.
References wmGizmoMap::tag_highlight_pending.
Referenced by wm_handlers_do_gizmo_handler().
| bool wm_gizmomap_highlight_set | ( | wmGizmoMap * | gzmap, |
| const bContext * | C, | ||
| wmGizmo * | gz, | ||
| int | part ) |
Definition at line 1033 of file wm_gizmo_map.cc.
References C, CTX_wm_region(), CTX_wm_window(), wmWindow::cursor, wmGizmoType::cursor_get, ED_region_tag_redraw_editor_overlays(), wmGizmoMap::gzmap_context, wmGizmoMap::highlight, wmGizmo::highlight_part, wmGizmoMap::last_cursor, wmGizmo::state, wmGizmo::type, WM_cursor_set(), and WM_GIZMO_STATE_HIGHLIGHT.
Referenced by WM_gizmo_highlight_set(), wm_gizmo_select_and_highlight(), WM_gizmo_unlink(), wm_gizmogroup_free(), wm_gizmomap_select_all_intern(), wm_gizmomaps_handled_modal_update(), WM_gizmomaptype_group_init_runtime_with_region(), and wm_handlers_do_gizmo_handler().
| wmGizmo * wm_gizmomap_modal_get | ( | wmGizmoMap * | gzmap | ) |
Definition at line 1202 of file wm_gizmo_map.cc.
References wmGizmoMap::gzmap_context, and wmGizmoMap::modal.
Referenced by wm_gizmomaps_handled_modal_update(), and wm_handlers_do_gizmo_handler().
| void wm_gizmomap_modal_set | ( | wmGizmoMap * | gzmap, |
| bContext * | C, | ||
| wmGizmo * | gz, | ||
| const wmEvent * | event, | ||
| bool | enable ) |
Caller should call exit when (enable == False).
Definition at line 1085 of file wm_gizmo_map.cc.
References BLI_assert, C, copy_v2_v2_int(), CTX_wm_region(), CTX_wm_window(), wmGizmo::custom_modal, ED_region_tag_redraw_editor_overlays(), ELEM, wmGizmoMap::event_grabcursor, wmGizmoMap::event_xy, wmGizmo::flag, GIZMOMAP_IS_REFRESH_CALLBACK, wmWindow::grabcursor, wmGizmoMap::groups, wmGizmoMap::gzmap_context, wmGizmo::highlight_part, i, wmGizmo::interaction_data, wmGizmoType::invoke, wmGizmoGroupType::invoke_prepare, wmTabletData::is_motion_absolute, LISTBASE_FOREACH, MEM_SAFE_FREE, wmGizmoMap::modal, wmGizmoType::modal, OPERATOR_RETVAL_CHECK, OPERATOR_RUNNING_MODAL, wmGizmo::parent_gzgroup, wmGizmo::state, step, wmEvent::tablet, wmGizmo::type, wmGizmoGroup::type, wmGizmoOpElem::type, UNPACK2, wmGizmoMap::update_flag, WM_cursor_grab_disable(), WM_cursor_grab_enable(), WM_cursor_warp(), WM_CURSOR_WRAP_XY, WM_event_add_mousemove(), WM_GIZMO_MOVE_CURSOR, WM_gizmo_operator_get(), WM_gizmo_operator_invoke(), WM_GIZMO_STATE_MODAL, wm_gizmogroup_is_visible_in_drawstep(), WM_GIZMOGROUPTYPE_DRAW_MODAL_ALL, WM_gizmomap_drawstep_from_gizmo_group(), WM_GIZMOMAP_DRAWSTEP_MAX, wm_gizmomap_modal_set(), WM_tooltip_clear(), and wmEvent::xy.
Referenced by gizmo_tweak_finish(), gizmo_tweak_start(), gizmo_tweak_start_and_finish(), WM_gizmo_modal_set_from_setup(), WM_gizmo_modal_set_while_modal(), WM_gizmo_unlink(), wm_gizmogroup_free(), wm_gizmomap_modal_set(), and wm_gizmomaps_handled_modal_update().
| void wm_gizmomap_remove | ( | wmGizmoMap * | gzmap | ) |
Definition at line 204 of file wm_gizmo_map.cc.
References MEM_freeN(), and wm_gizmomap_free_data().
Referenced by WM_init().
| wmGizmo ** wm_gizmomap_selected_get | ( | wmGizmoMap * | gzmap, |
| int * | r_selected_len ) |
Definition at line 1207 of file wm_gizmo_map.cc.
References wmGizmoMap::gzmap_context, wmGizmoMapSelectState::items, wmGizmoMapSelectState::len, and wmGizmoMap::select.
| void wm_gizmomaps_handled_modal_update | ( | bContext * | C, |
| wmEvent * | event, | ||
| wmEventHandler_Op * | handler ) |
Definition at line 857 of file wm_gizmo_map.cc.
References BLI_assert, C, wmEventHandler_Op::context, CTX_wm_area(), CTX_wm_area_set(), CTX_wm_region(), CTX_wm_region_set(), wmGizmo::custom_modal, wmGizmoType::exit, wmGizmo::highlight_part, wmGizmoType::modal, wmEventHandler_Op::op, OPERATOR_RETVAL_CHECK, OPERATOR_RUNNING_MODAL, wmEventHandler_Op::region, ARegion::runtime, wmGizmo::type, wmGizmoOpElem::type, wmOperator::type, UNUSED_VARS_NDEBUG, WM_gizmo_operator_get(), wm_gizmomap_handler_context_op(), wm_gizmomap_highlight_set(), wm_gizmomap_modal_get(), and wm_gizmomap_modal_set().
Referenced by wm_handler_operator_call().
| void wm_gizmomaptypes_free | ( | ) |
Definition at line 1301 of file wm_gizmo_map.cc.
References gizmomaptypes, MEM_freeN(), and WM_gizmomaptype_group_free().
Referenced by WM_exit_ex().
| void wm_gizmos_keymap | ( | wmKeyConfig * | keyconf | ) |
Initialize key-maps for all existing gizmo-groups
Definition at line 1322 of file wm_gizmo_map.cc.
References gizmomaptypes, LISTBASE_FOREACH, wm_gizmogroup_tweak_modal_keymap(), and wm_gizmogrouptype_setup_keymap().
Referenced by wm_window_keymap().
| void wm_gizmotype_free | ( | ) |
Definition at line 174 of file wm_gizmo_type.cc.
References get_gizmo_type_map(), and WM_gizmotype_free_ptr().
Referenced by WM_exit_ex().
| void wm_gizmotype_init | ( | ) |
Called on initialize WM_init().
Definition at line 182 of file wm_gizmo_type.cc.
References get_gizmo_type_map().
Referenced by WM_init().