|
Blender V4.3
|
Go to the source code of this file.
Classes | |
| struct | wmMsgTypeInfo |
| struct | wmMsg |
| struct | wmMsgSubscribeKey |
| struct | wmMsgSubscribeValue |
| struct | wmMsgSubscribeValueLink |
| struct | wmMsgParams_Static |
| struct | wmMsg_Static |
| struct | wmMsgSubscribeKey_Static |
| struct | wmMsgParams_RNA |
| struct | wmMsg_RNA |
| struct | wmMsgSubscribeKey_RNA |
Macros | |
| #define | WM_MSG_TYPE_NUM 2 |
| #define | WM_msg_publish_rna_prop(mbus, id_, data_, type_, prop_) |
| #define | WM_msg_subscribe_rna_prop(mbus, id_, data_, type_, prop_, value) |
| #define | WM_msg_subscribe_rna_anon_type(mbus, type_, value) |
| #define | WM_msg_subscribe_rna_anon_prop(mbus, type_, prop_, value) |
Typedefs | |
| using | wmMsgNotifyFn |
| using | wmMsgSubscribeValueFreeDataFn |
| using | wmMsgSubscribeValueUpdateIdFn |
Enumerations | |
| enum | { WM_MSG_TYPE_RNA = 0 , WM_MSG_TYPE_STATIC = 1 } |
| enum | { WM_MSG_STATICTYPE_WINDOW_DRAW = 0 , WM_MSG_STATICTYPE_SCREEN_EDIT = 1 , WM_MSG_STATICTYPE_FILE_READ = 2 } |
| #define WM_msg_publish_rna_prop | ( | mbus, | |
| id_, | |||
| data_, | |||
| type_, | |||
| prop_ ) |
Definition at line 217 of file wm_message_bus.hh.
Referenced by blender::ed::object::base_active_refresh(), click_select_channel_grease_pencil_layer(), blender::ed::outliner::collection_hierarchy_delete_exec(), create_orientation_exec(), blender::ed::sculpt_paint::curves_sculptmode_enter(), blender::ed::sculpt_paint::curves_sculptmode_toggle_exec(), delete_orientation_exec(), blender::ed::object::editmode_toggle_exec(), blender::ed::greasepencil::grease_pencil_layer_active_exec(), blender::ed::greasepencil::grease_pencil_layer_add_exec(), blender::ed::greasepencil::grease_pencil_layer_duplicate_exec(), blender::ed::greasepencil::grease_pencil_layer_group_add_exec(), blender::ed::greasepencil::grease_pencil_layer_group_remove_exec(), blender::ed::greasepencil::grease_pencil_layer_move_exec(), blender::ed::greasepencil::grease_pencil_layer_remove_exec(), blender::ed::greasepencil::grease_pencil_layer_reorder_exec(), blender::ed::greasepencil::grease_pencil_merge_layer_exec(), blender::ed::outliner::namebutton_fn(), blender::ui::greasepencil::LayerGroupViewItem::on_activate(), blender::ui::greasepencil::LayerViewItem::on_activate(), blender::ui::greasepencil::LayerNodeDropTarget::on_drop(), blender::ed::outliner::outliner_delete_exec(), blender::ed::greasepencil::paintmode_toggle_exec(), particle_edit_toggle_exec(), blender::ed::object::posemode_exec(), blender::ed::sculpt_paint::sculpt_mode_toggle_exec(), blender::ed::greasepencil::sculptmode_toggle_exec(), select_orientation_exec(), texture_paint_toggle_exec(), blender::ed::outliner::tree_element_grease_pencil_node_activate(), uv_set_2d_cursor_exec(), blender::ed::greasepencil::vertexmode_toggle_exec(), view3d_all_exec(), vpaint_mode_toggle_exec(), blender::ed::greasepencil::weightmode_toggle_exec(), WM_toolsystem_ref_set_from_runtime(), and wpaint_mode_toggle_exec().
| #define WM_msg_subscribe_rna_anon_prop | ( | mbus, | |
| type_, | |||
| prop_, | |||
| value ) |
Definition at line 244 of file wm_message_bus.hh.
Referenced by buttons_header_region_message_subscribe(), buttons_navigation_bar_region_message_subscribe(), ED_region_generic_tools_region_message_subscribe(), gizmo_mesh_extrude_message_subscribe(), gizmo_xform_message_subscribe(), info_header_region_message_subscribe(), blender::ed::outliner::outliner_main_region_message_subscribe(), statusbar_header_region_message_subscribe(), view3d_main_region_message_subscribe(), and WIDGETGROUP_camera_message_subscribe().
| #define WM_msg_subscribe_rna_anon_type | ( | mbus, | |
| type_, | |||
| value ) |
Definition at line 235 of file wm_message_bus.hh.
Referenced by view3d_main_region_message_subscribe().
| #define WM_msg_subscribe_rna_prop | ( | mbus, | |
| id_, | |||
| data_, | |||
| type_, | |||
| prop_, | |||
| value ) |
Definition at line 225 of file wm_message_bus.hh.
Referenced by ED_area_do_mgs_subscribe_for_tool_header(), ED_area_do_mgs_subscribe_for_tool_ui(), blender::ed::asset::shelf::region_message_subscribe(), and topbar_header_region_message_subscribe().
| #define WM_MSG_TYPE_NUM 2 |
Definition at line 37 of file wm_message_bus.hh.
Referenced by WM_msg_id_remove(), WM_msg_id_update(), WM_msgbus_create(), WM_msgbus_destroy(), and WM_msgbus_types_init().
| using wmMsgNotifyFn |
Definition at line 24 of file wm_message_bus.hh.
Definition at line 27 of file wm_message_bus.hh.
Definition at line 31 of file wm_message_bus.hh.
| anonymous enum |
| Enumerator | |
|---|---|
| WM_MSG_TYPE_RNA | |
| WM_MSG_TYPE_STATIC | |
Definition at line 33 of file wm_message_bus.hh.
| anonymous enum |
| Enumerator | |
|---|---|
| WM_MSG_STATICTYPE_WINDOW_DRAW | |
| WM_MSG_STATICTYPE_SCREEN_EDIT | |
| WM_MSG_STATICTYPE_FILE_READ | |
Definition at line 128 of file wm_message_bus.hh.
| void WM_msg_dump | ( | wmMsgBus * | mbus, |
| const char * | info_str ) |
Definition at line 104 of file wm_message_bus.cc.
References LISTBASE_FOREACH, wmMsgBus::messages, printf, wmMsgTypeInfo::repr, wmMsg::type, wm_msg_subscribe_value_msg_cast(), and wm_msg_types.
Referenced by bpy_msgbus_subscribe_rna(), and WM_msgbus_handle().
Definition at line 209 of file wm_message_bus.cc.
References wmMsgTypeInfo::remove_by_id, WM_MSG_TYPE_NUM, and wm_msg_types.
Referenced by WM_main_remap_editor_id_reference(), and WM_main_remove_notifier_reference().
Definition at line 199 of file wm_message_bus.cc.
References wmMsgTypeInfo::update_by_id, WM_MSG_TYPE_NUM, and wm_msg_types.
Referenced by WM_main_remap_editor_id_reference().
| wmMsgSubscribeKey_RNA * WM_msg_lookup_rna | ( | wmMsgBus * | mbus, |
| const wmMsgParams_RNA * | msg_key_params ) |
Definition at line 226 of file wm_message_bus_rna.cc.
References BLI_gset_lookup(), wmMsgBus::messages_gset, wmMsgSubscribeKey_RNA::msg, wmMsg_RNA::params, and WM_MSG_TYPE_RNA.
Referenced by WM_msg_publish_rna_params().
| wmMsgSubscribeKey_Static * WM_msg_lookup_static | ( | wmMsgBus * | mbus, |
| const wmMsgParams_Static * | msg_key_params ) |
Definition at line 78 of file wm_message_bus_static.cc.
References BLI_gset_lookup(), wmMsgBus::messages_gset, wmMsgSubscribeKey_Static::msg, wmMsg_Static::params, and WM_MSG_TYPE_STATIC.
Referenced by WM_msg_publish_static_params().
Definition at line 358 of file wm_message_bus_rna.cc.
References wmMsgParams_RNA::ptr, RNA_id_pointer_create(), and WM_msg_publish_rna_params().
| void WM_msg_publish_rna | ( | wmMsgBus * | mbus, |
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop ) |
Definition at line 282 of file wm_message_bus_rna.cc.
References params, ptr, and WM_msg_publish_rna_params().
Referenced by rna_property_update().
| void WM_msg_publish_rna_params | ( | wmMsgBus * | mbus, |
| const wmMsgParams_RNA * | msg_key_params ) |
Definition at line 234 of file wm_message_bus_rna.cc.
References CLOG_INFO, PointerRNA::data, wmMsgSubscribeKey_RNA::head, ID::name, PointerRNA::owner_id, wmMsgParams_RNA::prop, wmMsgParams_RNA::ptr, RNA_property_identifier(), RNA_struct_identifier(), PointerRNA::type, WM_LOG_MSGBUS_PUB, WM_msg_lookup_rna(), and WM_msg_publish_with_key().
Referenced by bpy_msgbus_publish_rna(), ED_view3d_cursor3d_update(), saveTransform(), WM_msg_publish_ID(), and WM_msg_publish_rna().
Definition at line 97 of file wm_message_bus_static.cc.
References params, and WM_msg_publish_static_params().
Referenced by wm_file_read_post().
| void WM_msg_publish_static_params | ( | wmMsgBus * | mbus, |
| const wmMsgParams_Static * | msg_key_params ) |
Definition at line 87 of file wm_message_bus_static.cc.
References CLOG_INFO, wmMsgParams_Static::event, wmMsgSubscribeKey_Static::head, WM_LOG_MSGBUS_PUB, WM_msg_lookup_static(), and WM_msg_publish_with_key().
Referenced by WM_msg_publish_static().
| void WM_msg_publish_with_key | ( | wmMsgBus * | mbus, |
| wmMsgSubscribeKey * | msg_key ) |
Definition at line 178 of file wm_message_bus.cc.
References BLI_listbase_count(), CLOG_INFO, LISTBASE_FOREACH, wmMsgBus::messages_tag_count, wmMsgSubscribeKey::values, and WM_LOG_MSGBUS_SUB.
Referenced by WM_msg_publish_rna_params(), and WM_msg_publish_static_params().
| void WM_msg_subscribe_ID | ( | wmMsgBus * | mbus, |
| ID * | id, | ||
| const wmMsgSubscribeValue * | msg_val_params, | ||
| const char * | id_repr ) |
Definition at line 348 of file wm_message_bus_rna.cc.
References wmMsgParams_RNA::ptr, RNA_id_pointer_create(), and WM_msg_subscribe_rna_params().
| void WM_msg_subscribe_rna | ( | wmMsgBus * | mbus, |
| PointerRNA * | ptr, | ||
| const PropertyRNA * | prop, | ||
| const wmMsgSubscribeValue * | msg_val_params, | ||
| const char * | id_repr ) |
Definition at line 328 of file wm_message_bus_rna.cc.
References params, ptr, and WM_msg_subscribe_rna_params().
Referenced by ED_region_do_draw(), file_main_region_message_subscribe(), gizmo2d_pivot_point_message_subscribe(), gizmo_mesh_extrude_message_subscribe(), gizmo_mesh_spin_init_message_subscribe(), gizmo_xform_message_subscribe(), graph_region_message_subscribe(), nla_main_region_message_subscribe(), saction_main_region_message_subscribe(), sequencer_main_region_message_subscribe(), ui_block_message_subscribe(), WIDGETGROUP_camera_message_subscribe(), WIDGETGROUP_gizmo_message_subscribe(), and WM_gizmo_target_property_subscribe_all().
| void WM_msg_subscribe_rna_params | ( | wmMsgBus * | mbus, |
| const wmMsgParams_RNA * | msg_key_params, | ||
| const wmMsgSubscribeValue * | msg_val_params, | ||
| const char * | id_repr ) |
Definition at line 290 of file wm_message_bus_rna.cc.
References BLI_strdupn(), CLOG_INFO, wmMsg_RNA::head, wmMsgSubscribeKey_RNA::head, wmMsg::id, wmMsgSubscribeValue::is_persistent, wmMsgSubscribeKey_RNA::msg, ID::name, PointerRNA::owner_id, wmMsg_RNA::params, wmMsgParams_RNA::prop, wmMsgParams_RNA::ptr, RNA_path_from_ID_to_struct(), RNA_property_identifier(), RNA_struct_identifier(), str, PointerRNA::type, wmMsg::type, WM_LOG_MSGBUS_SUB, WM_msg_subscribe_with_key(), and WM_MSG_TYPE_RNA.
Referenced by bpy_msgbus_subscribe_rna(), gizmo_mesh_extrude_message_subscribe(), gizmo_mesh_spin_init_message_subscribe(), graph_region_message_subscribe(), nla_track_region_message_subscribe(), saction_channel_region_message_subscribe(), sequencer_main_region_message_subscribe(), view3d_header_region_message_subscribe(), view3d_main_region_message_subscribe(), WM_msg_subscribe_ID(), and WM_msg_subscribe_rna().
| void WM_msg_subscribe_static | ( | wmMsgBus * | mbus, |
| int | event, | ||
| const wmMsgSubscribeValue * | msg_val_params, | ||
| const char * | id_repr ) |
Definition at line 120 of file wm_message_bus_static.cc.
References params, and WM_msg_subscribe_static_params().
| void WM_msg_subscribe_static_params | ( | wmMsgBus * | mbus, |
| const wmMsgParams_Static * | msg_key_params, | ||
| const wmMsgSubscribeValue * | msg_val_params, | ||
| const char * | id_repr ) |
Definition at line 104 of file wm_message_bus_static.cc.
References wmMsg_Static::head, wmMsgSubscribeKey_Static::head, wmMsg::id, wmMsgSubscribeKey_Static::msg, wmMsg_Static::params, wmMsg::type, WM_msg_subscribe_with_key(), and WM_MSG_TYPE_STATIC.
Referenced by WM_msg_subscribe_static().
| wmMsgSubscribeKey * WM_msg_subscribe_with_key | ( | wmMsgBus * | mbus, |
| const wmMsgSubscribeKey * | msg_key_test, | ||
| const wmMsgSubscribeValue * | msg_val_params ) |
| msg_key_test | Needs following wmMsgSubscribeKey fields filled in:
|
Definition at line 143 of file wm_message_bus.cc.
References BLI_addtail(), BLI_assert, BLI_gset_ensure_p_ex(), LISTBASE_FOREACH, MEM_mallocN, wmMsgBus::messages, wmMsgBus::messages_gset, wmMsgTypeInfo::msg_key_size, wmMsgSubscribeValue::notify, wmMsgSubscribeValue::owner, wmMsgSubscribeValueLink::params, wmMsg::type, wmMsgSubscribeValue::user_data, wmMsgSubscribeKey::values, wm_msg_subscribe_value_msg_cast(), and wm_msg_types.
Referenced by WM_msg_subscribe_rna_params(), and WM_msg_subscribe_static_params().
| void WM_msgbus_clear_by_owner | ( | wmMsgBus * | mbus, |
| void * | owner ) |
Definition at line 66 of file wm_message_bus.cc.
References BLI_assert, BLI_gset_remove(), BLI_listbase_is_empty(), BLI_remlink(), ListBase::first, wmMsgTypeInfo::gset, wmMsgTypeInfo::key_free_fn, MEM_freeN(), wmMsgBus::messages, wmMsgBus::messages_gset, wmMsgBus::messages_tag_count, wmMsgSubscribeKey::next, wmMsgSubscribeValueLink::next, wmMsg::type, UNUSED_VARS_NDEBUG, wmMsgSubscribeKey::values, wm_msg_subscribe_value_msg_cast(), and wm_msg_types.
Referenced by area_offscreen_exit(), bpy_msgbus_clear_by_owner(), ED_region_do_draw(), and ED_region_exit().
| wmMsgBus * WM_msgbus_create | ( | ) |
Definition at line 45 of file wm_message_bus.cc.
References BLI_gset_new_ex(), wmMsgTypeInfo::cmp_fn, wmMsgTypeInfo::gset, wmMsgTypeInfo::hash_fn, MEM_callocN, wmMsgBus::messages_gset, WM_MSG_TYPE_NUM, and wm_msg_types.
Referenced by WM_check().
| void WM_msgbus_destroy | ( | wmMsgBus * | mbus | ) |
Definition at line 57 of file wm_message_bus.cc.
References BLI_gset_free(), wmMsgTypeInfo::gset, wmMsgTypeInfo::key_free_fn, MEM_freeN(), wmMsgBus::messages_gset, WM_MSG_TYPE_NUM, and wm_msg_types.
Referenced by wm_close_and_free(), and wm_file_read_setup_wm_init().
Definition at line 115 of file wm_message_bus.cc.
References BLI_assert, LISTBASE_FOREACH, wmMsgBus::messages, wmMsgBus::messages_tag_count, and WM_msg_dump().
Referenced by wm_event_do_notifiers().
| void WM_msgbus_types_init | ( | ) |
Definition at line 38 of file wm_message_bus.cc.
References wm_msg_init_fn, WM_MSG_TYPE_NUM, and wm_msg_types.
Referenced by WM_init().
| void WM_msgtypeinfo_init_rna | ( | wmMsgTypeInfo * | msgtype_info | ) |
Definition at line 207 of file wm_message_bus_rna.cc.
References wmMsgTypeInfo::cmp_fn, wmMsgTypeInfo::gset, wmMsgTypeInfo::hash_fn, wmMsgTypeInfo::key_free_fn, wmMsgTypeInfo::msg_key_size, wmMsgTypeInfo::remove_by_id, wmMsgTypeInfo::repr, wmMsgTypeInfo::update_by_id, wm_msg_rna_gset_cmp(), wm_msg_rna_gset_hash(), wm_msg_rna_gset_key_free(), wm_msg_rna_remove_by_id(), wm_msg_rna_repr(), and wm_msg_rna_update_by_id().
| void WM_msgtypeinfo_init_static | ( | wmMsgTypeInfo * | msgtype_info | ) |
Definition at line 66 of file wm_message_bus_static.cc.
References wmMsgTypeInfo::cmp_fn, wmMsgTypeInfo::gset, wmMsgTypeInfo::hash_fn, wmMsgTypeInfo::key_free_fn, wmMsgTypeInfo::msg_key_size, wmMsgTypeInfo::repr, wm_msg_static_gset_cmp(), wm_msg_static_gset_hash(), wm_msg_static_gset_key_free(), and wm_msg_static_repr().