|
Blender V5.0
|
Go to the source code of this file.
Classes | |
| struct | WM_GizmoMatrixParams |
Definition at line 572 of file wm_gizmo.cc.
References params, and WM_gizmo_calc_matrix_final_params().
Referenced by arrow_draw_intern(), button2d_draw_intern(), dial_draw_intern(), gizmo_arrow_invoke(), gizmo_arrow_test_select(), gizmo_button2d_bounds(), gizmo_cage2d_draw_intern(), gizmo_cage3d_draw_intern(), gizmo_move_invoke(), gizmo_primitive_draw_intern(), gizmo_primitive_invoke(), and move3d_draw_intern().
Definition at line 559 of file wm_gizmo.cc.
References params, unit_m4(), and WM_gizmo_calc_matrix_final_params().
Referenced by button2d_draw_intern(), gizmo_button2d_bounds(), gizmo_cage2d_invoke(), and gizmo_calc_rect_view_scale().
| void WM_gizmo_calc_matrix_final_params | ( | const wmGizmo * | gz, |
| const WM_GizmoMatrixParams * | params, | ||
| float | r_mat[4][4] ) |
Definition at line 522 of file wm_gizmo.cc.
References copy_m4_m4(), wmGizmo::flag, float, wmGizmo::matrix_basis, wmGizmoType::matrix_basis_get, wmGizmo::matrix_offset, wmGizmo::matrix_space, mul_m4_m4m4(), mul_mat3_m4_fl(), params, wmGizmo::scale_final, wmGizmo::type, WM_GIZMO_DRAW_NO_SCALE, and WM_GIZMO_DRAW_OFFSET_SCALE.
Referenced by gizmo_axis_draw(), gizmo_calc_matrix_final_no_offset(), gizmo_window_project_2d(), gizmo_window_project_3d(), WM_gizmo_calc_matrix_final(), and WM_gizmo_calc_matrix_final_no_offset().
| int WM_gizmo_cmp_temp_fl | ( | const void * | gz_a_ptr, |
| const void * | gz_b_ptr ) |
Definition at line 138 of file wm_gizmo_group.cc.
References wmGizmo::f, and wmGizmo::temp.
| int WM_gizmo_cmp_temp_fl_reverse | ( | const void * | gz_a_ptr, |
| const void * | gz_b_ptr ) |
Definition at line 151 of file wm_gizmo_group.cc.
References wmGizmo::f, and wmGizmo::temp.
Referenced by blender::ed::transform::gizmo_mesh_extrude_draw_prepare(), and blender::ed::transform::WIDGETGROUP_xform_shear_draw_prepare().
| bool WM_gizmo_context_check_drawstep | ( | const bContext * | C, |
| eWM_GizmoFlagMapDrawStep | step ) |
Definition at line 728 of file wm_gizmo.cc.
References C, CTX_wm_manager(), ED_screen_animation_playing(), step, WM_GIZMOMAP_DRAWSTEP_2D, and WM_GIZMOMAP_DRAWSTEP_3D.
Referenced by edbm_preselect_or_active(), WM_gizmomap_draw(), and wm_gizmomap_highlight_find().
| void WM_gizmo_do_msg_notify_tag_refresh | ( | bContext * | C, |
| wmMsgSubscribeKey * | msg_key, | ||
| wmMsgSubscribeValue * | msg_val ) |
Definition at line 269 of file wm_gizmo_target_props.cc.
References ED_region_tag_redraw(), wmMsgSubscribeValue::owner, wmMsgSubscribeValue::user_data, and WM_gizmomap_tag_refresh().
Referenced by blender::ed::transform::gizmo2d_pivot_point_message_subscribe(), blender::ed::transform::gizmo_mesh_extrude_message_subscribe(), gizmo_mesh_spin_init_message_subscribe(), blender::ed::transform::gizmo_xform_message_subscribe(), WIDGETGROUP_camera_message_subscribe(), WIDGETGROUP_gizmo_message_subscribe(), and WM_gizmo_target_property_subscribe_all().
| void WM_gizmo_free | ( | wmGizmo * | gz | ) |
Definition at line 130 of file wm_gizmo.cc.
References BPY_DECREF_RNA_INVALIDATE(), wmGizmoProperty::custom_func, wmGizmoType::free, wmGizmoProperty::free_fn, MEM_freeN(), wmGizmo::op_data, wmGizmo::ptr, wmGizmoOpElem::ptr, wmGizmo::py_instance, wmGizmo::target_properties, wmGizmo::type, WM_gizmo_properties_free(), and WM_operator_properties_free().
Referenced by WM_gizmo_unlink(), and wm_gizmogroup_free().
Definition at line 327 of file wm_gizmo.cc.
References wmGizmo::color, and copy_v4_v4().
Definition at line 336 of file wm_gizmo.cc.
References wmGizmo::color_hi, and copy_v4_v4().
| bool WM_gizmo_group_is_modal | ( | const wmGizmoGroup * | gzgroup | ) |
Definition at line 719 of file wm_gizmo.cc.
References wmGizmo::parent_gzgroup, wmGizmoGroup::parent_gzmap, and WM_gizmomap_get_modal().
Referenced by WIDGETGROUP_camera_refresh(), blender::ed::transform::WIDGETGROUP_gizmo_draw_prepare(), and blender::ed::transform::WIDGETGROUP_gizmo_refresh().
| void WM_gizmo_group_refresh | ( | const bContext * | C, |
| wmGizmoGroup * | gzgroup ) |
Definition at line 1254 of file wm_gizmo_group.cc.
References wmGizmoGroup::any, BLI_assert, BLI_rcti_isect_pt_v(), C, CTX_wm_region(), CTX_wm_window(), wmGizmoGroup::delay_refresh_for_tweak, wmWindow::event_queue_check_drag, wmWindow::eventstate, wmGizmoGroupType::flag, wmGizmoGroup::hide, wmGizmoGroup::init_flag, wmGizmo::parent_gzgroup, wmGizmoGroup::parent_gzmap, wmEvent::prev_press_xy, wmGizmoGroupType::refresh, ARegion::runtime, wmGizmoGroup::type, ARegion::winrct, WM_GIZMOGROUP_INIT_REFRESH, WM_GIZMOGROUPTYPE_DELAY_REFRESH_FOR_TWEAK, WM_gizmomap_drawstep_from_gizmo_group(), wm_gizmomap_highlight_get(), and WM_gizmomap_tag_refresh_drawstep().
Referenced by WM_gizmogroup_ensure_init(), and wm_gizmomap_highlight_find().
| void WM_gizmo_group_remove_by_tool | ( | bContext * | C, |
| Main * | bmain, | ||
| const wmGizmoGroupType * | gzgt, | ||
| const bToolRef * | tref ) |
Definition at line 267 of file wm_gizmo_group.cc.
References BLI_assert, C, ED_region_tag_redraw_editor_overlays(), ListBase::first, wmGizmoMap::groups, wmGizmoGroupType::gzmap_params, LISTBASE_FOREACH, wmGizmoGroup::next, wmGizmoGroup::parent_gzmap, Main::screens, wmGizmoGroup::type, wmGizmoMap::type, wm_gizmogroup_free(), and WM_gizmomaptype_find().
Referenced by toolsystem_unlink_ref().
| void WM_gizmo_group_tag_remove | ( | wmGizmoGroup * | gzgroup | ) |
Definition at line 121 of file wm_gizmo_group.cc.
References BLI_assert, wmGizmoGroup::parent_gzmap, wmGizmoGroup::tag_remove, wmGizmoGroup::type, wmGizmoGroupType::users, and WM_gizmoconfig_update_tag_group_remove().
Referenced by WM_gizmo_group_unlink_delayed_ptr_from_space(), and WM_gizmomaptype_group_init_runtime_with_region().
| void WM_gizmo_group_type_add | ( | blender::StringRef | idname | ) |
Definition at line 1130 of file wm_gizmo_group.cc.
References BLI_assert, WM_gizmo_group_type_add_ptr(), and WM_gizmogrouptype_find().
| void WM_gizmo_group_type_add_ptr | ( | wmGizmoGroupType * | gzgt | ) |
Definition at line 1125 of file wm_gizmo_group.cc.
References wmGizmoGroupType::gzmap_params, WM_gizmo_group_type_add_ptr_ex(), and WM_gizmomaptype_ensure().
Referenced by WM_gizmo_group_type_add().
| void WM_gizmo_group_type_add_ptr_ex | ( | wmGizmoGroupType * | gzgt, |
| wmGizmoMapType * | gzmap_type ) |
Definition at line 1119 of file wm_gizmo_group.cc.
References WM_gizmoconfig_update_tag_group_type_init(), and WM_gizmomaptype_group_link_ptr().
Referenced by WM_gizmo_group_type_add_ptr(), WM_gizmo_group_type_ensure_ptr_ex(), and WM_gizmo_group_type_reinit_ptr_ex().
| bool WM_gizmo_group_type_ensure | ( | blender::StringRef | idname | ) |
Definition at line 1151 of file wm_gizmo_group.cc.
References BLI_assert, WM_gizmo_group_type_ensure_ptr(), and WM_gizmogrouptype_find().
Referenced by mesh_bisect_modal(), and view3d_interactive_add_invoke().
| bool WM_gizmo_group_type_ensure_ptr | ( | wmGizmoGroupType * | gzgt | ) |
Definition at line 1146 of file wm_gizmo_group.cc.
References wmGizmoGroupType::gzmap_params, WM_gizmo_group_type_ensure_ptr_ex(), and WM_gizmomaptype_ensure().
Referenced by add_primitive_cube_gizmo_invoke(), edbm_spin_invoke(), toolsystem_ref_link(), and WM_gizmo_group_type_ensure().
| bool WM_gizmo_group_type_ensure_ptr_ex | ( | wmGizmoGroupType * | gzgt, |
| wmGizmoMapType * | gzmap_type ) |
Definition at line 1137 of file wm_gizmo_group.cc.
References WM_gizmo_group_type_add_ptr_ex(), and WM_gizmomaptype_group_find_ptr().
Referenced by WM_gizmo_group_type_ensure_ptr(), and wm_handler_operator_call().
| bool WM_gizmo_group_type_free | ( | blender::StringRef | idname | ) |
Definition at line 150 of file wm_gizmo_group_type.cc.
References get_gizmo_group_type_map(), and WM_gizmo_group_type_free_ptr().
| void WM_gizmo_group_type_free_ptr | ( | wmGizmoGroupType * | gzgt | ) |
Definition at line 139 of file wm_gizmo_group_type.cc.
References BLI_assert, get_gizmo_group_type_map(), gizmogrouptype_free(), wmGizmoGroupType::idname, and WM_gizmogrouptype_find().
Referenced by WM_gizmo_group_type_free().
| bool WM_gizmo_group_type_poll | ( | const bContext * | C, |
| const wmGizmoGroupType * | gzgt ) |
Definition at line 1240 of file wm_gizmo_group.cc.
References BKE_workspace_owner_id_check(), C, CTX_wm_workspace(), wmGizmoGroupType::owner_id, and wmGizmoGroupType::poll.
Referenced by gizmo_tweak_invoke(), gizmomap_prepare_drawing(), WM_gizmomap_gizmo_hash_new(), wm_gizmomap_highlight_find(), WM_gizmomap_message_subscribe(), and wm_region_test_gizmo_do_draw().
| void WM_gizmo_group_type_reinit | ( | Main * | bmain, |
| blender::StringRef | idname ) |
Definition at line 1191 of file wm_gizmo_group.cc.
References BLI_assert, WM_gizmo_group_type_reinit_ptr(), and WM_gizmogrouptype_find().
| void WM_gizmo_group_type_reinit_ptr | ( | Main * | bmain, |
| wmGizmoGroupType * | gzgt ) |
Definition at line 1186 of file wm_gizmo_group.cc.
References wmGizmoGroupType::gzmap_params, WM_gizmo_group_type_reinit_ptr_ex(), and WM_gizmomaptype_ensure().
Referenced by add_primitive_cube_gizmo_invoke(), edbm_spin_invoke(), and WM_gizmo_group_type_reinit().
| void WM_gizmo_group_type_reinit_ptr_ex | ( | Main * | bmain, |
| wmGizmoGroupType * | gzgt, | ||
| wmGizmoMapType * | gzmap_type ) |
Has the result of unlinking and linking (re-initializes gizmo's).
Definition at line 1176 of file wm_gizmo_group.cc.
References BLI_assert, UNUSED_VARS_NDEBUG, WM_gizmo_group_type_add_ptr_ex(), WM_gizmomaptype_group_find_ptr(), and WM_gizmomaptype_group_unlink().
Referenced by WM_gizmo_group_type_reinit_ptr().
| void WM_gizmo_group_type_remove | ( | Main * | bmain, |
| blender::StringRef | idname ) |
Definition at line 1169 of file wm_gizmo_group.cc.
References BLI_assert, WM_gizmo_group_type_remove_ptr(), and WM_gizmogrouptype_find().
| void WM_gizmo_group_type_remove_ptr | ( | Main * | bmain, |
| wmGizmoGroupType * | gzgt ) |
Definition at line 1164 of file wm_gizmo_group.cc.
References wmGizmoGroupType::gzmap_params, WM_gizmo_group_type_remove_ptr_ex(), and WM_gizmomaptype_ensure().
Referenced by WM_gizmo_group_type_remove().
| void WM_gizmo_group_type_remove_ptr_ex | ( | Main * | bmain, |
| wmGizmoGroupType * | gzgt, | ||
| wmGizmoMapType * | gzmap_type ) |
Call WM_gizmo_group_type_free_ptr after to remove & free.
Definition at line 1158 of file wm_gizmo_group.cc.
References WM_gizmomaptype_group_unlink().
Referenced by WM_gizmo_group_type_remove_ptr().
| void WM_gizmo_group_type_unlink_delayed | ( | blender::StringRef | idname | ) |
Definition at line 1211 of file wm_gizmo_group.cc.
References BLI_assert, WM_gizmo_group_type_unlink_delayed_ptr(), and WM_gizmogrouptype_find().
| void WM_gizmo_group_type_unlink_delayed_ptr | ( | wmGizmoGroupType * | gzgt | ) |
Definition at line 1205 of file wm_gizmo_group.cc.
References wmGizmoGroupType::gzmap_params, WM_gizmo_group_type_unlink_delayed_ptr_ex(), and WM_gizmomaptype_ensure().
Referenced by ED_gizmo_poll_or_unlink_delayed_from_operator(), ED_gizmo_poll_or_unlink_delayed_from_tool_ex(), and WM_gizmo_group_type_unlink_delayed().
| void WM_gizmo_group_type_unlink_delayed_ptr_ex | ( | wmGizmoGroupType * | gzgt, |
| wmGizmoMapType * | gzmap_type ) |
Definition at line 1200 of file wm_gizmo_group.cc.
References WM_gizmoconfig_update_tag_group_type_remove().
Referenced by WM_gizmo_group_type_unlink_delayed_ptr().
| void WM_gizmo_group_unlink_delayed_ptr_from_space | ( | wmGizmoGroupType * | gzgt, |
| wmGizmoMapType * | gzmap_type, | ||
| ScrArea * | area ) |
Definition at line 1218 of file wm_gizmo_group.cc.
References wmGizmoMap::groups, LISTBASE_FOREACH, ScrArea::regionbase, wmGizmoMap::type, and WM_gizmo_group_tag_remove().
Referenced by ED_gizmo_poll_or_unlink_delayed_from_tool_ex().
| bool WM_gizmo_highlight_set | ( | wmGizmoMap * | gzmap, |
| wmGizmo * | gz ) |
Definition at line 405 of file wm_gizmo.cc.
References wmGizmo::highlight_part, and wm_gizmomap_highlight_set().
Referenced by ED_screen_set_active_region(), blender::ed::transform::transform_gizmo_3d_model_from_constraint_and_mode_set(), view3d_ruler_add_invoke(), and WM_gizmo_modal_set_from_setup().
| wmKeyMap * WM_gizmo_keymap_generic | ( | wmWindowManager * | wm | ) |
Definition at line 888 of file wm_gizmo_group.cc.
References wmWindowManager::runtime, and WM_gizmo_keymap_generic_with_keyconfig().
| wmKeyMap * WM_gizmo_keymap_generic_drag | ( | wmWindowManager * | wm | ) |
Definition at line 908 of file wm_gizmo_group.cc.
References wmWindowManager::runtime, and WM_gizmo_keymap_generic_drag_with_keyconfig().
| wmKeyMap * WM_gizmo_keymap_generic_drag_with_keyconfig | ( | wmKeyConfig * | kc | ) |
Definition at line 903 of file wm_gizmo_group.cc.
References RGN_TYPE_WINDOW, SPACE_EMPTY, and WM_keymap_ensure().
Referenced by WM_gizmo_keymap_generic_drag(), and WM_gizmogroup_setup_keymap_generic_drag().
| wmKeyMap * WM_gizmo_keymap_generic_maybe_drag | ( | wmWindowManager * | wm | ) |
Definition at line 928 of file wm_gizmo_group.cc.
References wmWindowManager::runtime, and WM_gizmo_keymap_generic_maybe_drag_with_keyconfig().
| wmKeyMap * WM_gizmo_keymap_generic_maybe_drag_with_keyconfig | ( | wmKeyConfig * | kc | ) |
Drag or press depending on preference.
Definition at line 923 of file wm_gizmo_group.cc.
References RGN_TYPE_WINDOW, SPACE_EMPTY, and WM_keymap_ensure().
Referenced by WM_gizmo_keymap_generic_maybe_drag(), and WM_gizmogroup_setup_keymap_generic_maybe_drag().
| wmKeyMap * WM_gizmo_keymap_generic_press_drag | ( | wmWindowManager * | wm | ) |
Definition at line 918 of file wm_gizmo_group.cc.
References wmWindowManager::runtime, and WM_gizmo_keymap_generic_press_drag_with_keyconfig().
Referenced by WIDGETGROUP_navigate_setup().
| wmKeyMap * WM_gizmo_keymap_generic_press_drag_with_keyconfig | ( | wmKeyConfig * | kc | ) |
Definition at line 913 of file wm_gizmo_group.cc.
References RGN_TYPE_WINDOW, SPACE_EMPTY, and WM_keymap_ensure().
Referenced by WM_gizmo_keymap_generic_press_drag().
| wmKeyMap * WM_gizmo_keymap_generic_select | ( | wmWindowManager * | wm | ) |
Definition at line 898 of file wm_gizmo_group.cc.
References wmWindowManager::runtime, and WM_gizmo_keymap_generic_select_with_keyconfig().
| wmKeyMap * WM_gizmo_keymap_generic_select_with_keyconfig | ( | wmKeyConfig * | kc | ) |
Definition at line 893 of file wm_gizmo_group.cc.
References RGN_TYPE_WINDOW, SPACE_EMPTY, and WM_keymap_ensure().
Referenced by WM_gizmo_keymap_generic_select().
| wmKeyMap * WM_gizmo_keymap_generic_with_keyconfig | ( | wmKeyConfig * | kc | ) |
Definition at line 883 of file wm_gizmo_group.cc.
References RGN_TYPE_WINDOW, SPACE_EMPTY, and WM_keymap_ensure().
Referenced by WM_gizmo_keymap_generic(), and WM_gizmogroup_setup_keymap_generic().
| void WM_gizmo_modal_set_from_setup | ( | wmGizmoMap * | gzmap, |
| bContext * | C, | ||
| wmGizmo * | gz, | ||
| int | part_index, | ||
| const wmEvent * | event ) |
Special function to run from setup so gizmos start out interactive.
We could do this when linking them, but this complicates things since the window update code needs to run first.
Definition at line 419 of file wm_gizmo.cc.
References C, wmGizmo::highlight_part, blender::wm::InvokeDefault, WM_gizmo_highlight_set(), wm_gizmomap_modal_set(), and WM_operator_name_call().
Referenced by gizmo_mesh_placement_modal_from_setup(), and gizmo_mesh_spin_redo_modal_from_setup().
| void WM_gizmo_modal_set_while_modal | ( | wmGizmoMap * | gzmap, |
| bContext * | C, | ||
| wmGizmo * | gz, | ||
| const wmEvent * | event ) |
Replaces the current gizmo modal. The substitute gizmo start out interactive. It is similar to WM_gizmo_modal_set_from_setup but without operator initialization.
Definition at line 434 of file wm_gizmo.cc.
References C, wmGizmoMap::gzmap_context, wmGizmo::highlight_part, wmGizmoMap::modal, wm_gizmo_calculate_scale(), and wm_gizmomap_modal_set().
Referenced by blender::ed::transform::transform_gizmo_3d_model_from_constraint_and_mode_set(), and blender::ed::transform::transform_mode_snap_source_init().
| wmGizmo * WM_gizmo_new | ( | blender::StringRef | idname, |
| wmGizmoGroup * | gzgroup, | ||
| PointerRNA * | properties ) |
| idname | Must be a valid gizmo type name, if you need to check it exists use WM_gizmo_new_ptr because callers of this function don't NULL check the return value. |
Definition at line 98 of file wm_gizmo.cc.
References WM_gizmo_new_ptr(), and WM_gizmotype_find().
Referenced by blender::ed::view3d::geometry_nodes_gizmos::DialGizmo::create_gizmos(), blender::ed::view3d::geometry_nodes_gizmos::LinearGizmo::create_gizmos(), blender::ed::view3d::geometry_nodes_gizmos::TransformGizmos::create_gizmos(), tool_generic_create_gizmo(), WIDGETGROUP_camera_view_setup(), WIDGETGROUP_empty_image_setup(), WIDGETGROUP_forcefield_setup(), WIDGETGROUP_light_area_setup(), WIDGETGROUP_light_point_setup(), WIDGETGROUP_light_spot_setup(), WIDGETGROUP_light_target_setup(), WIDGETGROUP_navigate_setup(), WIDGETGROUP_navigate_setup(), blender::ed::space_node::WIDGETGROUP_node_box_mask_setup(), blender::ed::space_node::WIDGETGROUP_node_crop_setup(), blender::ed::space_node::WIDGETGROUP_node_ellipse_mask_setup(), blender::ed::space_node::WIDGETGROUP_node_glare_setup(), blender::ed::space_node::WIDGETGROUP_node_split_setup(), and blender::ed::space_node::WIDGETGROUP_node_transform_setup().
| wmGizmo * WM_gizmo_new_ptr | ( | const wmGizmoType * | gzt, |
| wmGizmoGroup * | gzgroup, | ||
| PointerRNA * | properties ) |
Definition at line 85 of file wm_gizmo.cc.
References wmGizmoType::setup, wmGizmo::type, wm_gizmo_create(), and wm_gizmo_register().
Referenced by gizmo_mesh_bisect_setup(), blender::ed::transform::gizmo_mesh_extrude_setup(), gizmo_mesh_placement_setup(), gizmo_mesh_spin_init_setup(), gizmo_mesh_spin_redo_setup(), blender::ed::transform::gizmogroup2d_init(), blender::ed::transform::gizmogroup2d_resize_init(), blender::ed::transform::gizmogroup2d_rotate_init(), ruler_item_add(), WIDGETGROUP_armature_spline_setup(), WIDGETGROUP_camera_setup(), WIDGETGROUP_mesh_preselect_edgering_setup(), WIDGETGROUP_mesh_preselect_elem_setup(), blender::ed::space_node::WIDGETGROUP_node_corner_pin_setup(), WIDGETGROUP_ruler_setup(), blender::ed::transform::WIDGETGROUP_xform_cage_setup(), blender::ed::transform::WIDGETGROUP_xform_shear_setup(), and WM_gizmo_new().
| wmGizmoOpElem * WM_gizmo_operator_get | ( | wmGizmo * | gz, |
| int | part_index ) |
Definition at line 195 of file wm_gizmo.cc.
References wmGizmo::op_data.
Referenced by blender::ed::transform::gizmo2d_resize_invoke_prepare(), blender::ed::transform::gizmo2d_xform_invoke_prepare(), blender::ed::transform::gizmo_mesh_extrude_invoke_prepare(), blender::ed::transform::gizmo_mesh_extrude_setup(), gizmo_tweak_start_and_finish(), ui_tooltip_data_from_gizmo(), blender::ed::transform::WIDGETGROUP_gizmo_invoke_prepare(), WIDGETGROUP_navigate_setup(), WIDGETGROUP_navigate_setup(), blender::ed::transform::WIDGETGROUP_xform_cage_refresh(), blender::ed::transform::WIDGETGROUP_xform_shear_refresh(), blender::ed::transform::WIDGETGROUP_xform_shear_setup(), wm_gizmomap_modal_set(), and wm_gizmomaps_handled_modal_update().
| wmOperatorStatus WM_gizmo_operator_invoke | ( | bContext * | C, |
| wmGizmo * | gz, | ||
| wmGizmoOpElem * | gzop, | ||
| const wmEvent * | event ) |
Definition at line 227 of file wm_gizmo.cc.
References C, blender::bke::idprop::create_group(), PointerRNA::data, wmGizmo::flag, IDP_MergeGroup(), blender::wm::InvokeDefault, wmGizmoOpElem::ptr, wmGizmoOpElem::type, WM_GIZMO_OPERATOR_TOOL_INIT, WM_operator_name_call_ptr(), WM_toolsystem_ref_from_context(), and WM_toolsystem_ref_properties_get_from_operator.
Referenced by gizmo_tweak_start_and_finish(), and wm_gizmomap_modal_set().
| PointerRNA * WM_gizmo_operator_set | ( | wmGizmo * | gz, |
| int | part_index, | ||
| wmOperatorType * | ot, | ||
| IDProperty * | properties ) |
Definition at line 203 of file wm_gizmo.cc.
References BLI_assert, PointerRNA::data, wmGizmo::op_data, ot, wmGizmoOpElem::ptr, Vector< T, InlineBufferCapacity, Allocator >::resize(), Vector< T, InlineBufferCapacity, Allocator >::size(), wmGizmoOpElem::type, WM_operator_properties_create_ptr(), and WM_operator_properties_free().
Referenced by blender::ed::transform::gizmo2d_resize_setup(), blender::ed::transform::gizmo2d_rotate_setup(), blender::ed::transform::gizmo2d_xform_setup(), blender::ed::transform::gizmo_mesh_extrude_setup(), gizmo_mesh_spin_init_refresh_axis_orientation(), blender::ed::transform::gizmogroup_init_properties_from_twtype(), WIDGETGROUP_light_target_setup(), WIDGETGROUP_navigate_setup(), WIDGETGROUP_navigate_setup(), WIDGETGROUP_ruler_setup(), blender::ed::transform::WIDGETGROUP_xform_cage_setup(), and blender::ed::transform::WIDGETGROUP_xform_shear_setup().
| void WM_gizmo_properties_alloc | ( | PointerRNA ** | ptr, |
| IDProperty ** | properties, | ||
| blender::StringRef | gtstring ) |
Similar to WM_gizmo_properties_create except its uses ID properties used for key-maps and macros.
Definition at line 606 of file wm_gizmo.cc.
References blender::bke::idprop::create_group(), ptr, and WM_gizmo_properties_create().
| void WM_gizmo_properties_clear | ( | PointerRNA * | ptr | ) |
Definition at line 694 of file wm_gizmo.cc.
References IDP_ClearProperty(), and ptr.
| void WM_gizmo_properties_create | ( | PointerRNA * | ptr, |
| blender::StringRef | gtstring ) |
Definition at line 594 of file wm_gizmo.cc.
References ptr, RNA_pointer_create_discrete(), WM_gizmo_properties_create_ptr(), and WM_gizmotype_find().
Referenced by WM_gizmo_properties_alloc().
| void WM_gizmo_properties_create_ptr | ( | PointerRNA * | ptr, |
| wmGizmoType * | gzt ) |
Definition at line 589 of file wm_gizmo.cc.
References ptr, RNA_pointer_create_discrete(), and wmGizmoType::srna.
Referenced by WM_gizmo_properties_create().
| bool WM_gizmo_properties_default | ( | PointerRNA * | ptr, |
| bool | do_update ) |
Set all props to their default.
| do_update | Only update un-initialized props. |
Definition at line 649 of file wm_gizmo.cc.
References PROP_POINTER, ptr, RNA_property_is_set(), RNA_property_pointer_get(), RNA_property_pointer_type(), RNA_property_reset(), RNA_property_type(), RNA_STRUCT_BEGIN, RNA_STRUCT_END, and WM_gizmo_properties_default().
Referenced by WM_gizmo_properties_default().
| void WM_gizmo_properties_free | ( | PointerRNA * | ptr | ) |
Definition at line 703 of file wm_gizmo.cc.
References IDP_FreeProperty(), and ptr.
Referenced by WM_gizmo_free().
| void WM_gizmo_properties_reset | ( | wmGizmo * | gz | ) |
Remove all props without PROP_SKIP_SAVE.
Definition at line 676 of file wm_gizmo.cc.
References PointerRNA::data, PROP_SKIP_SAVE, wmGizmo::ptr, RNA_PROP_BEGIN, RNA_PROP_END, RNA_property_flag(), RNA_property_identifier(), RNA_struct_iterator_property(), RNA_struct_system_idprops_unset(), wmGizmoType::srna, and wmGizmo::type.
| void WM_gizmo_properties_sanitize | ( | PointerRNA * | ptr, |
| bool | no_context ) |
Definition at line 620 of file wm_gizmo.cc.
References PROP_ENUM, PROP_ENUM_NO_CONTEXT, PROP_POINTER, ptr, RNA_def_property_clear_flag(), RNA_def_property_flag(), RNA_property_pointer_get(), RNA_property_pointer_type(), RNA_property_type(), RNA_STRUCT_BEGIN, RNA_STRUCT_END, RNA_struct_is_a(), and WM_gizmo_properties_sanitize().
Referenced by wm_gizmo_create(), and WM_gizmo_properties_sanitize().
| bool WM_gizmo_select_set | ( | wmGizmoMap * | gzmap, |
| wmGizmo * | gz, | ||
| bool | select ) |
Definition at line 400 of file wm_gizmo.cc.
References select, and wm_gizmo_select_set_ex().
Referenced by gizmo_select_invoke(), wm_gizmo_select_and_highlight(), and wm_gizmomap_select_all_intern().
| bool WM_gizmo_select_unlink | ( | wmGizmoMap * | gzmap, |
| wmGizmo * | gz ) |
Remove from selection array without running callbacks.
Definition at line 395 of file wm_gizmo.cc.
References wm_gizmo_select_set_ex().
Referenced by WM_gizmo_unlink(), and wm_gizmogroup_free().
Definition at line 331 of file wm_gizmo.cc.
References wmGizmo::color, and copy_v4_v4().
Referenced by blender::ed::transform::gizmo2d_resize_setup(), blender::ed::transform::gizmo2d_rotate_setup(), blender::ed::transform::gizmo2d_xform_setup(), gizmo_mesh_spin_init_setup(), blender::ed::transform::WIDGETGROUP_gizmo_draw_prepare(), and WIDGETGROUP_ruler_setup().
Definition at line 340 of file wm_gizmo.cc.
References wmGizmo::color_hi, and copy_v4_v4().
Referenced by blender::ed::transform::gizmo2d_resize_setup(), blender::ed::transform::gizmo2d_rotate_setup(), blender::ed::transform::gizmo2d_xform_setup(), gizmo_mesh_spin_init_setup(), and blender::ed::transform::WIDGETGROUP_gizmo_draw_prepare().
| void WM_gizmo_set_flag | ( | wmGizmo * | gz, |
| int | flag, | ||
| bool | enable ) |
Definition at line 307 of file wm_gizmo.cc.
References flag, and wmGizmo::flag.
Referenced by blender::ed::transform::gizmo_3d_draw_invoke(), blender::ed::transform::gizmo_3d_setup_draw_default(), blender::ed::transform::gizmo_3d_setup_draw_from_twtype(), blender::ed::transform::gizmo_3d_setup_draw_modal(), gizmo_mesh_bisect_setup(), blender::ed::transform::gizmo_mesh_extrude_refresh(), gizmo_mesh_placement_setup(), gizmo_mesh_spin_init_draw_prepare(), gizmo_mesh_spin_init_refresh(), gizmo_mesh_spin_init_setup(), gizmo_mesh_spin_redo_setup(), blender::ed::transform::gizmogroup_hide_all(), blender::ed::view3d::geometry_nodes_gizmos::NodeGizmos::hide_all(), ruler_item_add(), ruler_state_set(), blender::ed::view3d::geometry_nodes_gizmos::NodeGizmos::show_all(), blender::ed::view3d::geometry_nodes_gizmos::TransformGizmos::update_rotate_style(), blender::ed::view3d::geometry_nodes_gizmos::DialGizmo::update_style(), blender::ed::view3d::geometry_nodes_gizmos::DialGizmo::update_transform(), blender::ed::view3d::geometry_nodes_gizmos::TransformGizmos::update_translate_style(), blender::ed::view3d::geometry_nodes_gizmos::TransformGizmos::update_visibility(), WIDGETGROUP_armature_spline_setup(), WIDGETGROUP_camera_refresh(), WIDGETGROUP_camera_setup(), WIDGETGROUP_camera_view_refresh(), WIDGETGROUP_empty_image_setup(), WIDGETGROUP_forcefield_refresh(), WIDGETGROUP_forcefield_setup(), blender::ed::view3d::geometry_nodes_gizmos::WIDGETGROUP_geometry_nodes_refresh(), blender::ed::transform::WIDGETGROUP_gizmo_draw_prepare(), WIDGETGROUP_light_area_setup(), WIDGETGROUP_light_point_setup(), WIDGETGROUP_light_spot_setup(), WIDGETGROUP_light_target_draw_prepare(), WIDGETGROUP_navigate_draw_prepare(), WIDGETGROUP_navigate_draw_prepare(), blender::ed::space_node::WIDGETGROUP_node_corner_pin_refresh(), blender::ed::space_node::WIDGETGROUP_node_crop_refresh(), blender::ed::space_node::WIDGETGROUP_node_glare_refresh(), blender::ed::space_node::WIDGETGROUP_node_mask_refresh(), blender::ed::space_node::WIDGETGROUP_node_split_refresh(), blender::ed::space_node::WIDGETGROUP_node_transform_refresh(), WIDGETGROUP_tool_generic_refresh(), blender::ed::transform::WIDGETGROUP_xform_cage_refresh(), blender::ed::transform::WIDGETGROUP_xform_shear_refresh(), and blender::ed::transform::WIDGETGROUP_xform_shear_setup().
| void WM_gizmo_set_fn_custom_modal | ( | wmGizmo * | gz, |
| wmGizmoFnModal | fn ) |
Definition at line 351 of file wm_gizmo.cc.
References wmGizmo::custom_modal.
Referenced by blender::ed::transform::gizmo2d_resize_setup(), blender::ed::transform::gizmo2d_rotate_setup(), blender::ed::transform::gizmo2d_xform_setup(), and blender::ed::transform::gizmogroup_init_properties_from_twtype().
Definition at line 322 of file wm_gizmo.cc.
References wmGizmo::line_width.
Referenced by blender::ed::transform::gizmo2d_resize_setup(), blender::ed::transform::gizmo2d_rotate_setup(), blender::ed::transform::gizmo2d_xform_setup(), blender::ed::transform::gizmo_3d_setup_draw_default(), gizmo_mesh_spin_init_setup(), gizmo_mesh_spin_redo_setup(), tool_generic_create_gizmo(), blender::ed::view3d::geometry_nodes_gizmos::TransformGizmos::update_rotate_style(), blender::ed::view3d::geometry_nodes_gizmos::TransformGizmos::update_scale_style(), blender::ed::view3d::geometry_nodes_gizmos::DialGizmo::update_style(), blender::ed::view3d::geometry_nodes_gizmos::LinearGizmo::update_style(), and blender::ed::view3d::geometry_nodes_gizmos::TransformGizmos::update_translate_style().
Definition at line 287 of file wm_gizmo.cc.
References copy_v3_v3(), and wmGizmo::matrix_basis.
Referenced by blender::ed::transform::gizmo2d_modal(), blender::ed::transform::gizmo2d_resize_draw_prepare(), blender::ed::transform::gizmo2d_rotate_draw_prepare(), blender::ed::transform::gizmo2d_xform_draw_prepare(), gizmo_mesh_bisect_update_from_op(), blender::ed::transform::gizmo_mesh_extrude_refresh(), gizmo_mesh_spin_init_refresh(), gizmo_mesh_spin_redo_update_from_op(), blender::ed::transform::gizmo_modal(), blender::ed::transform::gizmo_refresh_from_matrix(), WIDGETGROUP_camera_refresh(), WIDGETGROUP_forcefield_refresh(), WIDGETGROUP_light_point_draw_prepare(), WIDGETGROUP_light_spot_draw_prepare(), WIDGETGROUP_light_spot_refresh(), blender::ed::space_node::WIDGETGROUP_node_transform_refresh(), blender::ed::transform::WIDGETGROUP_xform_shear_draw_prepare(), and blender::ed::transform::WIDGETGROUP_xform_shear_refresh().
Definition at line 302 of file wm_gizmo.cc.
References copy_v3_v3(), and wmGizmo::matrix_offset.
Referenced by blender::ed::transform::gizmo2d_xform_draw_prepare(), blender::ed::transform::gizmo2d_xform_setup(), blender::ed::transform::gizmo_3d_setup_draw_modal(), WIDGETGROUP_camera_refresh(), and WIDGETGROUP_forcefield_refresh().
| void WM_gizmo_set_matrix_offset_rotation_from_yz_axis | ( | wmGizmo * | gz, |
| const float | y_axis[3], | ||
| const float | z_axis[3] ) |
wmGizmo.matrix_offset utility, set the orientation by its Y/Z axis.
Definition at line 296 of file wm_gizmo.cc.
References wmGizmo::matrix_offset, and wm_gizmo_set_matrix_rotation_from_yz_axis__internal().
wmGizmo.matrix_offset utility, set the orientation by its Z axis.
Definition at line 292 of file wm_gizmo.cc.
References wmGizmo::matrix_offset, and wm_gizmo_set_matrix_rotation_from_z_axis__internal().
| void WM_gizmo_set_matrix_rotation_from_yz_axis | ( | wmGizmo * | gz, |
| const float | y_axis[3], | ||
| const float | z_axis[3] ) |
#wmGizmo.matrix utility, set the orientation by its Y/Z axis.
Definition at line 281 of file wm_gizmo.cc.
References wmGizmo::matrix_basis, and wm_gizmo_set_matrix_rotation_from_yz_axis__internal().
Referenced by gizmo_mesh_spin_init_refresh_axis_orientation(), gizmo_mesh_spin_redo_draw_prepare(), gizmo_mesh_spin_redo_update_from_op(), WIDGETGROUP_camera_refresh(), blender::ed::transform::WIDGETGROUP_xform_shear_draw_prepare(), and blender::ed::transform::WIDGETGROUP_xform_shear_refresh().
#wmGizmo.matrix utility, set the orientation by its Z axis.
Definition at line 277 of file wm_gizmo.cc.
References wmGizmo::matrix_basis, and wm_gizmo_set_matrix_rotation_from_z_axis__internal().
Referenced by blender::ed::transform::gizmo2d_resize_draw_prepare(), blender::ed::transform::gizmo2d_xform_setup(), blender::ed::transform::gizmo_3d_draw_invoke(), gizmo_mesh_bisect_update_from_op(), gizmo_mesh_spin_init_refresh_axis_orientation(), gizmo_mesh_spin_redo_draw_prepare(), gizmo_mesh_spin_redo_update_from_op(), WIDGETGROUP_forcefield_refresh(), blender::ed::transform::WIDGETGROUP_gizmo_draw_prepare(), WIDGETGROUP_light_point_draw_prepare(), WIDGETGROUP_light_spot_draw_prepare(), and WIDGETGROUP_light_spot_refresh().
Definition at line 317 of file wm_gizmo.cc.
References wmGizmo::scale_basis.
Referenced by blender::ed::transform::gizmo2d_resize_setup(), blender::ed::transform::gizmo2d_rotate_setup(), blender::ed::transform::gizmo2d_xform_setup(), blender::ed::transform::gizmo_3d_setup_draw_default(), gizmo_mesh_bisect_update_from_op(), blender::ed::transform::gizmo_mesh_extrude_setup(), gizmo_mesh_spin_init_setup(), gizmo_mesh_spin_redo_setup(), blender::ed::transform::gizmo_refresh_from_matrix(), WIDGETGROUP_camera_refresh(), and WIDGETGROUP_camera_view_setup().
| void WM_gizmo_target_property_anim_autokey | ( | bContext * | C, |
| const wmGizmo * | gz, | ||
| wmGizmoProperty * | gz_prop ) |
Auto-key function if auto-key is enabled.
Definition at line 307 of file wm_gizmo_target_props.cc.
References ANIM_deselect_keys_in_animation_editors(), blender::animrig::autokeyframe_property(), C, RenderData::cfra, CTX_data_scene(), wmGizmoProperty::custom_func, float, wmGizmoProperty::foreach_rna_prop_fn, wmGizmoProperty::index, wmGizmoProperty::prop, ptr, wmGizmoProperty::ptr, and Scene::r.
Referenced by gizmo_arrow_exit(), gizmo_cage2d_exit(), gizmo_dial_exit(), and gizmo_move_exit().
| int WM_gizmo_target_property_array_length | ( | const wmGizmo * | gz, |
| wmGizmoProperty * | gz_prop ) |
Definition at line 223 of file wm_gizmo_target_props.cc.
References wmGizmoPropertyType::array_length, wmGizmoProperty::custom_func, wmGizmoProperty::prop, wmGizmoProperty::ptr, RNA_property_array_length(), wmGizmoProperty::type, and wmGizmoProperty::value_get_fn.
Referenced by bpy_gizmo_target_get_value(), bpy_gizmo_target_set_value(), gizmo_cage2d_property_update(), and gizmo_cage3d_property_update().
| void WM_gizmo_target_property_clear_rna | ( | wmGizmo * | gz, |
| const char * | idname ) |
Definition at line 116 of file wm_gizmo_target_props.cc.
References wmGizmo::type, WM_gizmo_target_property_clear_rna_ptr(), and WM_gizmotype_target_property_find().
| void WM_gizmo_target_property_clear_rna_ptr | ( | wmGizmo * | gz, |
| const wmGizmoPropertyType * | gz_prop_type ) |
Definition at line 106 of file wm_gizmo_target_props.cc.
References BLI_assert, wmGizmoPropertyType::index_in_type, Vector< T, InlineBufferCapacity, Allocator >::is_empty(), wmGizmo::op_data, and wmGizmo::target_properties.
Referenced by WIDGETGROUP_camera_refresh(), and WM_gizmo_target_property_clear_rna().
| void WM_gizmo_target_property_def_func | ( | wmGizmo * | gz, |
| const char * | idname, | ||
| const wmGizmoPropertyFnParams * | params ) |
Definition at line 98 of file wm_gizmo_target_props.cc.
References params, wmGizmo::type, WM_gizmo_target_property_def_func_ptr(), and WM_gizmotype_target_property_find().
Referenced by gizmo_mesh_bisect_setup(), gizmo_mesh_placement_setup(), gizmo_mesh_spin_redo_setup(), blender::ed::view3d::geometry_nodes_gizmos::TransformGizmos::update_rotate_transform_and_target_property(), blender::ed::view3d::geometry_nodes_gizmos::TransformGizmos::update_scale_transform_and_target_property(), blender::ed::view3d::geometry_nodes_gizmos::DialGizmo::update_target_property(), blender::ed::view3d::geometry_nodes_gizmos::LinearGizmo::update_target_property(), blender::ed::view3d::geometry_nodes_gizmos::TransformGizmos::update_translate_transform_and_target_property(), WIDGETGROUP_armature_spline_refresh(), WIDGETGROUP_camera_view_refresh(), WIDGETGROUP_empty_image_refresh(), WIDGETGROUP_light_area_refresh(), WIDGETGROUP_light_point_setup(), WIDGETGROUP_light_spot_setup(), blender::ed::space_node::WIDGETGROUP_node_crop_refresh(), blender::ed::space_node::WIDGETGROUP_node_mask_refresh(), blender::ed::space_node::WIDGETGROUP_node_split_refresh(), and blender::ed::space_node::WIDGETGROUP_node_transform_refresh().
| void WM_gizmo_target_property_def_func_ptr | ( | wmGizmo * | gz, |
| const wmGizmoPropertyType * | gz_prop_type, | ||
| const wmGizmoPropertyFnParams * | params ) |
Definition at line 75 of file wm_gizmo_target_props.cc.
References BLI_assert, wmGizmoProperty::custom_func, wmGizmoProperty::foreach_rna_prop_fn, wmGizmoProperty::free_fn, wmGizmoPropertyType::index_in_type, Vector< T, InlineBufferCapacity, Allocator >::is_empty(), wmGizmo::op_data, params, wmGizmoType::property_update, wmGizmoProperty::range_get_fn, wmGizmo::target_properties, wmGizmo::type, wmGizmoProperty::type, wmGizmoProperty::user_data, wmGizmoProperty::value_get_fn, and wmGizmoProperty::value_set_fn.
Referenced by bpy_gizmo_target_set_handler(), and WM_gizmo_target_property_def_func().
| void WM_gizmo_target_property_def_rna | ( | wmGizmo * | gz, |
| const char * | idname, | ||
| PointerRNA * | ptr, | ||
| const char * | propname, | ||
| int | index ) |
Definition at line 64 of file wm_gizmo_target_props.cc.
References ptr, RNA_struct_find_property(), RNA_struct_identifier(), RNA_warning, wmGizmo::type, WM_gizmo_target_property_def_rna_ptr(), and WM_gizmotype_target_property_find().
Referenced by WIDGETGROUP_camera_refresh(), WIDGETGROUP_forcefield_refresh(), WIDGETGROUP_light_spot_refresh(), blender::ed::space_node::WIDGETGROUP_node_corner_pin_refresh(), blender::ed::space_node::WIDGETGROUP_node_glare_refresh(), and blender::ed::space_node::WIDGETGROUP_node_transform_refresh().
| void WM_gizmo_target_property_def_rna_ptr | ( | wmGizmo * | gz, |
| const wmGizmoPropertyType * | gz_prop_type, | ||
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| int | index ) |
Definition at line 41 of file wm_gizmo_target_props.cc.
References BLI_assert, wmGizmoProperty::index, wmGizmoPropertyType::index_in_type, Vector< T, InlineBufferCapacity, Allocator >::is_empty(), wmGizmo::op_data, wmGizmoProperty::prop, wmGizmoType::property_update, ptr, wmGizmoProperty::ptr, wmGizmo::target_properties, wmGizmo::type, and wmGizmoProperty::type.
Referenced by WIDGETGROUP_camera_refresh(), and WM_gizmo_target_property_def_rna().
| wmGizmoProperty * WM_gizmo_target_property_find | ( | wmGizmo * | gz, |
| const char * | idname ) |
Definition at line 31 of file wm_gizmo_target_props.cc.
References BLI_findstringindex(), offsetof, wmGizmo::target_properties, wmGizmoType::target_property_defs, and wmGizmo::type.
Referenced by dial_draw_intern(), ED_gizmo_arrow3d_set_range_fac(), ED_gizmo_arrow3d_set_ui_range(), gizmo_arrow_exit(), gizmo_arrow_invoke(), gizmo_arrow_modal(), gizmo_cage2d_exit(), gizmo_cage2d_modal(), gizmo_cage3d_exit(), gizmo_cage3d_modal(), gizmo_dial_exit(), gizmo_dial_invoke(), gizmo_dial_modal(), gizmo_move_exit(), gizmo_move_invoke(), gizmo_move_modal(), and py_rna_gizmo_target_id_parse().
| float WM_gizmo_target_property_float_get | ( | const wmGizmo * | gz, |
| wmGizmoProperty * | gz_prop ) |
Definition at line 144 of file wm_gizmo_target_props.cc.
References wmGizmoPropertyType::array_length, BLI_assert, wmGizmoProperty::custom_func, wmGizmoProperty::index, wmGizmoProperty::prop, wmGizmoProperty::ptr, RNA_property_float_get(), RNA_property_float_get_index(), wmGizmoProperty::type, and wmGizmoProperty::value_get_fn.
Referenced by bpy_gizmo_target_get_value(), dial_draw_intern(), gizmo_arrow_exit(), gizmo_arrow_invoke(), gizmo_arrow_modal(), gizmo_dial_invoke(), and gizmo_property_data_update().
| void WM_gizmo_target_property_float_get_array | ( | const wmGizmo * | gz, |
| wmGizmoProperty * | gz_prop, | ||
| float * | value ) |
Definition at line 180 of file wm_gizmo_target_props.cc.
References wmGizmoProperty::custom_func, wmGizmoProperty::prop, wmGizmoProperty::ptr, RNA_property_float_get_array(), and wmGizmoProperty::value_get_fn.
Referenced by bpy_gizmo_target_get_value(), gizmo_cage2d_modal(), gizmo_cage2d_property_update(), gizmo_cage3d_modal(), gizmo_cage3d_property_update(), gizmo_move_invoke(), and gizmo_move_property_update().
| bool WM_gizmo_target_property_float_range_get | ( | const wmGizmo * | gz, |
| wmGizmoProperty * | gz_prop, | ||
| float | range[2] ) |
Definition at line 205 of file wm_gizmo_target_props.cc.
References wmGizmoProperty::custom_func, wmGizmoProperty::prop, wmGizmoProperty::ptr, wmGizmoProperty::range_get_fn, RNA_property_float_ui_range(), step, and wmGizmoProperty::value_get_fn.
Referenced by bpy_gizmo_target_get_range(), and gizmo_property_data_update().
| void WM_gizmo_target_property_float_set | ( | bContext * | C, |
| const wmGizmo * | gz, | ||
| wmGizmoProperty * | gz_prop, | ||
| float | value ) |
Definition at line 159 of file wm_gizmo_target_props.cc.
References wmGizmoPropertyType::array_length, BLI_assert, C, wmGizmoProperty::custom_func, wmGizmoProperty::index, wmGizmoProperty::prop, wmGizmoProperty::ptr, RNA_property_float_set(), RNA_property_float_set_index(), RNA_property_update(), wmGizmoProperty::type, and wmGizmoProperty::value_set_fn.
Referenced by bpy_gizmo_target_set_value(), gizmo_arrow_modal(), gizmo_dial_exit(), gizmo_dial_modal(), and gizmo_property_value_reset().
| void WM_gizmo_target_property_float_set_array | ( | bContext * | C, |
| const wmGizmo * | gz, | ||
| wmGizmoProperty * | gz_prop, | ||
| const float * | value ) |
Definition at line 191 of file wm_gizmo_target_props.cc.
References C, wmGizmoProperty::custom_func, wmGizmoProperty::prop, wmGizmoProperty::ptr, RNA_property_float_set_array(), RNA_property_update(), and wmGizmoProperty::value_set_fn.
Referenced by bpy_gizmo_target_set_value(), gizmo_cage2d_exit(), gizmo_cage2d_modal(), gizmo_cage3d_exit(), gizmo_cage3d_modal(), gizmo_move_exit(), and gizmo_move_modal().
| bool WM_gizmo_target_property_is_valid | ( | const wmGizmoProperty * | gz_prop | ) |
Definition at line 138 of file wm_gizmo_target_props.cc.
References wmGizmoProperty::custom_func, wmGizmoProperty::prop, wmGizmoProperty::value_get_fn, and wmGizmoProperty::value_set_fn.
Referenced by dial_draw_intern(), ED_gizmo_arrow3d_set_range_fac(), ED_gizmo_arrow3d_set_ui_range(), gizmo_arrow_exit(), gizmo_arrow_invoke(), gizmo_arrow_modal(), gizmo_cage2d_exit(), gizmo_dial_exit(), gizmo_dial_invoke(), gizmo_dial_modal(), gizmo_move_exit(), gizmo_move_invoke(), gizmo_move_modal(), gizmo_move_property_update(), gizmo_update_prop_data(), py_rna_gizmo_target_id_parse_and_ensure_is_valid(), WM_gizmo_target_property_is_valid_any(), and WM_gizmo_target_property_subscribe_all().
| bool WM_gizmo_target_property_is_valid_any | ( | const wmGizmo * | gz | ) |
Definition at line 128 of file wm_gizmo_target_props.cc.
References wmGizmo::target_properties, and WM_gizmo_target_property_is_valid().
Runs on the "prepare draw" pass, drawing the region clears.
Definition at line 283 of file wm_gizmo_target_props.cc.
References ED_region_do_msg_notify_tag_redraw(), wmMsgSubscribeValue::notify, wmMsgSubscribeValue::owner, wmGizmo::parent_gzgroup, wmGizmoGroup::parent_gzmap, wmGizmoProperty::prop, wmGizmoProperty::ptr, wmGizmo::target_properties, wmMsgSubscribeValue::user_data, WM_gizmo_do_msg_notify_tag_refresh(), WM_gizmo_target_property_is_valid(), and WM_msg_subscribe_rna().
Referenced by WM_gizmomap_message_subscribe().
| void WM_gizmo_unlink | ( | ListBase * | gizmolist, |
| wmGizmoMap * | gzmap, | ||
| wmGizmo * | gz, | ||
| bContext * | C ) |
Free gizmo and unlink from gizmolist. gizmolist is allowed to be NULL.
Definition at line 165 of file wm_gizmo.cc.
References BLI_assert, BLI_remlink(), C, wmGizmoMap::gzmap_context, wmGizmoMap::highlight, wmGizmoMap::modal, wmGizmo::state, WM_gizmo_free(), WM_gizmo_select_unlink(), WM_GIZMO_STATE_HIGHLIGHT, WM_GIZMO_STATE_MODAL, WM_GIZMO_STATE_SELECT, wm_gizmomap_highlight_set(), and wm_gizmomap_modal_set().
Referenced by gizmotype_unlink(), ruler_item_remove(), and blender::ed::view3d::geometry_nodes_gizmos::WIDGETGROUP_geometry_nodes_refresh().
| void WM_gizmoconfig_update | ( | Main * | bmain | ) |
Run in case new types have been added (runs often, early exit where possible). Follows WM_keyconfig_update conventions.
Definition at line 1370 of file wm_gizmo_map.cc.
References ED_region_tag_redraw_editor_overlays(), ListBase::first, G, gizmomaptypes, wmGizmoMap::groups, LISTBASE_FOREACH, Main::screens, wmGizmoMap::tag_remove_group, wm_gizmogroup_free(), WM_GIZMOMAPTYPE_GLOBAL_UPDATE_INIT, WM_GIZMOMAPTYPE_GLOBAL_UPDATE_REMOVE, WM_gizmomaptype_group_init_runtime(), WM_gizmomaptype_group_init_runtime_keymap(), WM_gizmomaptype_group_unlink(), WM_GIZMOMAPTYPE_KEYMAP_INIT, WM_GIZMOMAPTYPE_UPDATE_INIT, WM_GIZMOMAPTYPE_UPDATE_REMOVE, WM_GIZMOTYPE_GLOBAL_REINIT_ALL, WM_GIZMOTYPE_GLOBAL_UPDATE_REMOVE, wm_gzmap_type_update_flag, and WM_reinit_gizmomap_all().
Referenced by wm_event_do_handlers().
| void WM_gizmoconfig_update_tag_group_remove | ( | wmGizmoMap * | gzmap | ) |
Definition at line 1358 of file wm_gizmo_map.cc.
References wmGizmoMap::tag_remove_group, WM_GIZMOTYPE_GLOBAL_UPDATE_REMOVE, and wm_gzmap_type_update_flag.
Referenced by WM_gizmo_group_tag_remove().
| void WM_gizmoconfig_update_tag_group_type_init | ( | wmGizmoMapType * | gzmap_type, |
| wmGizmoGroupType * | gzgt ) |
Definition at line 1339 of file wm_gizmo_map.cc.
References wmGizmoGroupType::type_update_flag, wmGizmoMapType::type_update_flag, WM_GIZMOMAPTYPE_GLOBAL_UPDATE_INIT, WM_GIZMOMAPTYPE_KEYMAP_INIT, WM_GIZMOMAPTYPE_UPDATE_INIT, and wm_gzmap_type_update_flag.
Referenced by toolsystem_ref_link(), and WM_gizmo_group_type_add_ptr_ex().
| void WM_gizmoconfig_update_tag_group_type_remove | ( | wmGizmoMapType * | gzmap_type, |
| wmGizmoGroupType * | gzgt ) |
Definition at line 1348 of file wm_gizmo_map.cc.
References wmGizmoGroupType::type_update_flag, wmGizmoMapType::type_update_flag, WM_GIZMOMAPTYPE_GLOBAL_UPDATE_REMOVE, WM_GIZMOMAPTYPE_UPDATE_REMOVE, and wm_gzmap_type_update_flag.
Referenced by WM_gizmo_group_type_unlink_delayed_ptr_ex().
| void WM_gizmoconfig_update_tag_reinit_all | ( | ) |
Definition at line 1365 of file wm_gizmo_map.cc.
References WM_GIZMOTYPE_GLOBAL_REINIT_ALL, and wm_gzmap_type_update_flag.
Referenced by WM_script_tag_reload().
| void WM_gizmogroup_ensure_init | ( | const bContext * | C, |
| wmGizmoGroup * | gzgroup ) |
Definition at line 240 of file wm_gizmo_group.cc.
References BLI_assert, C, CTX_wm_manager(), wmGizmoGroup::init_flag, wmGizmoGroupType::keymap, wmWindowManager::runtime, wmGizmoGroupType::setup, wmGizmoGroup::type, UNLIKELY, WM_gizmo_group_refresh(), WM_GIZMOGROUP_INIT_REFRESH, WM_GIZMOGROUP_INIT_SETUP, and wm_gizmogrouptype_setup_keymap().
Referenced by gizmomap_prepare_drawing(), and wm_handler_operator_call().
| wmKeyMap * WM_gizmogroup_setup_keymap_generic | ( | const wmGizmoGroupType * | gzgt, |
| wmKeyConfig * | kc ) |
Definition at line 774 of file wm_gizmo_group.cc.
References WM_gizmo_keymap_generic_with_keyconfig().
Referenced by wm_gizmogrouptype_append__end().
| wmKeyMap * WM_gizmogroup_setup_keymap_generic_drag | ( | const wmGizmoGroupType * | gzgt, |
| wmKeyConfig * | kc ) |
Definition at line 779 of file wm_gizmo_group.cc.
References WM_gizmo_keymap_generic_drag_with_keyconfig().
| wmKeyMap * WM_gizmogroup_setup_keymap_generic_maybe_drag | ( | const wmGizmoGroupType * | gzgt, |
| wmKeyConfig * | kc ) |
Definition at line 785 of file wm_gizmo_group.cc.
References WM_gizmo_keymap_generic_maybe_drag_with_keyconfig().
Referenced by blender::ed::transform::ED_widgetgroup_gizmo2d_resize_callbacks_set(), blender::ed::transform::ED_widgetgroup_gizmo2d_rotate_callbacks_set(), blender::ed::transform::ED_widgetgroup_gizmo2d_xform_callbacks_set(), blender::ed::space_node::NODE_GGT_backdrop_box_mask(), blender::ed::space_node::NODE_GGT_backdrop_corner_pin(), blender::ed::space_node::NODE_GGT_backdrop_crop(), blender::ed::space_node::NODE_GGT_backdrop_ellipse_mask(), blender::ed::space_node::NODE_GGT_backdrop_glare(), blender::ed::space_node::NODE_GGT_backdrop_split(), blender::ed::space_node::NODE_GGT_backdrop_transform(), VIEW3D_GGT_armature_spline(), VIEW3D_GGT_camera(), VIEW3D_GGT_empty_image(), VIEW3D_GGT_force_field(), VIEW3D_GGT_geometry_nodes(), VIEW3D_GGT_light_area(), VIEW3D_GGT_light_point(), VIEW3D_GGT_light_spot(), VIEW3D_GGT_light_target(), blender::ed::transform::VIEW3D_GGT_xform_cage(), blender::ed::transform::VIEW3D_GGT_xform_extrude(), blender::ed::transform::VIEW3D_GGT_xform_gizmo(), blender::ed::transform::VIEW3D_GGT_xform_gizmo_context(), and blender::ed::transform::VIEW3D_GGT_xform_shear().
| wmKeyMap * WM_gizmogroup_setup_keymap_generic_select | ( | const wmGizmoGroupType * | gzgt, |
| wmKeyConfig * | kc ) |
Definition at line 866 of file wm_gizmo_group.cc.
References params, RGN_TYPE_WINDOW, SPACE_EMPTY, and WM_gizmogroup_keymap_template_select_ex().
Referenced by wm_gizmogrouptype_append__end().
| wmGizmoGroupType * WM_gizmogrouptype_append | ( | void(* | wtfunc )(wmGizmoGroupType *) | ) |
Definition at line 98 of file wm_gizmo_group_type.cc.
References wm_gizmogrouptype_append__begin(), and wm_gizmogrouptype_append__end().
Referenced by image_widgets(), MESH_OT_bisect(), MESH_OT_primitive_cube_add_gizmo(), MESH_OT_spin(), blender::ed::vse::sequencer_gizmos(), view3d_widgets(), and WM_gizmogrouptype_append_and_link().
| wmGizmoGroupTypeRef * WM_gizmogrouptype_append_and_link | ( | wmGizmoMapType * | gzmap_type, |
| void(* | wtfunc )(wmGizmoGroupType *) ) |
Append and insert into a gizmo type-map. This is most common for C gizmos which are enabled by default.
Definition at line 115 of file wm_gizmo_group_type.cc.
References wmGizmoGroupType::gzmap_params, wmGizmoMapType::regionid, wmGizmoMapType_Params::regionid, wmGizmoMapType::spaceid, wmGizmoMapType_Params::spaceid, WM_gizmogrouptype_append(), and WM_gizmomaptype_group_link_ptr().
Referenced by clip_gizmos(), image_widgets(), blender::ed::space_node::node_widgets(), blender::ed::vse::sequencer_gizmos(), and view3d_widgets().
| wmGizmoGroupType * WM_gizmogrouptype_append_ptr | ( | void(* | wtfunc )(wmGizmoGroupType *, void *), |
| void * | userdata ) |
Definition at line 106 of file wm_gizmo_group_type.cc.
References wm_gizmogrouptype_append__begin(), and wm_gizmogrouptype_append__end().
| wmGizmoGroupType * WM_gizmogrouptype_find | ( | blender::StringRef | idname, |
| bool | quiet ) |
Definition at line 45 of file wm_gizmo_group_type.cc.
References get_gizmo_group_type_map(), blender::StringRefBase::is_empty(), and printf.
Referenced by add_primitive_cube_gizmo_invoke(), edbm_spin_invoke(), toolsystem_ref_link(), toolsystem_unlink_ref(), WM_gizmo_group_type_add(), WM_gizmo_group_type_ensure(), WM_gizmo_group_type_free_ptr(), WM_gizmo_group_type_reinit(), WM_gizmo_group_type_remove(), WM_gizmo_group_type_unlink_delayed(), WM_gizmomap_group_find(), WM_gizmomaptype_group_link(), wm_handler_operator_call(), and WM_toolsystem_ref_set_from_runtime().
| void WM_gizmomap_add_handlers | ( | ARegion * | region, |
| wmGizmoMap * | gzmap ) |
Definition at line 839 of file wm_gizmo_map.cc.
References BLI_addtail(), BLI_assert, wmEventHandler_Gizmo::gizmo_map, wmEventHandler_Gizmo::head, LISTBASE_FOREACH, MEM_callocN(), ARegion::runtime, wmEventHandler::type, and WM_HANDLER_TYPE_GIZMO.
Referenced by ed_default_handlers().
| bool WM_gizmomap_cursor_set | ( | const wmGizmoMap * | gzmap, |
| wmWindow * | win ) |
Definition at line 1022 of file wm_gizmo_map.cc.
References wmGizmoType::cursor_get, wmGizmoMap::gzmap_context, wmGizmoMap::highlight, wmGizmo::type, and WM_cursor_set().
Referenced by ED_region_cursor_set().
| void WM_gizmomap_draw | ( | wmGizmoMap * | gzmap, |
| const bContext * | C, | ||
| eWM_GizmoFlagMapDrawStep | drawstep ) |
Definition at line 502 of file wm_gizmo_map.cc.
References BLI_assert, BLI_listbase_is_empty(), C, gizmomap_prepare_drawing(), gizmos_draw_list(), and WM_gizmo_context_check_drawstep().
Referenced by action_main_region_draw(), clip_main_region_draw(), blender::ed::vse::draw_timeline_gizmos(), DRW_draw_gizmo_2d(), DRW_draw_gizmo_3d(), image_main_region_draw(), blender::ed::space_node::node_draw_space(), and blender::ed::vse::sequencer_preview_draw_overlays().
| eWM_GizmoFlagMapDrawStep WM_gizmomap_drawstep_from_gizmo_group | ( | const wmGizmoGroup * | gzgroup | ) |
Definition at line 300 of file wm_gizmo_map.cc.
References wmGizmoGroupType::flag, step, wmGizmoGroup::type, WM_GIZMOGROUPTYPE_3D, WM_GIZMOMAP_DRAWSTEP_2D, and WM_GIZMOMAP_DRAWSTEP_3D.
Referenced by WM_gizmo_group_refresh(), wm_gizmomap_highlight_find(), and wm_gizmomap_modal_set().
| wmGizmo * WM_gizmomap_get_modal | ( | const wmGizmoMap * | gzmap | ) |
Definition at line 247 of file wm_gizmo_map.cc.
References wmGizmoMap::gzmap_context, and wmGizmoMap::modal.
Referenced by blender::ed::transform::gizmogroup_xform_find(), blender::ed::transform::transform_gizmo_3d_model_from_constraint_and_mode_init(), blender::ed::transform::transform_gizmo_3d_model_from_constraint_and_mode_set(), blender::ed::transform::transform_mode_snap_source_init(), and WM_gizmo_group_is_modal().
| wmGizmoGroup * WM_gizmomap_group_find | ( | wmGizmoMap * | gzmap, |
| const char * | idname ) |
Definition at line 218 of file wm_gizmo_map.cc.
References WM_gizmogrouptype_find(), and WM_gizmomap_group_find_ptr().
Referenced by ED_view3d_gizmo_ruler_remove_by_gpencil_layer(), edbm_preselect_or_active(), gizmo_mesh_spin_redo_setup(), ringcut_invoke(), blender::ed::transform::transform_from_gizmo_invoke(), UNUSED_FUNCTION_WITH_RETURN_TYPE(), view3d_ruler_add_invoke(), view3d_ruler_remove_invoke(), and wm_event_get_keymap_from_toolsystem_ex().
| wmGizmoGroup * WM_gizmomap_group_find_ptr | ( | wmGizmoMap * | gzmap, |
| const wmGizmoGroupType * | gzgt ) |
Definition at line 227 of file wm_gizmo_map.cc.
References wmGizmoMap::groups, and LISTBASE_FOREACH.
Referenced by snap_cursor_poll(), snap_cursor_poll(), and WM_gizmomap_group_find().
| const ListBase * WM_gizmomap_group_list | ( | wmGizmoMap * | gzmap | ) |
Definition at line 237 of file wm_gizmo_map.cc.
References wmGizmoMap::groups.
Referenced by gizmo_find_from_properties(), blender::ed::transform::gizmogroup_xform_find(), wm_handlers_do_gizmo_handler(), and wm_region_test_gizmo_do_draw().
| bool WM_gizmomap_is_any_selected | ( | const wmGizmoMap * | gzmap | ) |
Definition at line 242 of file wm_gizmo_map.cc.
References wmGizmoMap::gzmap_context, wmGizmoMapSelectState::len, and wmGizmoMap::select.
Referenced by view3d_calc_minmax_selected(), and wm_handlers_do_gizmo_handler().
| void WM_gizmomap_message_subscribe | ( | const bContext * | C, |
| wmGizmoMap * | gzmap, | ||
| ARegion * | region, | ||
| wmMsgBus * | mbus ) |
Definition at line 1218 of file wm_gizmo_map.cc.
References C, wmGizmoMap::groups, LISTBASE_FOREACH, WM_gizmo_group_type_poll(), WM_GIZMO_HIDDEN, WM_gizmo_target_property_subscribe_all(), and WM_GIZMOGROUP_INIT_SETUP.
Referenced by ED_region_message_subscribe().
| bool WM_gizmomap_minmax | ( | const wmGizmoMap * | gzmap, |
| bool | use_hidden, | ||
| bool | use_select, | ||
| float | r_min[3], | ||
| float | r_max[3] ) |
Definition at line 252 of file wm_gizmo_map.cc.
References BLI_assert_msg, wmGizmoMap::gzmap_context, i, wmGizmoMapSelectState::items, wmGizmoMapSelectState::len, wmGizmo::matrix_basis, minmax_v3v3_v3(), and wmGizmoMap::select.
Referenced by view3d_calc_minmax_selected().
| wmGizmoMap * WM_gizmomap_new_from_type | ( | const wmGizmoMapType_Params * | gzmap_params | ) |
Creates a gizmo-map with all registered gizmos for that type
Definition at line 180 of file wm_gizmo_map.cc.
References MEM_callocN(), wm_gizmomap_new_from_type_ex(), and WM_gizmomaptype_ensure().
Referenced by ed_default_handlers().
| void WM_gizmomap_reinit | ( | wmGizmoMap * | gzmap | ) |
Re-create the gizmos (use when changing theme settings).
Definition at line 210 of file wm_gizmo_map.cc.
References wmGizmoMap::type, wm_gizmomap_free_data(), and wm_gizmomap_new_from_type_ex().
Referenced by WM_reinit_gizmomap_all().
| bool WM_gizmomap_select_all | ( | bContext * | C, |
| wmGizmoMap * | gzmap, | ||
| int | action ) |
Select/Deselect all selectable gizmos in gzmap.
TODO: select all by type.
Definition at line 961 of file wm_gizmo_map.cc.
References BLI_assert_unreachable, C, CTX_wm_window(), SEL_DESELECT, SEL_SELECT, WM_event_add_mousemove(), wm_gizmomap_deselect_all(), and wm_gizmomap_select_all_intern().
| bool WM_gizmomap_tag_delay_refresh_for_tweak_check | ( | wmGizmoMap * | gzmap | ) |
Definition at line 334 of file wm_gizmo_map.cc.
References wmGizmoMap::groups, and LISTBASE_FOREACH.
Referenced by wm_region_tag_draw_on_gizmo_delay_refresh_for_tweak().
| void WM_gizmomap_tag_refresh | ( | wmGizmoMap * | gzmap | ) |
Definition at line 323 of file wm_gizmo_map.cc.
References GIZMOMAP_IS_PREPARE_DRAW, GIZMOMAP_IS_REFRESH_CALLBACK, i, wmGizmoMap::tag_highlight_pending, wmGizmoMap::update_flag, and WM_GIZMOMAP_DRAWSTEP_MAX.
Referenced by image_main_region_listener(), blender::ed::space_node::node_area_listener(), blender::ed::space_node::node_main_region_init(), blender::ed::space_node::node_region_listener(), blender::ed::vse::sequencer_main_region_listener(), blender::ed::vse::sequencer_preview_region_listener(), view3d_main_region_listener(), WM_gizmo_do_msg_notify_tag_refresh(), wm_gizmomap_new_from_type_ex(), wm_handlers_do_gizmo_handler(), and WM_init().
| void WM_gizmomap_tag_refresh_drawstep | ( | wmGizmoMap * | gzmap, |
| eWM_GizmoFlagMapDrawStep | drawstep ) |
Definition at line 312 of file wm_gizmo_map.cc.
References BLI_assert, GIZMOMAP_IS_PREPARE_DRAW, GIZMOMAP_IS_REFRESH_CALLBACK, wmGizmoMap::tag_highlight_pending, wmGizmoMap::update_flag, and WM_GIZMOMAP_DRAWSTEP_MAX.
Referenced by WM_gizmo_group_refresh().
| ARegion * WM_gizmomap_tooltip_init | ( | bContext * | C, |
| ARegion * | region, | ||
| int * | pass, | ||
| double * | pass_delay, | ||
| bool * | r_exit_on_event ) |
Definition at line 1247 of file wm_gizmo_map.cc.
References C, wmGizmoGroupType::flag, wmGizmoMap::gzmap_context, wmGizmoMap::highlight, wmGizmo::parent_gzgroup, ARegion::runtime, wmGizmoGroup::type, UI_tooltip_create_from_gizmo(), and WM_GIZMOGROUPTYPE_3D.
Referenced by wm_handlers_do_gizmo_handler().
| wmGizmoMapType * WM_gizmomaptype_ensure | ( | const wmGizmoMapType_Params * | gzmap_params | ) |
Definition at line 1285 of file wm_gizmo_map.cc.
References BLI_addhead(), gizmomaptypes, MEM_callocN(), wmGizmoMapType::regionid, wmGizmoMapType_Params::regionid, wmGizmoMapType::spaceid, wmGizmoMapType_Params::spaceid, and WM_gizmomaptype_find().
Referenced by clip_gizmos(), ED_gizmo_poll_or_unlink_delayed_from_tool_ex(), image_widgets(), blender::ed::space_node::node_widgets(), blender::ed::vse::sequencer_gizmos(), toolsystem_ref_link(), view3d_widgets(), WM_gizmo_group_type_add_ptr(), WM_gizmo_group_type_ensure_ptr(), WM_gizmo_group_type_reinit_ptr(), WM_gizmo_group_type_remove_ptr(), WM_gizmo_group_type_unlink_delayed_ptr(), WM_gizmomap_new_from_type(), and wm_handler_operator_call().
| wmGizmoMapType * WM_gizmomaptype_find | ( | const wmGizmoMapType_Params * | gzmap_params | ) |
Definition at line 1272 of file wm_gizmo_map.cc.
References gizmomaptypes, LISTBASE_FOREACH, wmGizmoMapType_Params::regionid, and wmGizmoMapType_Params::spaceid.
Referenced by WM_gizmo_group_remove_by_tool(), and WM_gizmomaptype_ensure().
| wmGizmoGroupTypeRef * WM_gizmomaptype_group_find | ( | wmGizmoMapType * | gzmap_type, |
| blender::StringRef | idname ) |
Definition at line 951 of file wm_gizmo_group.cc.
References wmGizmoMapType::grouptype_refs, and LISTBASE_FOREACH.
| wmGizmoGroupTypeRef * WM_gizmomaptype_group_find_ptr | ( | wmGizmoMapType * | gzmap_type, |
| const wmGizmoGroupType * | gzgt ) |
Definition at line 939 of file wm_gizmo_group.cc.
References wmGizmoMapType::grouptype_refs, and LISTBASE_FOREACH.
Referenced by WM_gizmo_group_type_ensure_ptr_ex(), WM_gizmo_group_type_reinit_ptr_ex(), and WM_gizmomaptype_group_unlink().
| void WM_gizmomaptype_group_free | ( | wmGizmoGroupTypeRef * | gzgt_ref | ) |
Unlike WM_gizmomaptype_group_unlink this doesn't maintain correct state, simply free.
Definition at line 1038 of file wm_gizmo_group.cc.
References MEM_freeN().
Referenced by WM_gizmomaptype_group_unlink(), and wm_gizmomaptypes_free().
| void WM_gizmomaptype_group_init_runtime | ( | const Main * | bmain, |
| wmGizmoMapType * | gzmap_type, | ||
| wmGizmoGroupType * | gzgt ) |
Definition at line 985 of file wm_gizmo_group.cc.
References ListBase::first, wmGizmoGroupType::flag, LISTBASE_FOREACH, Main::screens, wmGizmoMap::type, WM_GIZMOGROUPTYPE_TOOL_INIT, and WM_gizmomaptype_group_init_runtime_with_region().
Referenced by WM_gizmoconfig_update().
| void WM_gizmomaptype_group_init_runtime_keymap | ( | const Main * | bmain, |
| wmGizmoGroupType * | gzgt ) |
Definition at line 978 of file wm_gizmo_group.cc.
References ListBase::first, Main::wm, and wm_gizmogrouptype_setup_keymap().
Referenced by WM_gizmoconfig_update().
| wmGizmoGroup * WM_gizmomaptype_group_init_runtime_with_region | ( | wmGizmoMapType * | gzmap_type, |
| wmGizmoGroupType * | gzgt, | ||
| ARegion * | region ) |
Definition at line 1012 of file wm_gizmo_group.cc.
References BLI_assert, ED_region_tag_redraw_editor_overlays(), wmGizmoMap::groups, LISTBASE_FOREACH, ARegion::runtime, wmGizmoMap::type, UNUSED_VARS_NDEBUG, WM_gizmo_group_tag_remove(), wm_gizmogroup_new_from_type(), and wm_gizmomap_highlight_set().
Referenced by WM_gizmomaptype_group_init_runtime(), and wm_handler_operator_call().
| wmGizmoGroupTypeRef * WM_gizmomaptype_group_link | ( | wmGizmoMapType * | gzmap_type, |
| blender::StringRef | idname ) |
Use this for registering gizmos on startup. For runtime, use #WM_gizmomaptype_group_link_runtime.
Definition at line 962 of file wm_gizmo_group.cc.
References BLI_assert, WM_gizmogrouptype_find(), and WM_gizmomaptype_group_link_ptr().
| wmGizmoGroupTypeRef * WM_gizmomaptype_group_link_ptr | ( | wmGizmoMapType * | gzmap_type, |
| wmGizmoGroupType * | gzgt ) |
Definition at line 969 of file wm_gizmo_group.cc.
References BLI_addtail(), wmGizmoMapType::grouptype_refs, MEM_callocN(), and wmGizmoGroupTypeRef::type.
Referenced by WM_gizmo_group_type_add_ptr_ex(), WM_gizmogrouptype_append_and_link(), and WM_gizmomaptype_group_link().
| void WM_gizmomaptype_group_unlink | ( | bContext * | C, |
| Main * | bmain, | ||
| wmGizmoMapType * | gzmap_type, | ||
| const wmGizmoGroupType * | gzgt ) |
Definition at line 1043 of file wm_gizmo_group.cc.
References BLI_assert, BLI_remlink(), C, ED_region_tag_redraw_editor_overlays(), ListBase::first, wmGizmoMap::groups, wmGizmoMapType::grouptype_refs, wmGizmoGroupType::keyconf, wmGizmoGroupType::keymap, LISTBASE_FOREACH, wmGizmoGroup::next, wmGizmoGroup::parent_gzmap, Main::screens, wmGizmoGroup::type, wmGizmoMap::type, wm_gizmogroup_free(), WM_gizmomaptype_group_find_ptr(), WM_gizmomaptype_group_free(), and WM_keymap_remove().
Referenced by WM_gizmo_group_type_reinit_ptr_ex(), WM_gizmo_group_type_remove_ptr_ex(), and WM_gizmoconfig_update().
| void WM_gizmotype_append | ( | void(* | gtfunc )(wmGizmoType *) | ) |
Definition at line 94 of file wm_gizmo_type.cc.
References wm_gizmotype_append__begin(), and wm_gizmotype_append__end().
Referenced by ED_gizmotypes_arrow_3d(), ED_gizmotypes_blank_3d(), ED_gizmotypes_button_2d(), ED_gizmotypes_cage_2d(), ED_gizmotypes_cage_3d(), ED_gizmotypes_dial_3d(), ED_gizmotypes_move_3d(), ED_gizmotypes_preselect_3d(), ED_gizmotypes_primitive_3d(), ED_gizmotypes_snap_3d(), and view3d_widgets().
| void WM_gizmotype_append_ptr | ( | void(* | gtfunc )(wmGizmoType *, void *), |
| void * | userdata ) |
Definition at line 101 of file wm_gizmo_type.cc.
References wm_gizmotype_append__begin(), and wm_gizmotype_append__end().
| const wmGizmoType * WM_gizmotype_find | ( | blender::StringRef | idname, |
| bool | quiet ) |
Definition at line 54 of file wm_gizmo_type.cc.
References get_gizmo_type_map(), blender::StringRefBase::is_empty(), and printf.
Referenced by gizmo_mesh_bisect_setup(), blender::ed::transform::gizmo_mesh_extrude_setup(), gizmo_mesh_placement_setup(), gizmo_mesh_spin_init_setup(), gizmo_mesh_spin_redo_setup(), blender::ed::transform::gizmogroup2d_init(), blender::ed::transform::gizmogroup2d_resize_init(), blender::ed::transform::gizmogroup2d_rotate_init(), blender::ed::transform::gizmogroup_init(), ruler_item_add(), WIDGETGROUP_armature_spline_setup(), WIDGETGROUP_camera_setup(), WIDGETGROUP_mesh_preselect_edgering_setup(), WIDGETGROUP_mesh_preselect_elem_setup(), blender::ed::space_node::WIDGETGROUP_node_corner_pin_setup(), WIDGETGROUP_ruler_setup(), blender::ed::transform::WIDGETGROUP_xform_cage_setup(), blender::ed::transform::WIDGETGROUP_xform_shear_setup(), WM_gizmo_new(), WM_gizmo_properties_create(), and WM_gizmotype_remove_ptr().
| void WM_gizmotype_free_ptr | ( | wmGizmoType * | gzt | ) |
Free but don't remove from the global list.
Definition at line 108 of file wm_gizmo_type.cc.
References BLI_freelistN(), wmGizmoType::idname, MEM_freeN(), wmGizmoType::rna_ext, ExtensionRNA::srna, and wmGizmoType::target_property_defs.
Referenced by wm_gizmotype_free().
| bool WM_gizmotype_remove | ( | bContext * | C, |
| Main * | bmain, | ||
| blender::StringRef | idname ) |
Definition at line 162 of file wm_gizmo_type.cc.
References C, get_gizmo_type_map(), and WM_gizmotype_remove_ptr().
| void WM_gizmotype_remove_ptr | ( | bContext * | C, |
| Main * | bmain, | ||
| wmGizmoType * | gzt ) |
Definition at line 153 of file wm_gizmo_type.cc.
References BLI_assert, C, get_gizmo_type_map(), gizmotype_unlink(), wmGizmoType::idname, and WM_gizmotype_find().
Referenced by WM_gizmotype_remove().
| void WM_gizmotype_target_property_def | ( | wmGizmoType * | gzt, |
| const char * | idname, | ||
| int | data_type, | ||
| int | array_length ) |
Definition at line 244 of file wm_gizmo_target_props.cc.
References wmGizmoPropertyType::array_length, BLI_addtail(), BLI_assert, wmGizmoPropertyType::data_type, wmGizmoPropertyType::idname, wmGizmoPropertyType::index_in_type, MEM_callocN(), wmGizmoType::target_property_defs, wmGizmoType::target_property_defs_len, and WM_gizmotype_target_property_find().
Referenced by bpy_gizmotype_target_property_def(), GIZMO_GT_arrow_3d(), GIZMO_GT_cage_2d(), GIZMO_GT_cage_3d(), GIZMO_GT_dial_3d(), and GIZMO_GT_move_3d().
| const wmGizmoPropertyType * WM_gizmotype_target_property_find | ( | const wmGizmoType * | gzt, |
| const char * | idname ) |
Definition at line 237 of file wm_gizmo_target_props.cc.
References BLI_findstring(), offsetof, and wmGizmoType::target_property_defs.
Referenced by py_rna_gizmo_target_type_id_parse(), WIDGETGROUP_camera_refresh(), WM_gizmo_target_property_clear_rna(), WM_gizmo_target_property_def_func(), WM_gizmo_target_property_def_rna(), and WM_gizmotype_target_property_def().