|
Blender V4.5
|
Functions | |
| template<typename Accessor> | |
| static void | draw_item_in_list (uiList *, const bContext *C, uiLayout *layout, PointerRNA *, PointerRNA *itemptr, int, PointerRNA *, const char *, int, int) |
| template<typename Accessor> | |
| static void | draw_items_list_with_operators (const bContext *C, uiLayout *layout, const bNodeTree &tree, const bNode &node) |
| template<typename Accessor> | |
| static void | draw_active_item_props (const bNodeTree &tree, const bNode &node, const FunctionRef< void(PointerRNA *item_ptr)> draw_item) |
|
static |
Draw properties of the active item if there is any.
Definition at line 101 of file NOD_socket_items_ui.hh.
References blender::nodes::socket_items::SocketItemsRef< T >::active_index, BLI_assert, bNode::idname, blender::nodes::socket_items::SocketItemsRef< T >::items, blender::nodes::socket_items::SocketItemsRef< T >::items_num, RNA_pointer_create_discrete(), and tree.
Referenced by blender::nodes::node_geo_bake_cc::draw_bake_items(), blender::nodes::node_geo_simulation_cc::draw_simulation_state(), blender::nodes::node_fn_format_string_cc::node_layout_ex(), blender::nodes::node_geo_attribute_capture_cc::node_layout_ex(), blender::nodes::node_geo_closure_cc::node_layout_ex(), blender::nodes::node_geo_combine_bundle_cc::node_layout_ex(), blender::nodes::node_geo_evaluate_closure_cc::node_layout_ex(), blender::nodes::node_geo_foreach_geometry_element_cc::node_layout_ex(), blender::nodes::node_geo_menu_switch_cc::node_layout_ex(), blender::nodes::node_geo_repeat_cc::node_layout_ex(), and blender::nodes::node_geo_separate_bundle_cc::node_layout_ex().
|
static |
Definition at line 25 of file NOD_socket_items_ui.hh.
References C, blender::ui::None, uiLayout::prop(), RNA_float_get_array(), uiLayout::row(), UI_ITEM_NONE, uiLayoutSetEmboss(), and uiTemplateNodeSocket().
Referenced by draw_items_list_with_operators().
|
static |
Draws a ui-list that contains the items. The list also has operators to add, remove and reorder items.
Definition at line 51 of file NOD_socket_items_ui.hh.
References BLI_assert, C, uiLayout::column(), uiListType::draw_item, draw_item_in_list(), bNode::idname, uiListType::idname, MEM_callocN(), uiLayout::op(), RNA_pointer_create_discrete(), uiLayout::row(), STRNCPY(), tree, UI_TEMPLATE_LIST_FLAG_NONE, uiItemEnumO(), UILST_LAYOUT_DEFAULT, uiTemplateList(), and WM_uilisttype_add().
Referenced by blender::nodes::node_geo_bake_cc::draw_bake_items(), blender::nodes::node_geo_simulation_cc::draw_simulation_state(), blender::nodes::node_fn_format_string_cc::node_layout_ex(), blender::nodes::node_geo_attribute_capture_cc::node_layout_ex(), blender::nodes::node_geo_closure_cc::node_layout_ex(), blender::nodes::node_geo_combine_bundle_cc::node_layout_ex(), blender::nodes::node_geo_evaluate_closure_cc::node_layout_ex(), blender::nodes::node_geo_foreach_geometry_element_cc::node_layout_ex(), blender::nodes::node_geo_menu_switch_cc::node_layout_ex(), blender::nodes::node_geo_repeat_cc::node_layout_ex(), and blender::nodes::node_geo_separate_bundle_cc::node_layout_ex().