|
Blender V5.3
|
Functions | |
| template<typename Accessor> | |
| static void | draw_item_in_list (uiList *, const bContext *C, blender::ui::Layout &layout, PointerRNA *, PointerRNA *itemptr, int, PointerRNA *, const char *, int, int) |
| template<typename Accessor> | |
| static void | draw_items_list_with_operators (const bContext *C, blender::ui::Layout *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) |
| template<typename Accessor> | |
| static auto | draw_extend_socket_fn () |
|
static |
Draw properties of the active item if there is any.
Definition at line 107 of file NOD_socket_items_ui.hh.
References blender::nodes::socket_items::SocketItemsRef< T >::active_index, blender::BLI_assert(), draw_active_item_props(), blender::bNodeTree::id, blender::nodes::socket_items::SocketItemsRef< T >::items, blender::nodes::socket_items::SocketItemsRef< T >::items_num, node, and blender::RNA_pointer_create_discrete().
Referenced by draw_active_item_props().
|
static |
Definition at line 128 of file NOD_socket_items_ui.hh.
References draw_extend_socket_fn(), blender::ui::Layout::emboss_set(), blender::ui::None, blender::ui::Layout::op(), blender::RNA_boolean_set(), and blender::RNA_int_set().
Referenced by draw_extend_socket_fn().
|
static |
Definition at line 32 of file NOD_socket_items_ui.hh.
References C, draw_item_in_list(), blender::ui::Layout::emboss_set(), blender::ui::None, blender::ui::Layout::prop(), blender::RNA_float_get_array(), and blender::ui::Layout::row().
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 58 of file NOD_socket_items_ui.hh.
References blender::BLI_assert(), C, blender::ui::Layout::column(), draw_item_in_list(), draw_items_list_with_operators(), blender::bNodeTree::id, blender::uiListType::idname, blender::MEM_new_zeroed(), node, blender::ui::Layout::op(), blender::RNA_enum_set(), blender::RNA_pointer_create_discrete(), blender::ui::Layout::row(), STRNCPY_UTF8, blender::ui::TEMPLATE_LIST_FLAG_NONE, blender::UILST_LAYOUT_DEFAULT, and blender::WM_uilisttype_add().
Referenced by draw_items_list_with_operators().