diff options
author | Dave Davenport <qball@gmpclient.org> | 2016-12-31 22:47:22 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2016-12-31 22:47:22 +0100 |
commit | 068592414e6993274c37e894acaf4d371600ddaf (patch) | |
tree | 3e39db192f95c2f2ed3d3ed98921bac22468777b /include | |
parent | 5f424fa598662e35f647b99c9e7755ffecb451ad (diff) |
Support em format in padding
Diffstat (limited to 'include')
-rw-r--r-- | include/theme.h | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/include/theme.h b/include/theme.h index 3cf34387..89b4ac2f 100644 --- a/include/theme.h +++ b/include/theme.h @@ -3,6 +3,17 @@ #include <glib.h> #include <cairo.h> typedef enum { + PW_PX, + PW_EM, + +} PixelWidth; + +typedef struct { + int distance; + PixelWidth type; +} Distance; + +typedef enum { P_INTEGER, P_DOUBLE, P_STRING, @@ -26,11 +37,10 @@ typedef struct typedef struct { - int left; - int right; - int top; - int bottom; - gboolean percentual; + Distance left; + Distance right; + Distance top; + Distance bottom; } Padding; typedef struct { |