|
Blender V5.0
|
#include "BLI_string_ref.hh"#include "DNA_listBase.h"#include "RNA_prototypes.hh"#include "RNA_types.hh"#include <cstdio>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_RemoteIO |
| struct | wmMsg_RemoteIO |
| struct | wmMsgSubscribeKey_RemoteIO |
| struct | wmMsgParams_RNA |
| struct | wmMsg_RNA |
| struct | wmMsgSubscribeKey_RNA |
Macros | |
| #define | WM_MSG_TYPE_NUM 3 |
| #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 , WM_MSG_TYPE_REMOTE_IO = 2 } |
| 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 259 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(), blender::ed::transform::create_orientation_exec(), blender::ed::sculpt_paint::curves_sculptmode_enter(), blender::ed::sculpt_paint::curves_sculptmode_toggle_exec(), blender::ed::transform::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_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(), blender::ed::transform::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 286 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(), blender::ed::transform::gizmo_mesh_extrude_message_subscribe(), blender::ed::transform::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 277 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 267 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 3 |
Definition at line 44 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 28 of file wm_message_bus.hh.
Definition at line 31 of file wm_message_bus.hh.
Definition at line 35 of file wm_message_bus.hh.
| anonymous enum |
| Enumerator | |
|---|---|
| WM_MSG_TYPE_RNA | |
| WM_MSG_TYPE_STATIC | |
| WM_MSG_TYPE_REMOTE_IO | Messages relating to some remote resources, like progress reporting for online asset downloads. |
Definition at line 37 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 137 of file wm_message_bus.hh.
| void WM_msg_dump | ( | wmMsgBus * | mbus, |
| const char * | info_str ) |
Definition at line 105 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 208 of file wm_message_bus.cc.
References i, 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 198 of file wm_message_bus.cc.
References i, wmMsgTypeInfo::update_by_id, WM_MSG_TYPE_NUM, and wm_msg_types.
Referenced by WM_main_remap_editor_id_reference().
| wmMsgSubscribeKey_RemoteIO * WM_msg_lookup_remote_io | ( | wmMsgBus * | mbus, |
| const wmMsgParams_RemoteIO * | msg_key_params ) |
Definition at line 88 of file wm_message_bus_remote_io.cc.
References BLI_gset_lookup(), wmMsgBus::messages_gset, wmMsgSubscribeKey_RemoteIO::msg, wmMsg_RemoteIO::params, and WM_MSG_TYPE_REMOTE_IO.
Referenced by WM_msg_publish_remote_io_params().
| wmMsgSubscribeKey_RNA * WM_msg_lookup_rna | ( | wmMsgBus * | mbus, |
| const wmMsgParams_RNA * | msg_key_params ) |
Definition at line 230 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 82 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 360 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_remote_io | ( | wmMsgBus * | mbus, |
| blender::StringRef | remote_url ) |
Definition at line 107 of file wm_message_bus_remote_io.cc.
References BLI_strdupn(), blender::StringRefBase::data(), MEM_freeN(), params, blender::StringRefBase::size(), and WM_msg_publish_remote_io_params().
| void WM_msg_publish_remote_io_params | ( | wmMsgBus * | mbus, |
| const wmMsgParams_RemoteIO * | msg_key_params ) |
Definition at line 97 of file wm_message_bus_remote_io.cc.
References CLOG_DEBUG, wmMsgSubscribeKey_RemoteIO::head, wmMsgParams_RemoteIO::remote_url, WM_LOG_MSGBUS_PUB, WM_msg_lookup_remote_io(), and WM_msg_publish_with_key().
Referenced by WM_msg_publish_remote_io().
| void WM_msg_publish_rna | ( | wmMsgBus * | mbus, |
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop ) |
Definition at line 285 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 238 of file wm_message_bus_rna.cc.
References CLOG_DEBUG, 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(), blender::ed::transform::tool_settings_update_snap_toggle(), WM_msg_publish_ID(), and WM_msg_publish_rna().
| void WM_msg_publish_static | ( | wmMsgBus * | mbus, |
| int | event ) |
Definition at line 101 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 91 of file wm_message_bus_static.cc.
References CLOG_DEBUG, 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_DEBUG, LISTBASE_FOREACH, wmMsgBus::messages_tag_count, wmMsgSubscribeKey::values, and WM_LOG_MSGBUS_SUB.
Referenced by WM_msg_publish_remote_io_params(), 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 350 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_remote_io | ( | wmMsgBus * | mbus, |
| blender::StringRef | remote_url, | ||
| const wmMsgSubscribeValue * | msg_val_params, | ||
| const char * | id_repr ) |
Definition at line 133 of file wm_message_bus_remote_io.cc.
References BLI_strdupn(), blender::StringRefBase::data(), MEM_freeN(), params, blender::StringRefBase::size(), and WM_msg_subscribe_remote_io_params().
| void WM_msg_subscribe_remote_io_params | ( | wmMsgBus * | mbus, |
| const wmMsgParams_RemoteIO * | msg_key_params, | ||
| const wmMsgSubscribeValue * | msg_val_params, | ||
| const char * | id_repr ) |
Definition at line 117 of file wm_message_bus_remote_io.cc.
References wmMsg_RemoteIO::head, wmMsgSubscribeKey_RemoteIO::head, wmMsg::id, wmMsgSubscribeKey_RemoteIO::msg, wmMsg_RemoteIO::params, wmMsg::type, WM_msg_subscribe_with_key(), and WM_MSG_TYPE_REMOTE_IO.
Referenced by WM_msg_subscribe_remote_io().
| void WM_msg_subscribe_rna | ( | wmMsgBus * | mbus, |
| PointerRNA * | ptr, | ||
| const PropertyRNA * | prop, | ||
| const wmMsgSubscribeValue * | msg_val_params, | ||
| const char * | id_repr ) |
Definition at line 330 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(), 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(), graph_region_message_subscribe(), nla_main_region_message_subscribe(), saction_main_region_message_subscribe(), blender::ed::vse::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 293 of file wm_message_bus_rna.cc.
References BLI_strdupn(), CLOG_TRACE, PointerRNA::data, wmMsgParams_RNA::data_path, 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(), blender::ed::transform::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(), blender::ed::vse::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 124 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 108 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 144 of file wm_message_bus.cc.
References BLI_addtail(), BLI_assert, BLI_gset_ensure_p_ex(), wmMsgTypeInfo::gset, wmMsgTypeInfo::key_duplicate_fn, LISTBASE_FOREACH, MEM_mallocN(), wmMsgBus::messages, wmMsgBus::messages_gset, 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_remote_io_params(), WM_msg_subscribe_rna_params(), and WM_msg_subscribe_static_params().
| void WM_msgbus_clear_by_owner | ( | wmMsgBus * | mbus, |
| void * | owner ) |
Definition at line 67 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 46 of file wm_message_bus.cc.
References BLI_gset_new_ex(), wmMsgTypeInfo::cmp_fn, wmMsgTypeInfo::gset, wmMsgTypeInfo::hash_fn, i, 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 58 of file wm_message_bus.cc.
References BLI_gset_free(), wmMsgTypeInfo::gset, i, wmMsgTypeInfo::key_free_fn, MEM_freeN(), wmMsgBus::messages_gset, WM_MSG_TYPE_NUM, and wm_msg_types.
Referenced by wm_file_read_setup_wm_init(), and blender::bke::WindowManagerRuntime::~WindowManagerRuntime().
Definition at line 116 of file wm_message_bus.cc.
References BLI_assert, C, 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 39 of file wm_message_bus.cc.
References i, wm_msg_init_fn, WM_MSG_TYPE_NUM, and wm_msg_types.
Referenced by WM_init().
| void WM_msgtypeinfo_init_remote_io | ( | wmMsgTypeInfo * | msgtype_info | ) |
Definition at line 77 of file wm_message_bus_remote_io.cc.
References wmMsgTypeInfo::cmp_fn, wmMsgTypeInfo::gset, wmMsgTypeInfo::hash_fn, wmMsgTypeInfo::key_duplicate_fn, wmMsgTypeInfo::key_free_fn, wmMsgTypeInfo::repr, wm_msg_remote_io_gset_cmp(), wm_msg_remote_io_gset_hash(), wm_msg_remote_io_gset_key_duplicate(), wm_msg_remote_io_gset_key_free(), and wm_msg_remote_io_repr().
| void WM_msgtypeinfo_init_rna | ( | wmMsgTypeInfo * | msgtype_info | ) |
Definition at line 212 of file wm_message_bus_rna.cc.
References wmMsgTypeInfo::cmp_fn, wmMsgTypeInfo::gset, wmMsgTypeInfo::hash_fn, wmMsgTypeInfo::key_duplicate_fn, wmMsgTypeInfo::key_free_fn, 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_duplicate(), 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 71 of file wm_message_bus_static.cc.
References wmMsgTypeInfo::cmp_fn, wmMsgTypeInfo::gset, wmMsgTypeInfo::hash_fn, wmMsgTypeInfo::key_duplicate_fn, wmMsgTypeInfo::key_free_fn, wmMsgTypeInfo::repr, wm_msg_static_gset_cmp(), wm_msg_static_gset_hash(), wm_msg_static_gset_key_duplicate(), wm_msg_static_gset_key_free(), and wm_msg_static_repr().