|
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, draw_active_item_props(), bNodeTree::id, bNode::idname, blender::nodes::socket_items::SocketItemsRef< T >::items, blender::nodes::socket_items::SocketItemsRef< T >::items_num, and RNA_pointer_create_discrete().
Referenced by draw_active_item_props().
|
static |
Definition at line 25 of file NOD_socket_items_ui.hh.
References C, draw_item_in_list(), blender::ui::None, uiLayout::prop(), RNA_float_get_array(), uiLayout::row(), UI_ITEM_NONE, uiLayoutSetEmboss(), and uiTemplateNodeSocket().
Referenced by draw_item_in_list(), and 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(), draw_items_list_with_operators(), bNodeTree::id, bNode::idname, uiListType::idname, MEM_callocN(), uiLayout::op(), RNA_pointer_create_discrete(), uiLayout::row(), STRNCPY(), UI_TEMPLATE_LIST_FLAG_NONE, uiItemEnumO(), UILST_LAYOUT_DEFAULT, uiTemplateList(), and WM_uilisttype_add().
Referenced by draw_items_list_with_operators().