Cleanup: Improve API and documentation of interface_view.cc

File documentation was outdated and could use general improvement.
Function names didn't really reflect the level they are operating on.
This commit is contained in:
2022-07-19 18:00:56 +02:00
parent fb9dc810f1
commit 16b145bc62
5 changed files with 21 additions and 15 deletions

View File

@@ -3230,9 +3230,9 @@ bool UI_view_item_drop_handle(struct bContext *C,
/**
* \param xy: Coordinate to find a view item at, in window space.
*/
uiViewItemHandle *UI_block_view_find_item_at(const struct ARegion *region, const int xy[2])
uiViewItemHandle *UI_region_views_find_item_at(const struct ARegion *region, const int xy[2])
ATTR_NONNULL();
uiViewItemHandle *UI_block_view_find_active_item(const struct ARegion *region);
uiViewItemHandle *UI_region_views_find_active_item(const struct ARegion *region);
#ifdef __cplusplus
}