diff options
author | Alyssa Ross <hi@alyssa.is> | 2019-05-31 20:32:02 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2019-05-31 23:20:54 +0000 |
commit | 93cde4831bca7055c38a1d6246fdcb84df07f7ec (patch) | |
tree | 15bc616a6da2139483d76ebe384d00a636b16441 /lib/internal.h | |
parent | 121367b9406b58c80591a21be3bd6e4771facb5e (diff) | |
download | bemenu-93cde4831bca7055c38a1d6246fdcb84df07f7ec.tar.gz bemenu-93cde4831bca7055c38a1d6246fdcb84df07f7ec.tar.bz2 bemenu-93cde4831bca7055c38a1d6246fdcb84df07f7ec.zip |
bemenu: add --line-height / -H option
Text is displayed vertically centered in a line. If unspecified, or 0,
the previous behaviour of making the height the size of the text, plus
two pixels on either side, is used, so there will be no change in
behaviour if this option is not used.
Fixes https://github.com/Cloudef/bemenu/issues/44.
Diffstat (limited to 'lib/internal.h')
-rw-r--r-- | lib/internal.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/internal.h b/lib/internal.h index adb06f6..2920d1a 100644 --- a/lib/internal.h +++ b/lib/internal.h @@ -225,6 +225,11 @@ struct bm_menu { struct bm_font font; /** + * Line height. + */ + uint32_t line_height; + + /** * Colors. */ struct bm_hex_color colors[BM_COLOR_LAST]; |