|
Blender V4.5
|
Enumerations | |
| enum class | MoveDirection { Up = 0 , Down = 1 } |
Functions | |
| PointerRNA | get_active_node_to_operate_on (bContext *C, const StringRef node_idname) |
| void | update_after_node_change (bContext *C, const PointerRNA node_ptr) |
| template<typename Accessor> | |
| bool | editable_node_active_poll (bContext *C) |
| template<typename Accessor> | |
| void | remove_active_item (wmOperatorType *ot, const char *name, const char *idname, const char *description) |
| template<typename Accessor> | |
| void | remove_item_by_index (wmOperatorType *ot, const char *name, const char *idname, const char *description) |
| template<typename Accessor> | |
| void | add_item (wmOperatorType *ot, const char *name, const char *idname, const char *description) |
| template<typename Accessor> | |
| void | move_active_item (wmOperatorType *ot, const char *name, const char *idname, const char *description) |
| template<typename Accessor> | |
| void | make_common_operators () |
| Enumerator | |
|---|---|
| Up | |
| Down | |
Definition at line 185 of file NOD_socket_items_ops.hh.
|
inline |
Definition at line 127 of file NOD_socket_items_ops.hh.
References blender::nodes::socket_items::SocketItemsRef< T >::active_index, blender::nodes::socket_items::add_item(), blender::nodes::socket_items::add_item_with_name(), blender::nodes::socket_items::add_item_with_socket_type_and_name(), BLI_assert_unreachable, C, PointerRNA::data, editable_node_active_poll(), get_active_node_to_operate_on(), blender::nodes::socket_items::SocketItemsRef< T >::items, blender::nodes::socket_items::SocketItemsRef< T >::items_num, blender::dna::array::move_index(), bNode::name, OPERATOR_FINISHED, OPTYPE_UNDO, ot, SOCK_FLOAT, SOCK_GEOMETRY, and update_after_node_change().
Referenced by make_common_operators(), and blender::nodes::node_geo_index_switch_cc::NODE_OT_index_switch_item_add().
|
inline |
Definition at line 69 of file NOD_socket_items_ops.hh.
References C, PointerRNA::data, and get_active_node_to_operate_on().
Referenced by add_item(), move_active_item(), remove_active_item(), and remove_item_by_index().
|
inline |
Definition at line 27 of file NOD_socket_items_ops.hh.
References C, CTX_wm_space_node(), SpaceNode::edittree, blender::bke::bNodeTreeZones::get_zone_by_node(), bNodeTree::id, ID_IS_EDITABLE, bNode::identifier, bNode::idname, blender::bke::node_get_active(), PointerRNA_NULL, and RNA_pointer_create_discrete().
Referenced by add_item(), editable_node_active_poll(), move_active_item(), remove_active_item(), and remove_item_by_index().
|
inline |
Creates simple operators for adding, removing and moving items. The idnames are passed in explicitly, so that they are more searchable compared to when they would be computed automatically.
Definition at line 236 of file NOD_socket_items_ops.hh.
References add_item(), move_active_item(), ot, remove_active_item(), and WM_operatortype_append().
Referenced by blender::nodes::node_fn_format_string_cc::node_operators(), blender::nodes::node_geo_attribute_capture_cc::node_operators(), blender::nodes::node_geo_bake_cc::node_operators(), blender::nodes::node_geo_closure_cc::output_node::node_operators(), blender::nodes::node_geo_combine_bundle_cc::node_operators(), blender::nodes::node_geo_evaluate_closure_cc::node_operators(), blender::nodes::node_geo_foreach_geometry_element_cc::output_node::node_operators(), blender::nodes::node_geo_menu_switch_cc::node_operators(), blender::nodes::node_geo_repeat_cc::repeat_output_node::node_operators(), blender::nodes::node_geo_separate_bundle_cc::node_operators(), and blender::nodes::node_geo_simulation_cc::sim_output_node::node_operators().
|
inline |
Definition at line 191 of file NOD_socket_items_ops.hh.
References blender::nodes::socket_items::SocketItemsRef< T >::active_index, C, PointerRNA::data, Down, editable_node_active_poll(), get_active_node_to_operate_on(), blender::nodes::socket_items::SocketItemsRef< T >::items, blender::nodes::socket_items::SocketItemsRef< T >::items_num, blender::dna::array::move_index(), OPERATOR_FINISHED, OPTYPE_UNDO, ot, RNA_def_enum(), RNA_enum_get(), Up, and update_after_node_change().
Referenced by make_common_operators().
|
inline |
Definition at line 75 of file NOD_socket_items_ops.hh.
References blender::nodes::socket_items::SocketItemsRef< T >::active_index, C, PointerRNA::data, editable_node_active_poll(), get_active_node_to_operate_on(), blender::nodes::socket_items::SocketItemsRef< T >::items, blender::nodes::socket_items::SocketItemsRef< T >::items_num, OPERATOR_FINISHED, OPTYPE_UNDO, ot, blender::dna::array::remove_index(), and update_after_node_change().
Referenced by make_common_operators().
|
inline |
Definition at line 100 of file NOD_socket_items_ops.hh.
References blender::nodes::socket_items::SocketItemsRef< T >::active_index, C, PointerRNA::data, editable_node_active_poll(), get_active_node_to_operate_on(), INT32_MAX, blender::nodes::socket_items::SocketItemsRef< T >::items, blender::nodes::socket_items::SocketItemsRef< T >::items_num, OPERATOR_FINISHED, OPTYPE_UNDO, ot, blender::dna::array::remove_index(), RNA_def_int(), RNA_int_get(), and update_after_node_change().
Referenced by blender::nodes::node_geo_index_switch_cc::NODE_OT_index_switch_item_remove().
|
inline |
Definition at line 59 of file NOD_socket_items_ops.hh.
References BKE_main_ensure_invariants(), BKE_ntree_update_tag_node_property(), C, CTX_data_main(), PointerRNA::data, bNodeTree::id, NA_EDITED, NC_NODE, PointerRNA::owner_id, and WM_main_add_notifier().
Referenced by add_item(), move_active_item(), remove_active_item(), and remove_item_by_index().