UI: Asset Shelf (Experimental Feature) #104831
|
@ -184,12 +184,6 @@ void UI_list_filter_and_sort_items(uiList *ui_list,
|
|||
const char *propname,
|
||||
uiListItemGetNameFn get_name_fn = nullptr);
|
||||
|
||||
/**
|
||||
* \param fn: Functor to execute for each view. Can return false to stop iteration.
|
||||
*/
|
||||
void UI_region_views_foreach(const ARegion *region,
|
||||
blender::FunctionRef<bool(uiViewHandle &view)> fn);
|
||||
|
||||
/**
|
||||
* Override this for all available view types.
|
||||
*/
|
||||
|
|
|
@ -142,17 +142,6 @@ void ui_block_views_listen(const uiBlock *block, const wmRegionListenerParams *l
|
|||
}
|
||||
}
|
||||
|
||||
void UI_region_views_foreach(const ARegion *region, FunctionRef<bool(uiViewHandle &view)> fn)
|
||||
{
|
||||
LISTBASE_FOREACH (uiBlock *, block, ®ion->uiblocks) {
|
||||
LISTBASE_FOREACH (ViewLink *, view_link, &block->views) {
|
||||
if (!fn(reinterpret_cast<uiViewHandle &>(*view_link->view))) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
uiViewHandle *UI_region_view_find_at(const ARegion *region, const int xy[2], const int pad)
|
||||
{
|
||||
/* NOTE: Similar to #ui_but_find_mouse_over_ex(). */
|
||||
|
|
Loading…
Reference in New Issue