|
Blender V4.3
|
Go to the source code of this file.
| void GIZMOGROUP_OT_gizmo_select | ( | wmOperatorType * | ot | ) |
Definition at line 379 of file wm_gizmo_group.cc.
References wmOperatorType::description, ED_operator_region_gizmo_active(), wmOperatorType::flag, gizmo_select_invoke(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_UNDO, ot, wmOperatorType::poll, and WM_operator_properties_mouse_select().
Referenced by wm_operatortypes_register().
| void GIZMOGROUP_OT_gizmo_tweak | ( | wmOperatorType * | ot | ) |
Definition at line 611 of file wm_gizmo_group.cc.
References wmOperatorType::description, ED_operator_region_gizmo_active(), wmOperatorType::flag, gizmo_tweak_invoke(), gizmo_tweak_modal(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, OPTYPE_GRAB_CURSOR_XY, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by wm_operatortypes_register().
| bool wm_gizmogroup_is_any_selected | ( | const wmGizmoGroup * | gzgroup | ) |
Definition at line 312 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 167 of file wm_gizmo_group_type.cc.
References BLI_ghash_free(), global_gizmogrouptype_hash, and wm_gizmogrouptype_ghash_free_cb().
Referenced by WM_exit_ex().
| void wm_gizmogrouptype_init | ( | ) |
Called on initialize WM_init().
Definition at line 174 of file wm_gizmo_group_type.cc.
References BLI_ghash_str_new_ex(), and global_gizmogrouptype_hash.
Referenced by WM_init().
| ListBase * wm_gizmomap_groups_get | ( | wmGizmoMap * | gzmap | ) |
Definition at line 1180 of file wm_gizmo_map.cc.
References wmGizmoMap::groups.
| void wm_gizmomap_handler_context_gizmo | ( | bContext * | C, |
| wmEventHandler_Gizmo * | handler ) |
Definition at line 988 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 954 of file wm_gizmo_map.cc.
References wmEventHandler_Op::area, wmEventHandler_Op::context, CTX_wm_area_set(), CTX_wm_region_set(), CTX_wm_screen(), printf, and wmEventHandler_Op::region.
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 738 of file wm_gizmo_map.cc.
References ARRAY_SIZE, BLI_buffer_declare_static, BLI_buffer_free, BLI_BUFFER_NOP, copy_v2_v2_int(), CTX_wm_manager(), CTX_wm_region(), gizmo_find_intersected_3d(), GIZMOMAP_IS_REFRESH_CALLBACK, wmGizmoMap::groups, KM_CLICK_DRAG, LISTBASE_FOREACH, wmEvent::modifier, wmEvent::mval, 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 1051 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_set | ( | wmGizmoMap * | gzmap, |
| const bContext * | C, | ||
| wmGizmo * | gz, | ||
| int | part ) |
Definition at line 1004 of file wm_gizmo_map.cc.
References 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 1169 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 1056 of file wm_gizmo_map.cc.
References BLI_assert, 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, wmGizmo::interaction_data, wmGizmoType::invoke, wmGizmoGroupType::invoke_prepare, wmTabletData::is_motion_absolute, LISTBASE_FOREACH, MEM_SAFE_FREE, wmGizmoMap::modal, wmGizmoType::modal, OPERATOR_RUNNING_MODAL, wmGizmo::parent_gzgroup, wmGizmo::state, 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 205 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 1174 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 828 of file wm_gizmo_map.cc.
References BLI_assert, wmEventHandler_Op::context, CTX_wm_area(), CTX_wm_area_set(), CTX_wm_region(), CTX_wm_region_set(), wmGizmo::custom_modal, wmGizmoType::exit, ARegion::gizmo_map, wmGizmo::highlight_part, wmGizmoType::modal, wmEventHandler_Op::op, OPERATOR_RUNNING_MODAL, wmEventHandler_Op::region, 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 1269 of file wm_gizmo_map.cc.
References ListBase::first, gizmomaptypes, MEM_freeN(), wmGizmoMapType::next, 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 1290 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 176 of file wm_gizmo_type.cc.
References BLI_ghash_free(), global_gizmotype_hash, and wm_gizmotype_ghash_free_cb().
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 BLI_ghash_str_new_ex(), and global_gizmotype_hash.
Referenced by WM_init().