Blender V4.3
uiListNameFilter Class Reference

#include <UI_interface.hh>

Public Member Functions

 uiListNameFilter (uiList &list)
 
 ~uiListNameFilter ()
 
eUIListFilterResult operator() (const PointerRNA &itemptr, blender::StringRefNull name, int index)
 

Detailed Description

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 UI_list_filter_and_sort_items(), do NOT create an instance for every item, this would be costly.

Definition at line 234 of file UI_interface.hh.

Constructor & Destructor Documentation

◆ uiListNameFilter()

uiListNameFilter::uiListNameFilter ( uiList & list)

Definition at line 154 of file interface_template_list.cc.

References BLI_strncpy_ensure_pad(), and MEM_mallocN.

◆ ~uiListNameFilter()

uiListNameFilter::~uiListNameFilter ( )

Definition at line 173 of file interface_template_list.cc.

References MEM_SAFE_FREE.

Member Function Documentation

◆ operator()()

eUIListFilterResult uiListNameFilter::operator() ( const PointerRNA & itemptr,
blender::StringRefNull name,
int index )

Member Data Documentation

◆ filter_buff

char uiListNameFilter::filter_buff[32]

Definition at line 237 of file UI_interface.hh.

◆ filter_dyn

char* uiListNameFilter::filter_dyn = nullptr

Definition at line 238 of file UI_interface.hh.


The documentation for this class was generated from the following files: