diff options
author | Dave Davenport <qball@gmpclient.org> | 2016-02-11 08:41:19 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2016-02-11 08:41:19 +0100 |
commit | 11c347fad8a3281d6b3c613d9c84346508a80c55 (patch) | |
tree | 69b74602d75911f5b2e1deee4041e3655ece759c /include/rofi.h | |
parent | 3b007b7effa9928cff6a4dae6bffcbcaa50643ec (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.h | 16 |
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 * |