diff options
author | Jari Vetoniemi <mailRoxas@gmail.com> | 2019-06-01 22:09:52 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-01 22:09:52 +0300 |
commit | 572470ef8cc4725728b239fe5fa65f62f9d70dd4 (patch) | |
tree | 8fa42cf9f947df05dc5ee872f847deac2113a880 /lib/bemenu.h | |
parent | dac040f659fe90a520591e7179de19d6279e4d29 (diff) | |
parent | 93cde4831bca7055c38a1d6246fdcb84df07f7ec (diff) | |
download | bemenu-572470ef8cc4725728b239fe5fa65f62f9d70dd4.tar.gz bemenu-572470ef8cc4725728b239fe5fa65f62f9d70dd4.tar.bz2 bemenu-572470ef8cc4725728b239fe5fa65f62f9d70dd4.zip |
Merge pull request #57 from alyssais/line-height
bemenu: add --line-height / -H option
Diffstat (limited to 'lib/bemenu.h')
-rw-r--r-- | lib/bemenu.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/bemenu.h b/lib/bemenu.h index 8b28dfe..9482b31 100644 --- a/lib/bemenu.h +++ b/lib/bemenu.h @@ -386,6 +386,23 @@ bool bm_menu_set_font(struct bm_menu *menu, const char *font); const char* bm_menu_get_font(const struct bm_menu *menu); /** + * Set size of line in pixels. + * Some renderers such as ncurses may ignore this when it does not make sense. + * + * @param menu bm_menu instance where to set line height. + * @param line_height 0 for default line height, > 0 for that many pixels. + */ +void bm_menu_set_line_height(struct bm_menu *menu, uint32_t line_height); + +/** + * Get size of line in pixels. + * + * @param menu bm_menu instance where to get line height. + * @return uint32_t for max amount of vertical lines to be shown. + */ +uint32_t bm_menu_get_line_height(struct bm_menu *menu); + +/** * Set a hexadecimal color for element. * * @param menu bm_menu instance where to set color. |