From 61776befc3f88c373e47ccbdf8c75e2ca0f4e987 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 9 Dec 2021 00:55:11 +1100 Subject: Cleanup: move public doc-strings into headers for 'editors' Ref T92709 --- .../blender/editors/interface/interface_region_search.cc | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'source/blender/editors/interface/interface_region_search.cc') diff --git a/source/blender/editors/interface/interface_region_search.cc b/source/blender/editors/interface/interface_region_search.cc index 93063b1b1c9..5b30e922a67 100644 --- a/source/blender/editors/interface/interface_region_search.cc +++ b/source/blender/editors/interface/interface_region_search.cc @@ -106,17 +106,6 @@ struct uiSearchboxData { #define SEARCH_ITEMS 10 -/** - * Public function exported for functions that use #UI_BTYPE_SEARCH_MENU. - * - * \param items: Stores the items. - * \param name: Text to display for the item. - * \param poin: Opaque pointer (for use by the caller). - * \param iconid: The icon, #ICON_NONE for no icon. - * \param state: The buttons state flag, compatible with #uiBut.flag, - * typically #UI_BUT_DISABLED / #UI_BUT_INACTIVE. - * \return false if there is nothing to add. - */ bool UI_search_item_add(uiSearchItems *items, const char *name, void *poin, @@ -289,7 +278,6 @@ int ui_searchbox_find_index(ARegion *region, const char *name) return UI_search_items_find_index(&data->items, name); } -/* x and y in screen-coords. */ bool ui_searchbox_inside(ARegion *region, const int xy[2]) { uiSearchboxData *data = static_cast(region->regiondata); @@ -297,7 +285,6 @@ bool ui_searchbox_inside(ARegion *region, const int xy[2]) return BLI_rcti_isect_pt(&data->bbox, xy[0] - region->winrct.xmin, xy[1] - region->winrct.ymin); } -/* string validated to be of correct length (but->hardmax) */ bool ui_searchbox_apply(uiBut *but, ARegion *region) { uiSearchboxData *data = static_cast(region->regiondata); @@ -477,7 +464,6 @@ static void ui_searchbox_update_fn(bContext *C, search_but->items_update_fn(C, search_but->arg, str, items, is_first_search); } -/* region is the search box itself */ void ui_searchbox_update(bContext *C, ARegion *region, uiBut *but, const bool reset) { uiButSearch *search_but = (uiButSearch *)but; @@ -1032,8 +1018,6 @@ ARegion *ui_searchbox_create_menu(bContext *C, ARegion *butregion, uiButSearch * return region; } -/* sets red alert if button holds a string it can't find */ -/* XXX weak: search_func adds all partial matches... */ void ui_but_search_refresh(uiButSearch *search_but) { uiBut *but = &search_but->but; -- cgit v1.2.3