|
Blender V4.3
|
#include "wm_gizmo_fn.hh"Go to the source code of this file.
Classes | |
| struct | WM_GizmoMatrixParams |
Definition at line 569 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 556 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 519 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 137 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 150 of file wm_gizmo_group.cc.
References wmGizmo::f, and wmGizmo::temp.
Referenced by gizmo_mesh_extrude_draw_prepare(), and WIDGETGROUP_xform_shear_draw_prepare().
| bool WM_gizmo_context_check_drawstep | ( | const bContext * | C, |
| eWM_GizmoFlagMapDrawStep | step ) |
Definition at line 716 of file wm_gizmo.cc.
References CTX_wm_manager(), ED_screen_animation_playing(), WM_GIZMOMAP_DRAWSTEP_2D, and WM_GIZMOMAP_DRAWSTEP_3D.
Referenced by 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 291 of file wm_gizmo_target_props.cc.
References ED_region_tag_redraw(), wmMsgSubscribeValue::owner, wmMsgSubscribeValue::user_data, and WM_gizmomap_tag_refresh().
Referenced by gizmo2d_pivot_point_message_subscribe(), gizmo_mesh_extrude_message_subscribe(), gizmo_mesh_spin_init_message_subscribe(), 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 126 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, wmGizmo::py_instance, wmGizmoType::target_property_defs_len, wmGizmo::type, WM_gizmo_properties_free(), WM_gizmo_target_property_array(), and WM_operator_properties_free().
Referenced by WM_gizmo_unlink(), and wm_gizmogroup_free().
Definition at line 323 of file wm_gizmo.cc.
References wmGizmo::color, and copy_v4_v4().
Definition at line 332 of file wm_gizmo.cc.
References wmGizmo::color_hi, and copy_v4_v4().
| void WM_gizmo_group_refresh | ( | const bContext * | C, |
| wmGizmoGroup * | gzgroup ) |
Definition at line 1246 of file wm_gizmo_group.cc.
References wmGizmoGroup::any, BLI_assert, BLI_rcti_isect_pt_v(), 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, wmGizmoGroup::type, 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 266 of file wm_gizmo_group.cc.
References BLI_assert, 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 120 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 | ( | const char * | idname | ) |
Definition at line 1122 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 1117 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 1111 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 | ( | const char * | idname | ) |
Definition at line 1143 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 1138 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 1129 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 | ( | const char * | idname | ) |
Definition at line 148 of file wm_gizmo_group_type.cc.
References BLI_ghash_lookup(), global_gizmogrouptype_hash, and WM_gizmo_group_type_free_ptr().
| void WM_gizmo_group_type_free_ptr | ( | wmGizmoGroupType * | gzgt | ) |
Definition at line 137 of file wm_gizmo_group_type.cc.
References BLI_assert, BLI_ghash_remove(), gizmogrouptype_free(), global_gizmogrouptype_hash, 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 1232 of file wm_gizmo_group.cc.
References BKE_workspace_owner_id_check(), CTX_wm_workspace(), wmGizmoGroupType::owner_id, and wmGizmoGroupType::poll.
Referenced by 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, |
| const char * | idname ) |
Definition at line 1183 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 1178 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 1168 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, |
| const char * | idname ) |
Definition at line 1161 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 1156 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 1150 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 | ( | const char * | idname | ) |
Definition at line 1203 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 1197 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 1192 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 1210 of file wm_gizmo_group.cc.
References wmGizmoMap::groups, LISTBASE_FOREACH, 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 401 of file wm_gizmo.cc.
References wmGizmo::highlight_part, and wm_gizmomap_highlight_set().
Referenced by ED_screen_set_active_region(), 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 879 of file wm_gizmo_group.cc.
References wmWindowManager::defaultconf, and WM_gizmo_keymap_generic_with_keyconfig().
| wmKeyMap * WM_gizmo_keymap_generic_click_drag | ( | wmWindowManager * | wm | ) |
Definition at line 909 of file wm_gizmo_group.cc.
References wmWindowManager::defaultconf, and WM_gizmo_keymap_generic_click_drag_with_keyconfig().
Referenced by WIDGETGROUP_navigate_setup().
| wmKeyMap * WM_gizmo_keymap_generic_click_drag_with_keyconfig | ( | wmKeyConfig * | kc | ) |
Definition at line 904 of file wm_gizmo_group.cc.
References RGN_TYPE_WINDOW, SPACE_EMPTY, and WM_keymap_ensure().
Referenced by WM_gizmo_keymap_generic_click_drag().
| wmKeyMap * WM_gizmo_keymap_generic_drag | ( | wmWindowManager * | wm | ) |
Definition at line 899 of file wm_gizmo_group.cc.
References wmWindowManager::defaultconf, and WM_gizmo_keymap_generic_drag_with_keyconfig().
| wmKeyMap * WM_gizmo_keymap_generic_drag_with_keyconfig | ( | wmKeyConfig * | kc | ) |
Definition at line 894 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 919 of file wm_gizmo_group.cc.
References wmWindowManager::defaultconf, 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 914 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_select | ( | wmWindowManager * | wm | ) |
Definition at line 889 of file wm_gizmo_group.cc.
References wmWindowManager::defaultconf, and WM_gizmo_keymap_generic_select_with_keyconfig().
| wmKeyMap * WM_gizmo_keymap_generic_select_with_keyconfig | ( | wmKeyConfig * | kc | ) |
Definition at line 884 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 874 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 415 of file wm_gizmo.cc.
References wmGizmo::highlight_part, WM_gizmo_highlight_set(), wm_gizmomap_modal_set(), WM_OP_INVOKE_DEFAULT, 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 429 of file wm_gizmo.cc.
References wmGizmoMap::gzmap_context, wmGizmo::highlight_part, wmGizmoMap::modal, wm_gizmo_calculate_scale(), and wm_gizmomap_modal_set().
Referenced by transform_gizmo_3d_model_from_constraint_and_mode_set(), and transform_mode_snap_source_init().
| wmGizmo * WM_gizmo_new | ( | const char * | 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 94 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_crop_setup(), blender::ed::space_node::WIDGETGROUP_node_sbeam_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 81 of file wm_gizmo.cc.
References wmGizmoType::setup, wmGizmo::type, wm_gizmo_create(), and wm_gizmo_register().
Referenced by gizmo_mesh_bisect_setup(), gizmo_mesh_extrude_setup(), gizmo_mesh_placement_setup(), gizmo_mesh_spin_init_setup(), gizmo_mesh_spin_redo_setup(), gizmogroup2d_init(), gizmogroup2d_resize_init(), 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(), WIDGETGROUP_xform_cage_setup(), 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 gizmo2d_resize_invoke_prepare(), gizmo2d_xform_invoke_prepare(), gizmo_mesh_extrude_invoke_prepare(), gizmo_mesh_extrude_setup(), gizmo_tweak_start_and_finish(), ui_tooltip_data_from_gizmo(), WIDGETGROUP_gizmo_invoke_prepare(), WIDGETGROUP_navigate_setup(), WIDGETGROUP_navigate_setup(), WIDGETGROUP_xform_cage_refresh(), WIDGETGROUP_xform_shear_refresh(), WIDGETGROUP_xform_shear_setup(), wm_gizmomap_modal_set(), and wm_gizmomaps_handled_modal_update().
| int WM_gizmo_operator_invoke | ( | bContext * | C, |
| wmGizmo * | gz, | ||
| wmGizmoOpElem * | gzop, | ||
| const wmEvent * | event ) |
Definition at line 227 of file wm_gizmo.cc.
References blender::bke::idprop::create_group(), PointerRNA::data, wmGizmo::flag, IDP_MergeGroup(), wmGizmoOpElem::ptr, wmGizmoOpElem::type, WM_GIZMO_OPERATOR_TOOL_INIT, WM_OP_INVOKE_DEFAULT, 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, blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), blender::Vector< T, InlineBufferCapacity, Allocator >::size(), wmGizmoOpElem::type, WM_operator_properties_create_ptr(), and WM_operator_properties_free().
Referenced by gizmo2d_resize_setup(), gizmo2d_rotate_setup(), gizmo2d_xform_setup(), gizmo_mesh_extrude_setup(), gizmo_mesh_spin_init_refresh_axis_orientation(), gizmogroup_init_properties_from_twtype(), WIDGETGROUP_light_target_setup(), WIDGETGROUP_navigate_setup(), WIDGETGROUP_navigate_setup(), WIDGETGROUP_ruler_setup(), WIDGETGROUP_xform_cage_setup(), and WIDGETGROUP_xform_shear_setup().
| void WM_gizmo_properties_alloc | ( | PointerRNA ** | ptr, |
| IDProperty ** | properties, | ||
| const char * | gtstring ) |
Similar to WM_gizmo_properties_create except its uses ID properties used for key-maps and macros.
Definition at line 603 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 691 of file wm_gizmo.cc.
References PointerRNA::data, IDP_ClearProperty(), and ptr.
| void WM_gizmo_properties_create | ( | PointerRNA * | ptr, |
| const char * | gtstring ) |
Definition at line 591 of file wm_gizmo.cc.
References ptr, RNA_pointer_create(), 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 586 of file wm_gizmo.cc.
References ptr, RNA_pointer_create(), 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 646 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 700 of file wm_gizmo.cc.
References PointerRNA::data, 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 673 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_idprops_unset(), RNA_struct_iterator_property(), wmGizmoType::srna, and wmGizmo::type.
| void WM_gizmo_properties_sanitize | ( | PointerRNA * | ptr, |
| bool | no_context ) |
Definition at line 617 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 396 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 391 of file wm_gizmo.cc.
References wm_gizmo_select_set_ex().
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().
Referenced by gizmo2d_resize_setup(), gizmo2d_rotate_setup(), gizmo2d_xform_setup(), gizmo_mesh_spin_init_setup(), WIDGETGROUP_gizmo_draw_prepare(), and WIDGETGROUP_ruler_setup().
Definition at line 336 of file wm_gizmo.cc.
References wmGizmo::color_hi, and copy_v4_v4().
Referenced by gizmo2d_resize_setup(), gizmo2d_rotate_setup(), gizmo2d_xform_setup(), gizmo_mesh_spin_init_setup(), and WIDGETGROUP_gizmo_draw_prepare().
Definition at line 303 of file wm_gizmo.cc.
References flag, and wmGizmo::flag.
Referenced by gizmo_3d_draw_invoke(), gizmo_3d_setup_draw_default(), gizmo_3d_setup_draw_from_twtype(), gizmo_3d_setup_draw_modal(), gizmo_mesh_bisect_setup(), 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(), 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(), 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_sbeam_refresh(), blender::ed::space_node::WIDGETGROUP_node_transform_refresh(), WIDGETGROUP_tool_generic_refresh(), WIDGETGROUP_xform_cage_refresh(), WIDGETGROUP_xform_shear_refresh(), and WIDGETGROUP_xform_shear_setup().
| void WM_gizmo_set_fn_custom_modal | ( | wmGizmo * | gz, |
| wmGizmoFnModal | fn ) |
Definition at line 347 of file wm_gizmo.cc.
References wmGizmo::custom_modal.
Referenced by gizmo2d_resize_setup(), gizmo2d_rotate_setup(), gizmo2d_xform_setup(), and gizmogroup_init_properties_from_twtype().
Definition at line 318 of file wm_gizmo.cc.
References wmGizmo::line_width.
Referenced by gizmo2d_resize_setup(), gizmo2d_rotate_setup(), gizmo2d_xform_setup(), 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 283 of file wm_gizmo.cc.
References copy_v3_v3(), and wmGizmo::matrix_basis.
Referenced by gizmo2d_modal(), gizmo2d_resize_draw_prepare(), gizmo2d_rotate_draw_prepare(), gizmo2d_xform_draw_prepare(), gizmo_mesh_bisect_update_from_op(), gizmo_mesh_extrude_refresh(), gizmo_mesh_spin_init_refresh(), gizmo_mesh_spin_redo_update_from_op(), gizmo_modal(), 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(), WIDGETGROUP_xform_shear_draw_prepare(), and WIDGETGROUP_xform_shear_refresh().
Definition at line 298 of file wm_gizmo.cc.
References copy_v3_v3(), and wmGizmo::matrix_offset.
Referenced by gizmo2d_xform_draw_prepare(), gizmo2d_xform_setup(), 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 292 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 288 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 277 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(), WIDGETGROUP_xform_shear_draw_prepare(), and WIDGETGROUP_xform_shear_refresh().
#wmGizmo.matrix utility, set the orientation by its Z axis.
Definition at line 273 of file wm_gizmo.cc.
References wmGizmo::matrix_basis, and wm_gizmo_set_matrix_rotation_from_z_axis__internal().
Referenced by gizmo2d_resize_draw_prepare(), gizmo2d_xform_setup(), 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(), WIDGETGROUP_gizmo_draw_prepare(), WIDGETGROUP_light_point_draw_prepare(), WIDGETGROUP_light_spot_draw_prepare(), and WIDGETGROUP_light_spot_refresh().
Definition at line 313 of file wm_gizmo.cc.
References wmGizmo::scale_basis.
Referenced by gizmo2d_resize_setup(), gizmo2d_rotate_setup(), gizmo2d_xform_setup(), gizmo_3d_setup_draw_default(), gizmo_mesh_bisect_update_from_op(), gizmo_mesh_extrude_setup(), gizmo_mesh_spin_init_setup(), gizmo_mesh_spin_redo_setup(), 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 333 of file wm_gizmo_target_props.cc.
References blender::animrig::autokeyframe_property(), CTX_data_scene(), float, wmGizmoProperty::index, wmGizmoProperty::prop, and wmGizmoProperty::ptr.
Referenced by gizmo_arrow_exit(), gizmo_dial_exit(), and gizmo_move_exit().
| wmGizmoProperty * WM_gizmo_target_property_array | ( | wmGizmo * | gz | ) |
Definition at line 35 of file wm_gizmo_target_props.cc.
References wm_gizmo_target_property_array().
Referenced by gizmo_update_prop_data(), ui_tooltip_data_from_gizmo(), WM_gizmo_free(), and WM_gizmo_target_property_subscribe_all().
| int WM_gizmo_target_property_array_length | ( | const wmGizmo * | gz, |
| wmGizmoProperty * | gz_prop ) |
Definition at line 245 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().
| wmGizmoProperty * WM_gizmo_target_property_at_index | ( | wmGizmo * | gz, |
| int | index ) |
Definition at line 40 of file wm_gizmo_target_props.cc.
References BLI_assert, and wm_gizmo_target_property_array().
Referenced by WM_gizmo_target_property_clear_rna_ptr(), WM_gizmo_target_property_def_func_ptr(), WM_gizmo_target_property_def_rna_ptr(), and WM_gizmo_target_property_find().
| void WM_gizmo_target_property_clear_rna | ( | wmGizmo * | gz, |
| const char * | idname ) |
Definition at line 136 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 122 of file wm_gizmo_target_props.cc.
References BLI_assert, wmGizmoProperty::index, wmGizmoPropertyType::index_in_type, blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), wmGizmo::op_data, PointerRNA_NULL, wmGizmoProperty::prop, wmGizmoProperty::ptr, wmGizmoProperty::type, and WM_gizmo_target_property_at_index().
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 114 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(), 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 92 of file wm_gizmo_target_props.cc.
References BLI_assert, wmGizmoProperty::custom_func, wmGizmoProperty::free_fn, wmGizmoPropertyType::index_in_type, blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), wmGizmo::op_data, params, wmGizmoType::property_update, wmGizmoProperty::range_get_fn, wmGizmo::type, wmGizmoProperty::type, wmGizmoProperty::user_data, wmGizmoProperty::value_get_fn, wmGizmoProperty::value_set_fn, and WM_gizmo_target_property_at_index().
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 81 of file wm_gizmo_target_props.cc.
References ptr, RNA_struct_find_property(), RNA_struct_identifier(), RNA_warning, PointerRNA::type, 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_sbeam_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 58 of file wm_gizmo_target_props.cc.
References BLI_assert, wmGizmoProperty::index, wmGizmoPropertyType::index_in_type, blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), wmGizmo::op_data, wmGizmoProperty::prop, wmGizmoType::property_update, ptr, wmGizmoProperty::ptr, wmGizmo::type, wmGizmoProperty::type, and WM_gizmo_target_property_at_index().
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 48 of file wm_gizmo_target_props.cc.
References BLI_findstringindex(), offsetof, wmGizmoType::target_property_defs, wmGizmo::type, and WM_gizmo_target_property_at_index().
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 166 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 202 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 227 of file wm_gizmo_target_props.cc.
References wmGizmoProperty::custom_func, wmGizmoProperty::prop, wmGizmoProperty::ptr, wmGizmoProperty::range_get_fn, RNA_property_float_ui_range(), 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 181 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_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 213 of file wm_gizmo_target_props.cc.
References 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 160 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_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 | ( | wmGizmo * | gz | ) |
Definition at line 148 of file wm_gizmo_target_props.cc.
References wmGizmoType::target_property_defs_len, wmGizmo::type, wm_gizmo_target_property_array(), and WM_gizmo_target_property_is_valid().
Runs on the "prepare draw" pass, drawing the region clears.
Definition at line 305 of file wm_gizmo_target_props.cc.
References ED_region_do_msg_notify_tag_redraw(), wmMsgSubscribeValue::owner, wmGizmo::parent_gzgroup, wmGizmoGroup::parent_gzmap, wmGizmoProperty::prop, wmGizmoProperty::ptr, wmGizmoType::target_property_defs_len, wmGizmo::type, WM_gizmo_do_msg_notify_tag_refresh(), WM_gizmo_target_property_array(), 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(), 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 1338 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 1326 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 1307 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 1316 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 1333 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 239 of file wm_gizmo_group.cc.
References BLI_assert, CTX_wm_manager(), wmWindowManager::defaultconf, wmGizmoGroup::init_flag, wmGizmoGroupType::keymap, 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 765 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 770 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 776 of file wm_gizmo_group.cc.
References WM_gizmo_keymap_generic_maybe_drag_with_keyconfig().
Referenced by ED_widgetgroup_gizmo2d_resize_callbacks_set(), ED_widgetgroup_gizmo2d_rotate_callbacks_set(), ED_widgetgroup_gizmo2d_xform_callbacks_set(), blender::ed::space_node::NODE_GGT_backdrop_corner_pin(), blender::ed::space_node::NODE_GGT_backdrop_crop(), blender::ed::space_node::NODE_GGT_backdrop_sun_beams(), 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(), VIEW3D_GGT_xform_cage(), VIEW3D_GGT_xform_extrude(), VIEW3D_GGT_xform_gizmo(), VIEW3D_GGT_xform_gizmo_context(), and VIEW3D_GGT_xform_shear().
| wmKeyMap * WM_gizmogroup_setup_keymap_generic_select | ( | const wmGizmoGroupType * | gzgt, |
| wmKeyConfig * | kc ) |
Definition at line 857 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 96 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(), 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 113 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(), sequencer_gizmos(), and view3d_widgets().
| wmGizmoGroupType * WM_gizmogrouptype_append_ptr | ( | void(* | wtfunc )(wmGizmoGroupType *, void *), |
| void * | userdata ) |
Definition at line 104 of file wm_gizmo_group_type.cc.
References wm_gizmogrouptype_append__begin(), and wm_gizmogrouptype_append__end().
| wmGizmoGroupType * WM_gizmogrouptype_find | ( | const char * | idname, |
| bool | quiet ) |
Definition at line 34 of file wm_gizmo_group_type.cc.
References BLI_ghash_lookup(), global_gizmogrouptype_hash, 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_gizmogrouptype_iter | ( | GHashIterator * | ghi | ) |
Caller must free.
Definition at line 57 of file wm_gizmo_group_type.cc.
References BLI_ghashIterator_init(), and global_gizmogrouptype_hash.
| void WM_gizmomap_add_handlers | ( | ARegion * | region, |
| wmGizmoMap * | gzmap ) |
Definition at line 809 of file wm_gizmo_map.cc.
References BLI_addtail(), BLI_assert, wmEventHandler_Gizmo::gizmo_map, wmEventHandler_Gizmo::head, LISTBASE_FOREACH, MEM_callocN, 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 993 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 498 of file wm_gizmo_map.cc.
References BLI_assert, BLI_listbase_is_empty(), gizmomap_prepare_drawing(), gizmos_draw_list(), and WM_gizmo_context_check_drawstep().
Referenced by action_main_region_draw(), clip_main_region_draw(), draw_timeline_gizmos(), DRW_draw_gizmo_2d(), DRW_draw_gizmo_3d(), image_main_region_draw(), blender::ed::space_node::node_draw_space(), and sequencer_preview_region_draw().
| eWM_GizmoFlagMapDrawStep WM_gizmomap_drawstep_from_gizmo_group | ( | const wmGizmoGroup * | gzgroup | ) |
Definition at line 301 of file wm_gizmo_map.cc.
References wmGizmoGroupType::flag, 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 248 of file wm_gizmo_map.cc.
References wmGizmoMap::gzmap_context, and wmGizmoMap::modal.
Referenced by gizmogroup_xform_find(), transform_gizmo_3d_model_from_constraint_and_mode_init(), transform_gizmo_3d_model_from_constraint_and_mode_set(), transform_mode_snap_source_init(), WIDGETGROUP_gizmo_draw_prepare(), and WIDGETGROUP_gizmo_refresh().
| wmGizmoGroup * WM_gizmomap_group_find | ( | wmGizmoMap * | gzmap, |
| const char * | idname ) |
Definition at line 219 of file wm_gizmo_map.cc.
References WM_gizmogrouptype_find(), and WM_gizmomap_group_find_ptr().
Referenced by edbm_preselect_or_active(), gizmo_mesh_spin_redo_setup(), ringcut_invoke(), 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 228 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 238 of file wm_gizmo_map.cc.
References wmGizmoMap::groups.
Referenced by gizmo_find_from_properties(), 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 243 of file wm_gizmo_map.cc.
References wmGizmoMap::gzmap_context, wmGizmoMapSelectState::len, and wmGizmoMap::select.
Referenced by viewselected_exec(), and wm_handlers_do_gizmo_handler().
| void WM_gizmomap_message_subscribe | ( | const bContext * | C, |
| wmGizmoMap * | gzmap, | ||
| ARegion * | region, | ||
| wmMsgBus * | mbus ) |
Definition at line 1185 of file wm_gizmo_map.cc.
References 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 253 of file wm_gizmo_map.cc.
References BLI_assert_msg, wmGizmoMap::gzmap_context, wmGizmoMapSelectState::items, wmGizmoMapSelectState::len, wmGizmo::matrix_basis, minmax_v3v3_v3(), and wmGizmoMap::select.
Referenced by viewselected_exec().
| 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 181 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 211 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 931 of file wm_gizmo_map.cc.
References BLI_assert_unreachable, 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 330 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 321 of file wm_gizmo_map.cc.
References GIZMOMAP_IS_PREPARE_DRAW, GIZMOMAP_IS_REFRESH_CALLBACK, 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(), sequencer_main_region_listener(), 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 313 of file wm_gizmo_map.cc.
References BLI_assert, GIZMOMAP_IS_PREPARE_DRAW, GIZMOMAP_IS_REFRESH_CALLBACK, 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 1214 of file wm_gizmo_map.cc.
References wmGizmoGroupType::flag, wmGizmoMap::gzmap_context, wmGizmoMap::highlight, wmGizmo::parent_gzgroup, 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 1252 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(), 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 1239 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, |
| const char * | idname ) |
Definition at line 942 of file wm_gizmo_group.cc.
References wmGizmoMapType::grouptype_refs, LISTBASE_FOREACH, and STREQ.
| wmGizmoGroupTypeRef * WM_gizmomaptype_group_find_ptr | ( | wmGizmoMapType * | gzmap_type, |
| const wmGizmoGroupType * | gzgt ) |
Definition at line 930 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 1030 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 977 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 970 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 1004 of file wm_gizmo_group.cc.
References BLI_assert, ED_region_tag_redraw_editor_overlays(), wmGizmoMap::groups, LISTBASE_FOREACH, 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, |
| const char * | idname ) |
Use this for registering gizmos on startup. For runtime, use #WM_gizmomaptype_group_link_runtime.
Definition at line 953 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 960 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 1035 of file wm_gizmo_group.cc.
References BLI_assert, BLI_remlink(), 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 90 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 97 of file wm_gizmo_type.cc.
References wm_gizmotype_append__begin(), and wm_gizmotype_append__end().
| const wmGizmoType * WM_gizmotype_find | ( | const char * | idname, |
| bool | quiet ) |
Definition at line 42 of file wm_gizmo_type.cc.
References BLI_ghash_lookup(), global_gizmotype_hash, and printf.
Referenced by gizmo_mesh_bisect_setup(), gizmo_mesh_extrude_setup(), gizmo_mesh_placement_setup(), gizmo_mesh_spin_init_setup(), gizmo_mesh_spin_redo_setup(), gizmogroup2d_init(), gizmogroup2d_resize_init(), gizmogroup2d_rotate_init(), 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(), WIDGETGROUP_xform_cage_setup(), 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 GHash.
Definition at line 104 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_ghash_free_cb().
| void WM_gizmotype_iter | ( | GHashIterator * | ghi | ) |
Caller must free.
Definition at line 65 of file wm_gizmo_type.cc.
References BLI_ghashIterator_init(), and global_gizmotype_hash.
Definition at line 158 of file wm_gizmo_type.cc.
References BLI_ghash_lookup(), global_gizmotype_hash, and WM_gizmotype_remove_ptr().
| void WM_gizmotype_remove_ptr | ( | bContext * | C, |
| Main * | bmain, | ||
| wmGizmoType * | gzt ) |
Definition at line 149 of file wm_gizmo_type.cc.
References BLI_assert, BLI_ghash_remove(), gizmotype_unlink(), global_gizmotype_hash, 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 266 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 259 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().