summaryrefslogtreecommitdiff
path: root/lib/bemenu.h
diff options
context:
space:
mode:
authorJari Vetoniemi <mailroxas@gmail.com>2014-04-10 23:05:13 +0300
committerJari Vetoniemi <mailroxas@gmail.com>2014-04-10 23:05:13 +0300
commit71beb7583f6cba2eb8070d5a05dcdf05b54f52bf (patch)
treeb10e0c65d9cabd1e36d4798ba094f84c5ef99df1 /lib/bemenu.h
parent45e21171593050aedc92b1da44d0441e4a734a1b (diff)
downloadbemenu-71beb7583f6cba2eb8070d5a05dcdf05b54f52bf.tar.gz
bemenu-71beb7583f6cba2eb8070d5a05dcdf05b54f52bf.tar.bz2
bemenu-71beb7583f6cba2eb8070d5a05dcdf05b54f52bf.zip
Make it possible filter manually, and optimized filtering.
Diffstat (limited to 'lib/bemenu.h')
-rw-r--r--lib/bemenu.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/bemenu.h b/lib/bemenu.h
index 4534966..6348693 100644
--- a/lib/bemenu.h
+++ b/lib/bemenu.h
@@ -319,6 +319,17 @@ bmItem** bmMenuGetFilteredItems(const bmMenu *menu, unsigned int *outNmemb);
void bmMenuRender(const bmMenu *menu);
/**
+ * Trigger filtering of menu manually.
+ * This is useful when adding new items and want to dynamically see them filtered.
+ *
+ * Do note that filtering might be heavy, so you should only call it after batch manipulation of items.
+ * Not after manipulation of each single item.
+ *
+ * @param menu bmMenu instance which to filter.
+ */
+void bmMenuFilter(bmMenu *menu);
+
+/**
* Poll key and unicode from underlying UI toolkit.
*
* This function will block on @link ::bmDrawMode BM_DRAW_MODE_CURSES @endlink draw mode.