|
Blender V5.3
|
#include <UI_interface.hh>
Public Member Functions | |
| uiListNameFilter (uiList &list) | |
| ~uiListNameFilter () | |
| eUIListFilterResult | operator() (const PointerRNA &itemptr, StringRefNull name, int index) |
Function object for UI list item filtering that does the default name comparison with '*' wildcards. Create an instance of this once and pass it to uilist_filter_and_sort_items(), do NOT create an instance for every item, this would be costly.
Definition at line 240 of file UI_interface.hh.
| blender::ui::uiListNameFilter::uiListNameFilter | ( | uiList & | list | ) |
Definition at line 149 of file interface_template_list.cc.
References blender::BLI_strncpy_ensure_pad(), and blender::MEM_new_array_uninitialized().
| blender::ui::uiListNameFilter::~uiListNameFilter | ( | ) |
Definition at line 167 of file interface_template_list.cc.
| eUIListFilterResult blender::ui::uiListNameFilter::operator() | ( | const PointerRNA & | itemptr, |
| StringRefNull | name, | ||
| int | index ) |
Definition at line 172 of file interface_template_list.cc.
References blender::StringRefNull::c_str(), blender::ui::UI_LIST_ITEM_FILTER_MATCHES, and blender::ui::UI_LIST_ITEM_FILTER_MISMATCHES.