summaryrefslogtreecommitdiffstats
path: root/include/rofi.h
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2016-02-11 08:41:19 +0100
committerDave Davenport <qball@gmpclient.org>2016-02-11 08:41:19 +0100
commit11c347fad8a3281d6b3c613d9c84346508a80c55 (patch)
tree69b74602d75911f5b2e1deee4041e3655ece759c /include/rofi.h
parent3b007b7effa9928cff6a4dae6bffcbcaa50643ec (diff)
Use accessors in RofiView to get modi's and num modi for sidebar.
Diffstat (limited to 'include/rofi.h')
-rw-r--r--include/rofi.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/rofi.h b/include/rofi.h
index 75713df7..d4c8646e 100644
--- a/include/rofi.h
+++ b/include/rofi.h
@@ -20,6 +20,22 @@
extern const char *cache_dir;
/**
+ * Get the number of enabled modi.
+ *
+ * @returns the number of enabled modi.
+ */
+unsigned int rofi_get_num_enabled_modi ( void );
+
+/**
+ * @param index The mode to return. (should be smaller then rofi_get_num_enabled_mode)
+ *
+ * Get an enabled mode handle.
+ *
+ * @returns a Mode handle.
+ */
+const Mode * rofi_get_mode ( unsigned int index );
+
+/**
* @param key the Key to match
* @param modstate the modifier state to match
*