diff options
author | Dave Davenport <qball@gmpclient.org> | 2017-01-03 19:23:09 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2017-01-03 19:23:09 +0100 |
commit | f9fc01b176f177bc744aaba643c9a12d0b511e30 (patch) | |
tree | 130f5622f1c43028272414162160c13c2c6b00ae /include/theme.h | |
parent | 7600668bffacb5844e9e6064cb7b75c9aa737230 (diff) |
Add percentage option to border,padding
Diffstat (limited to 'include/theme.h')
-rw-r--r-- | include/theme.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/include/theme.h b/include/theme.h index af6a2f9b..8733df2a 100644 --- a/include/theme.h +++ b/include/theme.h @@ -11,6 +11,8 @@ typedef enum { PW_PX, /** PixelWidth in EM. */ PW_EM, + /** PixelWidget in percentage */ + PW_PERCENT, } PixelWidth; /** @@ -24,6 +26,13 @@ typedef struct { } Distance; /** + * Type of orientation. + */ +typedef enum { + ORIENTATION_VERTICAL, + ORIENTATION_HORIZONTAL +} Orientation; +/** * Type of property */ typedef enum { @@ -251,11 +260,12 @@ Padding rofi_theme_get_padding ( const char *wclass, const char *name, const ch /** * @param d The distance handle. + * @param ori The orientation. * * Convert Distance into pixels. * @returns the number of pixels this distance represents. */ -int distance_get_pixel ( Distance d ); +int distance_get_pixel ( Distance d, Orientation ori ); #ifdef THEME_CONVERTER /** |